Skip to content

Instantly share code, notes, and snippets.

View abdullahkhilji's full-sized avatar
🦋
Complexity has nothing to do with intelligence, simplicity does.

Abdullah Khilji abdullahkhilji

🦋
Complexity has nothing to do with intelligence, simplicity does.
View GitHub Profile
@abdullahkhilji
abdullahkhilji / pyscript.py
Created February 7, 2021 09:38 — forked from nhoffman/pyscript.py
Python script template
#!/usr/bin/env python3
"""A simple python script template.
"""
import os
import sys
import argparse
@abdullahkhilji
abdullahkhilji / config
Created August 30, 2020 15:48
SSH config without proxy at ~/.ssh/config
Host github.com
AddKeysToAgent yes
Hostname ssh.github.com
PreferredAuthentications publickey
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
User git
Port 443
Host gitlab.com
Host github.com
AddKeysToAgent yes
Hostname ssh.github.com
IdentityFile ~/.ssh/id_rsa
User git
Port 443
proxycommand socat - PROXY:172.16.199.20:%h:%p,proxyport=8080
Host gitlab.com
@abdullahkhilji
abdullahkhilji / config
Created February 21, 2020 08:15
proxy_config_ubuntu
Host github.com
AddKeysToAgent yes
Hostname ssh.github.com
IdentityFile ~/.ssh/id_rsa
User git
Port 443
proxycommand socat - PROXY:172.16.199.20:%h:%p,proxyport=8080,proxyauth=user:pwd
@abdullahkhilji
abdullahkhilji / proxy_config
Created December 5, 2019 13:13
config ssh proxy
Host github.com
AddKeysToAgent yes
Hostname ssh.github.com
PreferredAuthentications publickey
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
User git
Port 443
proxycommand socat - PROXY:127.0.0.1:%h:%p,proxyport=8080
@abdullahkhilji
abdullahkhilji / Documentation.md
Created October 26, 2019 09:12 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@abdullahkhilji
abdullahkhilji / config
Created October 19, 2019 09:10
~/.ssh/config
Host github.com
AddKeysToAgent yes
Hostname ssh.github.com
IdentityFile ~/.ssh/id_rsa
User git
Port 443
proxycommand socat - PROXY:172.16.199.20:%h:%p,proxyport=8080,proxyauth=user:pwd
@abdullahkhilji
abdullahkhilji / config
Created May 31, 2019 04:59
vi ~/.ssh/config --- SSH config file for PROXY connections for GitHub, GitLab and BitBucket
Host github.com
AddKeysToAgent yes
Hostname ssh.github.com
PreferredAuthentications publickey
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
User git
Port 443
Host gitlab.com
@abdullahkhilji
abdullahkhilji / gist:0064a937b8aba9eb2d69667ff334d8db
Created May 31, 2019 04:57 — forked from daicham/gist:10253947
SSH config for connecting to github and bitbucket over proxy
ProxyCommand "C:\Program Files\git\bin\connect.exe" -H proxy.example.com:8080 %h %p
Host github.com
HostName ssh.github.com
Port 443
IdentityFile C:\Users\hoge\.ssh\id_rsa
Host bitbucket.org
HostName altssh.bitbucket.org
Port 443
IdentityFile C:\Users\hoge\.ssh\id_rsa

Keybase proof

I hereby claim:

  • I am abdullahkhilji on github.
  • I am abdullahkhilji (https://keybase.io/abdullahkhilji) on keybase.
  • I have a public key ASAenzTjBBUz_rLmSTTSz7w-ynxTw_gxji377kLU2oN2Ngo

To claim this, I am signing this object: