Skip to content

Instantly share code, notes, and snippets.

View blpabhishek's full-sized avatar
💭
Working

Abhishek Gupta blpabhishek

💭
Working
View GitHub Profile
@blpabhishek
blpabhishek / switch-off.sh
Created February 16, 2018 11:15
Switch off the network in every three hour
#Switch off the network in every three hour
while [ 1 -lt 2 ]
do
networksetup -setairportpower en0 off;
sleep 3h;
done
#:)
@blpabhishek
blpabhishek / git-merge.sh
Created July 31, 2017 11:52
Merge two unrelated git repositories
# merge project-a to a project-b with all the history
cd path/to/project-b
git remote add project-a path/to/project-a
git fetch project-a
git merge --allow-unrelated-histories project-a/master
git remote remove project-a
git add .
git commit -m <message>
@blpabhishek
blpabhishek / ftpserver.sh
Created July 17, 2017 13:56
Starting FTP Server on macOS Sierra
# Start FTP Server
launchctl load -w /System/Library/LaunchDaemons/ftp.plist
# Stop FTP Server
launchctl unload -w /System/Library/LaunchDaemons/ftp.plist
@blpabhishek
blpabhishek / bashrc
Created March 2, 2017 15:04
bash - profile
export CLICOLOR=1
export LSCOLORS=Gxfxcxdxbxegedabagacad
[[ -f $HOME/.dircolors ]] && eval $(dircolors -b $HOME/.dircolors)
if $_isxrunning; then
[[ -f $HOME/.dircolors_256 ]] && eval $(dircolors -b $HOME/.dircolors_256)
export TERM='xterm-256color'