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
| #!/bin/bash | |
| setsid ./bin/hawkins-build.sh & | |
| sleep 1 | |
| BUILD_PID=`cat $HAWKINS_BUILD_PATH/hawkins-build.pid` | |
| BUILD_PGID=$(ps -o pgid= $BUILD_PID | grep -o '[0-9]*') | |
| echo "HAWKFILE PID: $$" | |
| echo "HAWKFILE PGID: $(ps -o pgid= $$ | grep -o '[0-9]*')" |
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
| " Basic stuff, leader to space, remap esc, saving files | |
| :let mapleader = " " | |
| :nnoremap <leader>ev :vsplit $MYVIMRC<cr> | |
| :imap jk <Esc> | |
| :nnoremap <Leader>s :update<CR> | |
| :nnoremap <Leader>x :x<CR> | |
| :nnoremap <Leader>q :bd<CR> | |
| :nnoremap <Up> <nop> | |
| :nnoremap <Down> <nop> | |
| :nnoremap <Left> <nop> |
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 | |
| uninstall() { | |
| list=`gem list --no-versions` | |
| for gem in $list; do | |
| gem uninstall $gem -aIx | |
| done | |
| gem list | |
| gem install gs | |
| gem install dep |
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
| class PricingModel | |
| def initialize(config) | |
| @configured_components = [ | |
| :setup_fee, | |
| :unit_price, | |
| :quantity_interpolated_price, | |
| :area_interpolated_price, | |
| :sheet_price, | |
| ] |
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
| https://tldr.ostera.io/parallel |
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
| ffmpeg -i video.mkv -vn -c:a libmp3lame audio.mp3 | |
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
| while read url filename; do wget -O "$filename" "$url"; done < /tmp/urls_and_filenames.txt |
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
| arandr | |
| xrandr -s 0 # to restart display layout |
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
| apt-get install vim git curl | |
| apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-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
| defmodule ConnectFour.Board do | |
| defstruct [ | |
| free: MapSet.new([]), | |
| player1: MapSet.new([]), | |
| player2: MapSet.new([]), | |
| dimensions: {0,0} | |
| ] | |
| def new({x,y} = dimensions) do | |
| %__MODULE__{ |