Skip to content

Instantly share code, notes, and snippets.

Layer 2 DeFi is going to be fun!

Daksh 0xDaksh

Layer 2 DeFi is going to be fun!
View GitHub Profile
dhh / Gemfile
Created Jun 24, 2020
HEY's Gemfile
View Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
shobhitsharma /
Last active Sep 3, 2021
SSL support for localhost with Webpack

HTTPS using localhost

To generate a local certiticate and using it, please follow these steps (note: replace MY_DOMAIN, MY_FILENAME and MY_PASSPHRASE based on your choice):

Step 1: Generate private key

openssl genrsa -out MY_FILENAME.key 4096
nikhilkumarsingh /
Created Nov 3, 2017
A simple paint application using tkinter in Python 3
from tkinter import *
from tkinter.colorchooser import askcolor
class Paint(object):
def __init__(self):
thilinapiy / mongo-statefulset.yaml
Created Oct 27, 2017
MongoDB statefulset for kubernetes with authentication and replication
View mongo-statefulset.yaml
## Generate a key
# openssl rand -base64 741 > mongodb-keyfile
## Create k8s secrets
# kubectl create secret generic mongo-key --from-file=mongodb-keyfile
apiVersion: v1
kind: Service
name: mongo
pongstr /
Last active Nov 30, 2021
HTTP/2 Recipe: Nginx + Node.js



Install homebrew/services, this will be helpful, you'll see later. :D

$ brew tap homebrew/services 
ansulev / install-arch-linux-on-btrfs-subvolume-inside-luks
Last active Dec 20, 2021
Install Arch Linux with full encrypted btrfs subvolume inside luks
View install-arch-linux-on-btrfs-subvolume-inside-luks
# Install Arch Linux with full encrypted btrfs subvolume inside luks
# Hardware: BIOS system, Intel GPU, Nvidia Optimus, Toshiba SSD, Wifi
# Please adjust for your needs.
# filename: install-arch-linux-on-btrfs-subvolume-inside-luks.txt
# The official guide:
# Download the archiso image from
# Copy to a usb-drive
dd bs=4M if=archlinux.iso of=/dev/sdx status=progress oflag=sync # on linux
cmilfont /
Last active Oct 12, 2018
return true to win


function reflexive(x) {
    return x != x;

function transitive(x,y,z) {
    return x && x == y && y == z && x != z;
somebox /
Last active Dec 11, 2021 — forked from foz/
Set up an OSX machine from zero to awesome. Uses Homebrew (and cask, fonts, etc). Focused on Ruby/Rails development, includes rvm, xquartz, editor fonts, sublime text, and many tools.
# A script to set up a new mac. Uses bash, homebrew, etc.
# Focused for ruby/rails development. Includes many utilities and apps:
# - homebrew, rvm, node
# - quicklook plugins, terminal fonts
# - browsers: chrome, firefox
# - dev: iterm2, sublime text, postgres, chrome devtools, etc.
# - team: slack, dropbox, google drive, skype, etc
jnrbsn / gist:4268258
Created Dec 12, 2012
Loads a JavaScript file asynchronously with a callback, like jQuery's `$.getScript()` except without jQuery.
View gist:4268258
function j(u, c) {
var h = document.getElementsByTagName('head')[0], s = document.createElement('script');
s.async = true; s.src = u;
s.onload = s.onreadystatechange = function () {
if (!s.readyState || /loaded|complete/.test(s.readyState)) {
s.onload = s.onreadystatechange = null; if (h && s.parentNode) { h.removeChild(s) } s = undefined;
if (c) { c() }
h.insertBefore(s, h.firstChild);