I hereby claim:
- I am jumbosushi on github.
- I am jumbosushi (https://keybase.io/jumbosushi) on keybase.
- I have a public key whose fingerprint is 8AE0 7956 6449 9F08 CB99 4B3F 3AE6 3A6A 5E2A 2F09
To claim this, I am signing this object:
git clone --bare https://github.com/jumbosushi/dotfiles.git $HOME/.cfg | |
function config { | |
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@ | |
} | |
mkdir -p .config-backup | |
config checkout | |
if [ $? = 0 ]; then | |
echo "Checked out config."; | |
else | |
echo "Backing up pre-existing dot files."; |
I hereby claim:
To claim this, I am signing this object:
require "open-uri" | |
# Last lec is 23, first is 01 | |
# Ex Assignment link: https://www.cs.ubc.ca/~poole/cs322/2018/as1/as1.pdf | |
# EX Lec link: https://www.cs.ubc.ca/~poole/cs322/2018/slides/lect23s.pdf | |
def get_as_link(num) | |
return "https://www.cs.ubc.ca/~poole/cs322/2018/as#{num}/as#{num}.pdf" | |
end | |
def get_as_sol_link(num) |
require 'json' | |
def get_avg(num_array) | |
avg = num_array.instance_eval { reduce(:+) / size } | |
in_sec_f = avg / 1000 | |
in_sec_f.round(3).to_s + " sec" | |
end | |
# 'vendor_index_api_responses' is dir that all responses are saved | |
all_results = Dir["#{Dir.home}/Documents/vendor_index_api_responses/*"] |
for file in * | |
do | |
gpg -d -o ~/backup_ungpg/$file.tar.gz "$file" | |
done |
mv ~/.gnupg ~/.new_gnupg | |
cp -r /backup/.gnupg ~cd .gnupg/ | |
gpg --export-secret-keys > sec.gpg | |
rm -r ~/.gnupg | |
mv ~/.new_gnupg ~/.gnupg | |
gpg --import sec.gpg |
#!/usr/bin/expect -f | |
# Steps to add it to your server: | |
# 1. Create autopass.sh in your home dir | |
# $ touch ~/autopass.sh | |
# 2. Change file permission of the file | |
# $ chmod 777 ~/autopass.sh | |
# 3. Add alias in your .bashrc (or .zshrc if you're using zsh) | |
# $ echo 'alias ap="~/autopass"' > ~/.bashrc | |
# 4. Reload your shell |
git clone https://github.com/jumbosushi/dotfiles.git ~/.vimsetup | |
cp ~/.vimsetup/.vimrc_bare ~/.vimrc | |
cp ~/.vimsetup/.editrc ~/.editrc | |
cp ~/.vimsetup/.inputrc ~/.inputrc | |
cp ~/.vimsetup/.pryrc ~/.pryrc | |
cp ~/.vimsetup/.tmux.conf ~/.tmux.conf |
require 'faraday' | |
require 'faraday-rate_limiter' | |
require 'openssl' | |
require 'pry' | |
require 'json' | |
# To avoid Faraday's OpenSSL error | |
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE | |
kanji_1 = "ジャズシャンソン歌手 |