Skip to content

Instantly share code, notes, and snippets.

View RupGautam's full-sized avatar

Rup Gautam RupGautam

View GitHub Profile
cask :v1 => 'airmail-beta' do
version :latest
sha256 :no_check
# hockeyapp.net is the official download host per the vendor homepage
url 'https://rink.hockeyapp.net/api/2/apps/84be85c3331ee1d222fd7f0b59e41b04?format=zip'
name 'Airmail - Beta'
homepage 'http://airmailapp.com/beta/'
license :gratis
@RupGautam
RupGautam / makegif.sh
Last active April 10, 2016 04:41
Make gif from video file on OSX | makegif osx
#!/bin/sh
#Thank you @http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
#TODO: - Decrease the output size, right now it is 8MB on 5 secs MP4 videos.
# - Use convert to decrease size??
palette="/tmp/palette.png"
filters="fps=10,scale=720:-1:flags=lanczos"
@RupGautam
RupGautam / .aliases
Created December 17, 2015 03:48
collections of zsh aliases | alias shortcuts collections
# Easier navigation: .., ..., ...., ....., ~ and -
alias sudo='sudo ' #First thing
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
alias ls="gls --color=auto"
@RupGautam
RupGautam / vpn.sh
Created January 7, 2016 00:09
Start/Stop vpn from command line OSX
#!/bin/bash
# VPN-commandline script @http://superuser.com/questions/358513/start-configured-vpn-from-command-line-osx
set -e
#set -x
act="$1"
vpn="$2"
@RupGautam
RupGautam / presf.js
Last active February 1, 2016 19:56
firefox settings
# Mozilla User Preferences
/* Do not edit this file.
*
* If you make changes to this file while the application is running,
* the changes will be overwritten when the application exits.
*
* To make a manual change to preferences, you can visit the URL about:config
*/
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDH5AUPOuVAgRRmIfXg46Y2BWZmw8kRxLss7mcYqND5Sw9/G8Kuc3h+N0wk9cEKBGqsM+Oll53xDn9cMs4akNItENsIipju5dgtB8GmmdOv31B5/FULQLA0Lv82JkJcivs5d2r7ICWttJafx2TaaeYmUtsOM9Ne6/fyMJUXhrGwBlF/objtyW0shsjXcQh7oSp/HW25aLe8CI7mGfPaPpD8RP6bv4V+HQquHjhfjAMf1MtTuIWI0Q5T3fXGdMF7mpSshahawAx8RpBPgIUITWunX6nCuEIaVB5aMf/DxPjnMEGdzC44B8k1kmSzUifKrrtO/vA3g1njJ0pmpSjT3L0E530VYxTuSMVCGmbHfPhH1y22mRhvDQ08hjVRrVD0Svw+/EvPBUzvBXklKm8CghV0Ts3HrJ+9zFFTfjD67hFaiPBfTPyBLxx05FuN5qDo3mov/Lsoh9TlZbu2oras7oOUkGMKblhlFNCUn0Pusndqi0UYCA2th79krSs1Cb4rfO98lMQ1tyv+JqoJkocD5x95oR4DtxV3GSIck2RmkoTgoEdPSuq1HIZlzMLDOK6hEONTIaRW9pr3GrzsfCDVnNIwxq8XngGsxTfrPyS42ua33SCq/tuN877D964Zz98UzGFsAwufB+63FEjjwB5zNvZlIv1pCFOr6VcpsuIS7t38ew== rupngautam@gmail.com
@RupGautam
RupGautam / id_rsa.pub
Created February 15, 2016 19:54
iMac
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpUvxlOukg+xPwbf9Qkt/HhTnb427EBMeUnHOR2S+Zx+9Q2idsKMSwSmEwhmFrUAauVCRwxx11S7utr420fPnPE2pb0NrDDTNLDBv8KIZBm9z6QKTJLkSVajj3AX41COTEkNsfnQpWfJuxjHmqKUnAZrbH/Qxn+Zd1TMhM1hzvg7MmAKtXULWN0d9P9Imob7YfUkSg8Az25nm/rctwnn79iJLrEbNvKjlZcVEa8vUW1CdblMDfY4vh0WnXxH4tWmXdPSswR4SXUv1qaG2LMWKId8I/YWniBPWK2ghHBXmspdVzKhDYoAHnONy1NMQ9OFJIGGA4AkLi6WMWCVvkG1Gd RupGautam@iMac
@RupGautam
RupGautam / walks.c
Created February 17, 2016 15:24
walkthur C
int main(){
int i=3;
for (int j=0, j<i, j++){
i=j;
printf("Values are %d, %d", i,j);
}
return 0;
}
git config --global user.name "Your Name Here"
git config --global user.email "your_name@domain.com"
curl -s -O http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
chmod u+x git-credential-osxkeychain
sudo mv git-credential-osxkeychain /usr/local/git/bin
@RupGautam
RupGautam / id_rsa.pub
Last active April 26, 2016 21:28
MacBook Pro
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCm1jWsXQ+5coZi6c8cotZXBBegBcwvqsBlsPVXcfjsH03yEFoOUIXXWRgwu515vfuVM2hB3nDsfXHv8EwII1ITvxZ7+pCMFQUCbp6hM7lzVX0YKuCHc/sQezAkipC5kfFhs27Cz4mvct+nLSbznJbjnp0D38H3M7xxi/Cy4Vk/vp3angpKXZH8sfV564Uel1/3AcTJ3+WDV/ddFuoPXcFLgwUXvKHyq1rsM2+hNUYhIZvF/nKc0ly/WtC8Kaf6HCKlvjo5Om+o25zhXN3nr/98g5FGBlLpOEXvT0+QFX8gkHIZaL20vDL1yhNjWYF8ACqhbMBteJ7OboIVXAjK7wpl23R7BAFWx+3JAndyERTF6n8Mlr7q05MtexhDm2pymEySG8fFG3WjOikrOygf03UEX2ePzu1ZjTyj5U3d0ZHPVyO2GZxp/qB2lInug+Wm2MgfGvVcnU/EK+r9McwqmYEhJnVLDVAXnfgEWQaYI/YmAsfSRiR1/82/SHDZO7at1fRrgoNxamXIEtX4j9XwAfcZJzYkLwVPbwIPqEO/yNGDOrsSiLZTJKns5maPOlU57b5hCKbpaZwUsnrJ6DeVPr6/b9+pNhssdRj3ikL7MrGpoLFNQrYsaWt/h+CAeoiwnATBXBA/SDgSSQjm8028aJns51KMidpkeM3p7i3C5cA40w== rupngautam@gmail.com