Skip to content

Instantly share code, notes, and snippets.

@datawookie
datawookie / install-chrome.sh
Created February 9, 2018 14:38
Install Chrome and ChromeDriver
#!/bin/bash
# For headless Chrome (although not necessary with --headless option).
#
sudo apt-get install xvfb
sudo apt-get install unzip
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@datawookie
datawookie / digg_reader_subscriptions.xml
Created November 30, 2017 08:59
RSS Feeds (in OPML)
<?xml version="1.0" encoding="UTF-8" ?>
<opml version="1.0">
<head>
<title>Andrew B. Collier subscriptions in Digg Reader</title>
</head>
<body>
<outline text="Hyndsight" title="Hyndsight" type="rss" xmlUrl="http://feeds.feedburner.com/ProfessorRobJHyndman" htmlUrl="http://robjhyndman.com" /></body>
</opml>
@datawookie
datawookie / truffle.js
Last active November 19, 2017 06:48
Truffle configuration (for truffle console)
// Configuration for Truffle development console.
//
module.exports = {
networks: {
development: {
host: "localhost",
port: 9545,
network_id: "*",
gas: 4000000
}
@datawookie
datawookie / truffle.js
Last active November 19, 2017 06:50
Truffle configuration (for testrpc)
// Configuration for testrpc.
//
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*",
gas: 4000000
}
@datawookie
datawookie / install-osrm.sh
Last active October 30, 2021 23:53
Install OSRM
#!/bin/bash
sudo apt update
sudo apt install -y git \
cmake \
build-essential \
jq \
liblua5.2-dev \
libboost-all-dev \
libprotobuf-dev \
@datawookie
datawookie / install-wine.sh
Last active August 4, 2022 08:25
Install Wine
#!/bin/bash
sudo dpkg --add-architecture i386
curl -fsSL https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add -
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-get update
@datawookie
datawookie / install-docker.sh
Last active March 22, 2020 09:55
Install Docker
#!/bin/bash
# ---------------------------------------------------------------------------------------------------------------------
# Amazon Linux
#
# sudo yum update -y
# sudo yum install -y docker
# sudo service docker start
# sudo usermod -a -G docker ec2-user
@datawookie
datawookie / rockabye-baby.sh
Last active November 11, 2017 15:51
Download selected songs from Rockabye Baby! as MP3
#!/bin/bash
# Dowload lullabies from Rockabye Baby! for offline use.
#
# https://www.youtube.com/channel/UC7LesmfW8QPP7mDYYLwW4Aw
cat <<EOF | xargs youtube-dl --extract-audio --audio-format mp3 --
tl9eIKqplXg
-UUZRR8G8UI
aHq1MDvf4Wc
@datawookie
datawookie / moving_checksum.R
Last active December 29, 2015 06:51
Rolling Checksum
library(dplyr)
library(ggplot2)
library(scales)
checksum <- function(bytes) {
Reduce(bitwXor, bytes)
}
# Generate message with:
#