Skip to content

Instantly share code, notes, and snippets.

##
## Patched verson of webdriver to load PhantomJS with --ignore-ssl-errors=true
## Include in your file with source(webdriver_patched_ignore-SSL.r) before you run run_phantomjs()
##
library(curl)
library(callr)
phantom_paths <- function() {
path <- '~/bin'
@robinmarlow
robinmarlow / 99-resume_script.sh
Last active January 4, 2018 14:06
/usr/lib/systemd/system-sleep/99-resume_script.sh
#!/bin/sh
# run on wakeup
case "$1" in
hibernate|suspend)
;;
pre)
modprobe -r bcm5974
echo '*disable XHC1' >/proc/acpi/wakeup
echo '*disable ARPT' >/proc/acpi/wakeup
@robinmarlow
robinmarlow / MBP_gentoo_kernel_4.2.3.config
Last active October 19, 2015 09:04
Gentoo 4.2.3 kernel config for 13" 2015 MBP. suspend works using the latest brcfm firmware https://github.com/rsalveti/ubuntu-linux-firmware/blob/wily-brcmfmac/brcm/brcmfmac43602-pcie.bin
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.2.3-gentoo Kernel Configuration
#
#
# Gentoo Linux
#
CONFIG_GENTOO_LINUX=y
CONFIG_GENTOO_LINUX_UDEV=y