Skip to content

Instantly share code, notes, and snippets.

View scottjacobsen's full-sized avatar

Scott Jacobsen scottjacobsen

View GitHub Profile
#!/bin/bash
if [[ -d /mnt/yavin/hoth ]]; then
nice -n15 /usr/bin/rdiff-backup --exclude=/boot --exclude=/dev --exclude=/**/.gvfs --exclude=/media --exclude=/mnt --exclude=/proc --exclude=/sys --exclude=/lib/udev --exclude=/tmp --exclude=/home/scott/.mozilla/firefox/jxg17tdp.default/Cache --exclude=/usr/portage/distfiles --exclude=/var/tmp/portage --exclude=/var/run --exclude=/home/scott/.VirtualBox/HardDisks/SQLData.vdi / /mnt/yavin/hoth/current
fi
url.sub /_normal(\.[[:alnum:]]+)?$/, '\\1'
ACCEPT_KEYWORDS="~amd64"
INPUT_DEVICES="evdev synaptics"
FEATURES="parallel-fetch"
LINGUAS="en_US"
ACCEPT_LICENSE=*
PORTDIR_OVERLAY=/usr/local/portage
APACHE2_MPMS=prefork
EMERGE_DEFAULT_OPTS="--quiet-build=y"
RUBY_TARGETS="ruby19"
USE="mmx sse sse2 -esd -swat -gnome -qt -qt3 -qt4 -kde laptop quicktime \
#assuming schema is
# table turbines
# id integer
# turbine_type_id integer
# table turbine_types
# id integer
# name string
class Turbine < ActiveRecord::Base
E: Failed to fetch https://oss-binaries.phusionpassenger.com/apt/passenger/pool/trusty/main/n/nginx/nginx-common_1.8.0-8.5.0.23~trusty1_all.deb Could not resolve host: oss-binaries.phusionpassenger.com
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c apt-get update && /pd_build/redis.sh && apt-get upgrade -y -o Dpkg::Options::="--force-confold" && apt-get clean && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
@scottjacobsen
scottjacobsen / handler.clj
Created April 27, 2016 04:01
luminus test fail
(ns guestbook.test.handler
(:require [clojure.test :refer :all]
[ring.mock.request :refer :all]
[guestbook.handler :refer :all]))
(deftest test-app
(testing "main route"
(let [response (app (request :get "/"))]
(is (= 200 200)))
)
scott@endor ~/dev/todo% http POST https://autodiscover.microsoft.com/autodiscover/autodiscover.xml (git)-[master]
HTTP/1.1 401 Unauthorized
Cache-Control: private
Content-Length: 0
Date: Fri, 03 Jun 2016 22:02:29 GMT
Server: Microsoft-IIS/8.5
WWW-Authenticate: Basic realm="autodiscover.microsoft.com"
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
X-AspNet-Version: 4.0.30319
@scottjacobsen
scottjacobsen / public_key.asc
Created July 25, 2016 18:34
public gpg key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQGiBEK3TuERBAC32W5JMG1Yr0wFzkf0vT6GdhPyOvmb54kD14JWo0rS/aMAit6R
AYBhCLlit3hdJXP+yJx9nfjw74bTmjj0L/CS6EoBrQzxpW4W7rupeR095ny8zGaF
owJsK32+41f7UNgx3arNFV4wIl0LsRLMx56JCMyfRCrqHOwaW2qK89DE8wCgmvae
zh3lCVIyq9C2xyRlW59rYn8D/22UtZjrTI3OCtwsMlq/+9Rg+vuj+uVFTWrEMi5M
vZ9E18vjCXy+u7qDhKXo23/y4S1jIZS1j/yMCc6+NG2H1tcA+LxeqveokbWDH/rg
GQToy2sC62dPphQXBfyy/Nv7JeErfWJ3SyCV9S6EiHQCc5BQCTvvPhGh/mLVKusD
yKO9A/9wl3UVEeDTiz0ZvHtTIy/cahlYqQMEgHY+Tj2WFOKdWbzNYp7vqmXZKQVu
@scottjacobsen
scottjacobsen / ansible.txt
Last active November 4, 2016 04:41
ansible-whaaa?
# Install pre-built phantom
- name: Unarchive pre-built phantomjs
unarchive: src="https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2" dest=~/ remote_src=yes
fatal: [default]: FAILED! => {"failed": true, "msg": "file or module does not exist: /Users/scott/dev/drifter/https:/bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2"}
@scottjacobsen
scottjacobsen / anonymous-gist.
Created August 7, 2014 23:04
passenger-error
(staging-web) root@ip-10-0-1-132 /var/log/nginx# cat /tmp/passenger_native_support-rmfgcc.log
# mkdir -p /home/neighborland/.passenger/native_support/4.0.48/ruby-2.1.2-x86_64-linux-gnu
# cd /home/neighborland/.passenger/native_support/4.0.48/ruby-2.1.2-x86_64-linux-gnu
# /usr/bin/ruby2.1 /usr/share/passenger/ruby_extension_source/extconf.rb
checking for alloca.h... *** /usr/share/passenger/ruby_extension_source/extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options: