Skip to content

Instantly share code, notes, and snippets.

Avatar
🦄
Layer 2 DeFi is going to be fun!

Daksh 0xDaksh

🦄
Layer 2 DeFi is going to be fun!
View GitHub Profile
@0xDaksh
0xDaksh / Gemfile
Created Dec 17, 2020 — forked from dhh/Gemfile
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
@0xDaksh
0xDaksh / ContextCmder-Disable.reg
Created Jul 24, 2018 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7/8
View ContextCmder-Disable.reg
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
View settings.json
{
"editor.fontFamily": "Operator Mono Lig",
"editor.fontLigatures": true,
"editor.fontSize": 18.6,
"files.eol": "\n",
"editor.cursorStyle": "block",
"editor.cursorBlinking": "solid",
"editor.renderIndentGuides": true,
"editor.renderWhitespace": "all",
"gitlens.advanced.messages": {
View keybase.md

Keybase proof

I hereby claim:

  • I am dakshmiglani on github.
  • I am aresinpajamas (https://keybase.io/aresinpajamas) on keybase.
  • I have a public key ASBIdrnnzOCmzMr3HsoqDPPZmtfrDs6p5Sf_veoeAoVRJAo

To claim this, I am signing this object:

@0xDaksh
0xDaksh / vectors.py
Created Apr 21, 2018
Khan Academy Precalculus Vector homework with Python!
View vectors.py
import math
def quadrant(vector):
x = vector[0]
y = vector[1]
if x > 0 and y > 0:
return 1
if x < 0 and y > 0:
return 2
if x < 0 and y < 0:
@0xDaksh
0xDaksh / caesarCipher.cpp
Created Feb 11, 2018
CaesarCipher turned into C++
View caesarCipher.cpp
#include <iostream>
#include <fstream>
#include <stdlib.h>
using namespace std;
/*
Ceaser Cipher
- Julius Caesar (Inventor of July &amp; CeaserCipher)
@0xDaksh
0xDaksh / _readme.md
Created Jan 10, 2018 — forked from pongstr/_readme.md
HTTP/2 Recipe: Nginx + Node.js
View _readme.md

Imgur

Recipe

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

$ brew tap homebrew/services 
View Fuckthisshit.js
fetch("https://cors-anywhere.herokuapp.com/https://www.validator.pizza/email/mishra.istasis@gmail.com").then(res => res.json()).then(console.log)
@0xDaksh
0xDaksh / gist:384af6911e702397ca7315ac08f91672
Created Nov 22, 2017 — forked from jnrbsn/gist:4268258
Loads a JavaScript file asynchronously with a callback, like jQuery's `$.getScript()` except without jQuery.
View gist:384af6911e702397ca7315ac08f91672
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);
@0xDaksh
0xDaksh / how_to_setup_lemp_with_node.js_easily.md
Last active Nov 7, 2017
How to Setup Lemp (Linux Nginx MySQL Php) with Node.js and Forever on Ubuntu 16.04 Easily?
View how_to_setup_lemp_with_node.js_easily.md

How to Setup Lemp with Node.js Easily!

Firstly, Download the Script Using:

curl https://dak.sh/nginxsetup.sh -o setup.sh

After that, you'd have to run the file and for that you need to make the script an executable: