This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
/usr/lib/apt/apt-helper download-file http://debian.sur5r.net/i3/pool/main/s/sur5r-keyring/sur5r-keyring_2017.01.02_all.deb keyring.deb SHA256:4c3c6685b1181d83efe3a479c5ae38a2a44e23add55e16a328b8c8560bf05e5f | |
dpkg -i ./keyring.deb | |
echo "deb http://debian.sur5r.net/i3/ $(grep '^DISTRIB_CODENAME=' /etc/lsb-release | cut -f2 -d=) universe" | sudo tee /etc/apt/sources.list.d/sur5r-i3.list | |
sudo apt update | |
sudo apt install i3 | |
git clone https://github.com/vivien/i3blocks.git | |
(cd i3blocks && sudo make install) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y \ | |
swh-plugins \ | |
python3-dev \ | |
python3-pip \ | |
libgtk-3-dev \ | |
python3-cairo-dev \ | |
python3-numpy \ | |
python3-scipy \ | |
python-gi-dev \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let s:requests = {} | |
fu! s:chunk_handler(id, data, event) | |
if(!has_key(s:requests, a:id)) | |
throw "Could not find http handler" | |
endif | |
let chunks = s:requests[a:id][a:event] | |
for line in a:data | |
call add(chunks, line) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var argCurry = function(args, n, fn) { | |
if(args.length === n) { | |
return fn.apply(null, args) | |
} else { | |
return function() { | |
var newArgs = args.concat(Array.prototype.slice.call(arguments)) | |
return argCurry(newArgs, n, fn) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone [email protected]:AGhost-7/sheet-cli | |
cd sheet-cli | |
git config user.name 'AGhost-7' | |
git config user.email '[email protected]' | |
git config core.sshCommand 'ssh -i ~/.ssh/github_aghost -F /dev/null' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install neovim | |
curl --create-dirs -o ~/.config/nvim/init.vim \ | |
https://raw.githubusercontent.com/AGhost-7/dotfiles/master/init.vim | |
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
nvim +PlugInstall +qall |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// data source: https://www.netmarketshare.com/operating-system-market-share.aspx?qprid=9&qpcustomb=0&qpsp=204&qpnp=13&qptimeframe=M | |
const osx = [7.87, 7.37, 6.92, 6.43, 6.74, 6.07] | |
const linux = [2.33, 2.11, 2.23, 2.18, 2.31, 2.21] | |
const changes = (list) => list.slice(1).map((share, i) => share - list[i]) | |
const avg = (list) => list.reduce((accu, val) => accu + val, 0) / list.length | |
const linuxAvgChange = avg(changes(linux)) | |
const osxAvgChange = avg(changes(osx)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the dev files for wineasio | |
git clone git://git.code.sf.net/p/wineasio/code /tmp/wineasio | |
# Install jack server | |
sudo apt-get install jackd1 -y | |
# Going to be using playonlinux to manage the wine executables but I | |
# still need the development files to compile wineasio | |
sudo apt-get install playonlinux -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The branch that the new branch hasn't been merged into | |
oldBranch="master" | |
# The branch with new commits | |
lastestBranch="develop" | |
git log $latestBranch ^$oldBranch --no-merges --pretty='format:%s' \ | |
| grep -o -E '^(\[){0,1}([A-Za-z]+)[- ][0-9]+' \ | |
| sed 's/\[//' | |