Skip to content

Instantly share code, notes, and snippets.

@datawookie
datawookie / unicode symbols
Last active April 8, 2024 15:29
Useful Unicode characters
https://github.com/muan/unicode-emoji-json
° — degree
× — times
💣 — bomb
💥 — explosion
🔥 — fire
🎉 — tada
🧯 — fire extinguisher
@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 / 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

Keybase proof

I hereby claim:

  • I am datawookie on github.
  • I am datawookie (https://keybase.io/datawookie) on keybase.
  • I have a public key whose fingerprint is F835 3643 5C64 6895 617E B3D1 196E B595 5F70 8E76

To claim this, I am signing this object:

@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 \
install.packages(c(
"aws.s3",
"broom",
"CEoptim",
"fst",
"furrr",
"geosphere",
"ggmap",
"gmapsdistance",
"googledrive",
@datawookie
datawookie / quotes-data.txt
Last active July 11, 2020 03:23
Quotes suitable for many occasions
But invariably, simple models and a lot of data trump more elaborate models based on less data.
— Halevy, Alon, Peter Norvig, and Fernando Pereira. 2009. The Unreasonable Effectiveness of Data. IEEE Intelligent Systems 24 (2) (March): 8-12. doi:10.1109/MIS.2009.36.
Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom.
— Clifford Stoll
Errors using inadequate data are much less than those using no data at all.
— Charles Babbage
I never guess. It is a capital mistake to theorize before one has data. Insensibly one begins to twist facts to suit theories, instead of theories to suit facts.
@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 / springer-books.R
Last active March 1, 2020 17:04
Springer Books
library(DBI)
library(readr)
library(htmlTable)
library(dplyr)
library(janitor)
springer_search <- read_csv("https://link.springer.com/search/csv?previous-end-year=2020&facet-content-type=%22Book%22&date-facet-mode=in&previous-start-year=2020&facet-language=%22En%22&showAll=false&query=&facet-start-year=2020&facet-end-year=2020")
springer_search <- springer_search %>%
clean_names() %>%
@datawookie
datawookie / s3-backup.sh
Last active January 16, 2019 02:23
Compress file and copy to S3
#!/bin/bash
# $ s3-backup data-file.txt s3://my-backup-folder
#
# Install under /usr/bin/ if it will be run from cron.
FILEPATH=$1
FILENAME=`basename $FILEPATH`
FILEDATE=`date +%Y%m%d-%H%M`-$FILENAME