Skip to content

Instantly share code, notes, and snippets.

🎯
Hello world

Jaseem Abid jaseemabid

View GitHub Profile
@jaseemabid
jaseemabid / log.txt
Created Oct 13, 2018
Stack + llvm-hs-pretty
View log.txt
Version 1.7.1 x86_64
Compiled with:
- Cabal-2.2.0.1
- Glob-0.9.2
- HUnit-1.6.0.0
- QuickCheck-2.11.3
- StateVar-1.1.1.0
- aeson-1.2.4.0
- aeson-compat-0.3.7.1
- annotated-wl-pprint-0.7.0
View README.md

Safe

A safe storage for your personal data like photos, documents and notes for life. Privacy and safety over anything else.

What would it be?

  1. A dead simple folder you can drag and drop files into and forget about. As simple as dropbox but something you can trust.
@jaseemabid
jaseemabid / .gitignore
Last active Mar 22, 2018
Basic jenkins monitoring
@jaseemabid
jaseemabid / spectre.c
Created Jan 4, 2018 — forked from ErikAugust/spectre.c
Spectre example code
View spectre.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@jaseemabid
jaseemabid / 30-randomize-mac-address.conf
Created Dec 3, 2017 — forked from paulfurley/30-randomize-mac-address.conf
MAC address randomization in Ubuntu 17+ (>= 1.4.1): save to /etc/NetworkManager/conf.d/
View 30-randomize-mac-address.conf
# /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/*
@jaseemabid
jaseemabid / adler.hs
Created Feb 26, 2017
Adler32 implementation in C and Haskell
View adler.hs
adler32 :: String -> Int
adler32 = helper 1 0
where
helper a b (x:xs) = helper a' b' xs
where a' = (a + (ord x .&. 0xff)) `mod` base
b' = (a' + b) `mod` base
base = 65521
helper a b _ = (b `shiftL` 16) .|. a
View what-i-wish-id-known-about-equity-before-joining-a-unicorn.md

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 / .gitignore
Last active Oct 23, 2016
Battleship domain model
View .gitignore
.stack-work
@jaseemabid
jaseemabid / sync.py
Created Oct 23, 2016
A simple script to get the top 100 songs from Clementine DB and copy it to my phone.
View sync.py
#!/usr/bin/python
'''
A simple script to get the top 100 songs from Clementine DB and copy it to
my phone.
TODO:
1. Handle phone unmount properly. MTPFS suck!
2. Dont copy files already there
3. Delete old files?
You can’t perform that action at this time.