Skip to content

Instantly share code, notes, and snippets.

View niranjanaryan's full-sized avatar
🤿
Deeply Involved

Niranjan Anandkumar niranjanaryan

🤿
Deeply Involved
View GitHub Profile
@niranjanaryan
niranjanaryan / datasets.md
Created February 8, 2025 04:50 — forked from priyanshujain/datasets.md
open and public datasets
@niranjanaryan
niranjanaryan / nixos-as-bhyve-guest.md
Created November 5, 2024 08:38 — forked from j-keck/nixos-as-bhyve-guest.md
nixos as bhyve guest

create a vm

root@main:~ # vm create -t debian -s 100G nixos
root@main:~ # vm iso /stuff/downloads/nixos-graphical-18.03.132192.ce0d9d638de-x86_64-linux.iso 
root@main:~ # vm -f install nixos nixos-graphical-18.03.132192.ce0d9d638de-x86_64-linux.iso

boot the image

determine the 'init' executable path from '(cd0)/isolinux/isolinux.cfg'. look for a line which start's with: 'APPEND init=/nix/store/.....'

@niranjanaryan
niranjanaryan / network.nix
Created October 25, 2024 09:57 — forked from mweinelt/network.nix
NixOS 22.11 Router on VDSL with IPv6 Prefix Delegation, ULA addressing, VLANs on top of Bonding.
{ lib, ... }:
{
# Enable forwarding between all interfaces, restrictions between
# individual links are enforced by firewalling.
boot.kernel.sysctl = {
"net.ipv6.conf.all.forwarding" = lib.mkForce 1;
"net.ipv4.forward" = lib.mkForce 1;
};
systemd.network.config = {
@niranjanaryan
niranjanaryan / readme.md
Created October 23, 2024 17:42 — forked from orzklv/readme.md
How to migrate from homebrew to Nix package manager by Orzklv!

How to migrate from Homebrew to Nix

#homebrew #brew #nix #nixos

I'll be honest with ya'll, you don't wanna get away from Homebrew completely, yes, I'll explain!

I've been using Nix package manager in all my MacOS machines about 3-4 months and I always kept Homebrew installed. You see, Nix is a very good package manager and with its home-manager, it becomes a good config farm as well. However, installing & managing GUI & unfree apps via Nix has been a quite painful experience for me. Sometimes, it wouldn't run properly, crash or wouldn't even start. Also, Nix doesn't have most of GUI packages that Homebrew has. Therefore, I keep homebrew and use it only for its "casks" registry to install GUI & unfree apps whereas having nix to manage dot file configurations and cli apps.

@niranjanaryan
niranjanaryan / github-topics.txt
Created October 23, 2024 15:19 — forked from dfm/github-topics.txt
The results of running LDA on ~1.5 million GitHub READMEs
Topic 0: based order via usual currently old changes cached address users configure shutdown cache caching shared
Topic 1: written seen means simple operations contexts within wtf flows fieldname executes motivation flow iteration oop
Topic 2: conference found main extensions download info latest clone requirements defense framework exp tower zend labs
Topic 3: deps github try written tone scrapper pig fixme copyright installed leiningen lein ring helloworld prerequisites
Topic 4: really parties quality time offer third bus natural signals voice sleep robert customer cost signal
Topic 5: aggregator readers epub content professor simple jsf catalog flex lee news feeds rss reader feed
Topic 6: still way to-do created things main coded something vote made based stats written simple game
Topic 7: yeoman dependencies started package bower.io installation watch gruntjs.com installed grunt-cli clone backbone bower grunt npm
Topic 8: tree bar format quick compare modified tool meaningful shows diffe
@niranjanaryan
niranjanaryan / neural_ode_benchmarks.md
Created April 29, 2024 07:30 — forked from ChrisRackauckas/neural_ode_benchmarks.md
torchdiffeq vs Julia DiffEqflux Neural ODE Training Benchmark

torchdiffeq vs Julia DiffEqFlux Neural ODE Training Benchmark

The spiral neural ODE was used as the training benchmark for both torchdiffeq (Python) and DiffEqFlux (Julia) which utilized the same architecture and 500 steps of ADAM. Both achived similar objective values at the end. Results:

  • DiffEqFlux defaults: 7.4 seconds
  • DiffEqFlux optimized: 2.7 seconds
  • torchdiffeq: 288.965871299999 seconds