Skip to content

Instantly share code, notes, and snippets.

View 0xDaksh's full-sized avatar
🦄
Layer 2 DeFi is going to be fun!

Daksh 0xDaksh

🦄
Layer 2 DeFi is going to be fun!
View GitHub Profile
@0xDaksh
0xDaksh / .hyper.js
Created October 27, 2017 16:32
My HyperTerm config for ubuntu and windows!
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@0xDaksh
0xDaksh / how_to_setup_lemp_with_node.js_easily.md
Last active November 7, 2017 09:42
How to Setup Lemp (Linux Nginx MySQL Php) with Node.js and Forever on Ubuntu 16.04 Easily?

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:

@0xDaksh
0xDaksh / gist:384af6911e702397ca7315ac08f91672
Created November 22, 2017 09:19 — forked from jnrbsn/gist:4268258
Loads a JavaScript file asynchronously with a callback, like jQuery's `$.getScript()` except without jQuery.
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 / Fuckthisshit.js
Last active December 22, 2017 11:22
;_;
fetch("https://cors-anywhere.herokuapp.com/https://www.validator.pizza/email/mishra.istasis@gmail.com").then(res => res.json()).then(console.log)
@0xDaksh
0xDaksh / _readme.md
Created January 10, 2018 11:32 — forked from pongstr/_readme.md
HTTP/2 Recipe: Nginx + Node.js

Imgur

Recipe

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

$ brew tap homebrew/services 
@0xDaksh
0xDaksh / caesarCipher.cpp
Created February 11, 2018 11:00
CaesarCipher turned into C++
#include <iostream>
#include <fstream>
#include <stdlib.h>
using namespace std;
/*
Ceaser Cipher
- Julius Caesar (Inventor of July &amp; CeaserCipher)
@0xDaksh
0xDaksh / vectors.py
Created April 21, 2018 04:17
Khan Academy Precalculus Vector homework with Python!
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:

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 / settings.json
Created June 9, 2018 05:57
VSCode Config
{
"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": {
@0xDaksh
0xDaksh / ContextCmder-Disable.reg
Created July 24, 2018 10:28 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7/8
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]