Skip to content

Instantly share code, notes, and snippets.

Tristan parasquid

Block or report user

Report or block parasquid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Brewfile
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
brew "autoconf"
brew "automake"
brew "coreutils"
brew "libyaml"
brew "readline"
brew "docker-compose"
View gist:5de4fa8ec49722a277b1d871015da767
# starts postgres
docker run --name postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 postgres
# starts postgres with timescaledb
docker run --name timescaledb -e POSTGRES_PASSWORD=postgres -p 5432:5432 timescale/timescaledb:1.0.0-pg10
parasquid / provision.ps1
Last active Oct 16, 2018
Windows setup
View provision.ps1
Set-MpPreference -ExclusionPath "$(Resolve-Path '~/')"
iex (new-object net.webclient).downloadstring('')
set-executionpolicy unrestricted -s cu
mkdir %USERPROFILE%\golib
mkdir %USERPROFILE%\go
scoop bucket add extras
scoop bucket add java
parasquid / hb links bookmarklet
Last active Sep 17, 2018
Generate Humble Bundle wget links (save as a bookmarklet)
View hb links bookmarklet
parasquid / vagrant.rb
Created Sep 11, 2018 — forked from bjjb/vagrant.rb
A Capistrano 3.x Vagrant stage. Place into config/deploy/vagrant.rb, and deploy to the Vagrant box as if it were a production VM.
View vagrant.rb
# Capistrano 3.x Vagrant stage
# config/deploy/vagrant.rb
set :stage, :vagrant
set :rails_env, "production"
vagrant_ssh_config = `vagrant ssh-config`.split("\n")[1..-1].map(&:strip).inject({}) do |m, s|
k, v = s.split(/\s/, 2).map(&:strip); m[k] = v; m
GNU nano 2.9.3 Modified
# initialize sudo
sudo echo
# update and install base packages
sudo apt update
sudo apt -y upgrade
sudo apt install -y git curl build-essential bundler patch ruby-dev \
parasquid / string-utils.js
Created Aug 23, 2018 — forked from jonlabelle/string-utils.js
Useful collection of JavaScript string utilities.
View string-utils.js
// String utils
// resources:
// -- mout,
* "Safer" String.toLowerCase()
function lowerCase(str){
return str.toLowerCase();
parasquid /
Last active Aug 28, 2018
Script for provisioning a new machine
# initialize sudo
sudo echo
# update and install base packages
sudo apt update
sudo apt -y upgrade
sudo apt install -y git curl gnome-tweaks build-essential bundler patch ruby-dev \
zlib1g-dev liblzma-dev nodejs chromium-browser npm youtube-dl htop \
parasquid / gist:31e1743f122b981511dd74d18c23024e
Last active Jun 11, 2018
generate a wgettabl download list of all books in humble bundle
View gist:31e1743f122b981511dd74d18c23024e
var pattern = /(MOBI|EPUB|PDF( ?\(H.\))?|CBZ|Download)$/i;
var nodes = document.getElementsByTagName('a');
var downloadCmd = '';
for (i in nodes) {
var a = nodes[i];
if (a && a.text && pattern.test(a.text.trim()) && a.attributes['href']) {
downloadCmd += 'wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 20 -c --content-disposition "' + a.attributes['href'].value + "\"\n";
var output = document.createElement("pre");
parasquid / .block
Last active Jan 26, 2018
Film Flowers, Single Starter Code
View .block
license: gpl-3.0
You can’t perform that action at this time.