Skip to content

Instantly share code, notes, and snippets.

@jaseemabid
jaseemabid / git tutorials.md
Last active January 13, 2026 15:29 — forked from netroy/git tutorials.md
Awesome git tutorials I am finding here and there
@jaseemabid
jaseemabid / .gitignore
Last active August 12, 2025 12:54
UV Package version bug repro
# Python-generated files
__pycache__/
*.py[oc]
build/
dist/
wheels/
*.egg-info
# Virtual environments
.venv
@jaseemabid
jaseemabid / .gitignore
Last active June 25, 2025 12:23
Hera typing repro
# Python-generated files
__pycache__/
*.py[oc]
build/
dist/
wheels/
*.egg-info
# Virtual environments
.venv
@jaseemabid
jaseemabid / 30-randomize-mac-address.conf
Created December 3, 2017 18:06 — forked from fawkesley/30-randomize-mac-address.conf
MAC address randomization in Ubuntu 17+ (>= 1.4.1): save to /etc/NetworkManager/conf.d/
# /etc/NetworkManager/conf.d/30-randomize-mac-address.conf
# REQUIRES NETWORK MANAGER >= 1.4.1 (Ubuntu Zesty and above)
# Thanks to https://blogs.gnome.org/thaller/2016/08/26/mac-address-spoofing-in-networkmanager-1-4-0/
# This randomize your MAC address for *new* connections
# Be sure to change your existing (saved) connections in
# /etc/NetworkManager/system-connections/*
/*! Top K elements of an unordered list
There are 3 ways to get the top k elements from an unsorted list.
1. Build a heap with all the elements and pop k times
2. Sort the whole list and return a slice from the end
3. Quick select k elements
Naively, I would expect 1 to be slowest, 2 to be faster and 3 the fastest.
@jaseemabid
jaseemabid / producer-consumer.c
Created February 27, 2012 08:54
PRODUCER - CONSUMER Implementation in C
/** PRODUCER - CONSUMER PROBLEM **/
#include <stdio.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <pthread.h>
#include <stdlib.h>
#define BUFSIZE 10
@jaseemabid
jaseemabid / emacs.org
Created March 3, 2016 20:03
Setup Emacs dev env for Erlang

Setup with Emacs Development environment with EDTS, Flycheck and use-package

This tutorial assumes a reasonably new version of Emacs (24.4+)

EDTS

Erlang Development Tool Suite aims to provide common IDE like functionality.

Use-package

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@jaseemabid
jaseemabid / git for dummies.md
Created September 11, 2011 20:54
Git for dummies

Git for dummies

As the source code is handled by the version control system Git, it's useful to know some features used.

Submodules

The repository uses submodules, which normally are handled directly by the Makefile, but sometimes you want to be able to work with them manually.

@jaseemabid
jaseemabid / objects.js
Created August 23, 2011 13:37 — forked from kaaes/objects.js
ECMA5 object cheatsheet
/**
* Object descriptor
**/
var a = {
prop1 : 14
}
var descriptorObj1 = Object.getOwnPropertyDescriptor(a, 'prop1');