Skip to content

Instantly share code, notes, and snippets.

View amingilani's full-sized avatar
💯
Always operating at maximum efficiency

Amin Shah Gilani amingilani

💯
Always operating at maximum efficiency
View GitHub Profile
@amingilani
amingilani / welcome.md
Created October 10, 2014 17:19
Fixed welcome.md for the Atom.io editor

Welcome to Atom!

  1. To help us improve Atom, we anonymously track usage metrics. See the atom/metrics package for details on what information is tracked and for instructions on how to disable it.

  2. If you only remember one thing make it ctrl-shift-P. This keystroke toggles the command palette, which lists every Atom command. Yes, you can try it now! Press ctrl-shift-P, type

@amingilani
amingilani / Instructions.md
Last active August 29, 2015 14:14
To get my PGP key

Run the following to get my PGP key.

gpg --keyserver keyserver.ubuntu.com --recv A4BECE394CD8D8F2

@amingilani
amingilani / keybase.md
Last active May 3, 2016 06:38
My keybase proof

Keybase proof

I hereby claim:

  • I am amingilani on github.
  • I am gilani (https://keybase.io/gilani) on keybase.
  • I have a public key ASAOjVFyPrChRmDzFnrnq3m4JByzi9_jNdtp9f2i9I5gLwo

To claim this, I am signing this object:

@amingilani
amingilani / onename.md
Created May 16, 2015 00:19
Onename Gist
@amingilani
amingilani / gpg-reference.md
Last active August 29, 2015 14:24
GPG Quick Reference

Quick Reference

Help text:

gilani@ava$ gpg --version
gpg (GnuPG) 2.0.22
libgcrypt 1.5.3
Copyright (C) 2013 Free Software Foundation, Inc.
@amingilani
amingilani / deepweb.md
Last active December 10, 2017 00:25
A repo of deep web urls
@amingilani
amingilani / derivingChildWallets.js
Created September 18, 2015 01:39
Make pub keys using copay!
/*
If you have a shared copay wallet and would like to create HD multisig address on the fly
Export the backup of your wallet, decrypt it and find the extended public keys for the
co-signers in the publicKeyRing property, and run it through this.
*/
var bitcore = require('bitcore');
// which iteration of the addresses do you want to generate
var walletNumb = 5;
gilani@debris  ~/Sandbox/passphrase   v1  node
> 26+26+10
62
> Math.pow(62,4)
14776336
>
(^C again to quit)
>
gilani@debris  ~/Sandbox/passphrase   v1  isup
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
@amingilani
amingilani / 2-fairness.rb
Last active October 20, 2016 08:30
Codes for Hacker Rank 30 days of code
# Code required to read in the values of k,n and candies.
n = gets.to_i
k = gets.to_i
candy = Array.new(n)
for i in 0..n - 1
candy[i] = gets.to_i
end
sorted_candies = candy.sort.to_a
/interface ethernet
set 0 name=WAN1
set 1 name=WAN2
set 2 name=WAN3
set 3 name=WAN4
set 4 name=Local
/ip address
add address=192.168.0.1/24 interface=Local
add address=192.168.1.65/24 interface=WAN1