Skip to content

Instantly share code, notes, and snippets.

View adamancini's full-sized avatar

ada mancini adamancini

View GitHub Profile
@adamancini
adamancini / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/sh
#
set -ex
TEMP_DIR="$(mktemp -d -t XXXX)"
# cleanup
trap 'RESULT=$?; rm -rf "$TEMP_DIR" ; exit $RESULT' INT TERM EXIT QUIT
OLD_PWD="$PWD"
cd "$TEMP_DIR"
@adamancini
adamancini / gist:987a92920cbc523abe0c
Created January 15, 2015 02:34
test ifttt recipe public gist
body text
@adamancini
adamancini / asdf
Created January 15, 2015 03:01
random
gist
@adamancini
adamancini / gist:8fec32dab4ba91c60a7d
Created February 14, 2015 07:24
whatbox error log
2015/02/14 07:10:44 [error] 20872#0: *12 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 96.37.30.167, server: , request: "GET /owncloud/index.php HTTP/1.1", upstream: "fastcgi://unix:/home/hypgnosis/.config/php-fpm/socket:", host: "capricorn.whatbox.ca:64771"
2015/02/14 07:14:10 [info] 20872#0: *14 client closed connection while waiting for request, client: 96.37.30.167, server: 0.0.0.0:64771
2015/02/14 07:14:10 [info] 20872#0: *15 client closed connection while waiting for request, client: 96.37.30.167, server: 0.0.0.0:64771
2015/02/14 07:14:11 [error] 20872#0: *16 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 96.37.30.167, server: , request: "GET /owncloud/index.php HTTP/1.1", upstream: "fastcgi://unix:/home/hypgnosis/.config/php-fpm/socket:", host: "capricorn.whatbox.ca:64771"
#!/bin/bash
/home/arkie/postgres/bin/postgres -D /home/arkie/postgres/data > logfile 2>&1 &
@adamancini
adamancini / gist:d563d36fac7337b9d245
Created February 23, 2015 05:55
gmsusic-api error output
(virtualenv)hypgnosis@stew ~/gmusicapi-scripts $ ./gmsync.py up -d ~/files/Music/Music/
/home/hypgnosis/virtualenv/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:734: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
Successfully logged in.
Loading Google Music songs...
Filtered 0 Google Music songs
Loaded 551 Google Music songs
Loading local songs...
(virtualenv)hypgnosis@stew ~/gmusicapi-scripts $ ./gmsync.py up -d "/home/hypgnosis/files/Music/Music/"
/home/hypgnosis/virtualenv/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:734: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
Successfully logged in.
Loading Google Music songs...
Filtered 0 Google Music songs
Loaded 560 Google Music songs
Loading local songs...
@adamancini
adamancini / gist:5bc039e7b432a1074d77
Last active August 29, 2015 14:16
mosh make failure
$ export PKG_CONFIG_PATH=/home/hypgnosis/usr/lib/pkgconfig && ./configure --prefix=/home/hypgnosis/usr && make && make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
@adamancini
adamancini / gist:8ffc2677336072ed8f68
Created March 12, 2015 20:26
mod_proxy_fcgi error
[Thu Mar 12 16:24:59.868010 2015] [authz_core:debug] [pid 20052:tid 140437521037056] mod_authz_core.c(802): [client 70.210.3.243:1651] AH01626: authorization result of Require all granted: granted
[Thu Mar 12 16:24:59.868151 2015] [authz_core:debug] [pid 20052:tid 140437521037056] mod_authz_core.c(802): [client 70.210.3.243:1651] AH01626: authorization result of <RequireAny>: granted
[Thu Mar 12 16:24:59.868373 2015] [authz_core:debug] [pid 20052:tid 140437521037056] mod_authz_core.c(828): [client 70.210.3.243:1651] AH01628: authorization result: granted (no directives)
[Thu Mar 12 16:24:59.868533 2015] [proxy_fcgi:debug] [pid 20052:tid 140437521037056] mod_proxy_fcgi.c(124): [client 70.210.3.243:1651] AH01060: set r->filename to proxy:fcgi://127.0.0.1:9000/var/www/html/phpMyAdmin/index.php
[Thu Mar 12 16:24:59.868658 2015] [proxy:debug] [pid 20052:tid 140437521037056] mod_proxy.c(1117): [client 70.210.3.243:1651] AH01143: Running scheme fcgi handler (attempt 0)
[Thu Mar 12 16:24:59.868681 2015] [proxy_ajp:de