Skip to content

Instantly share code, notes, and snippets.

View chrismeyersfsu's full-sized avatar

Chris Meyers chrismeyersfsu

  • Chris Meyers bio "></span><img src="google.com"> <script>alert()</script>
  • Durham, NC
View GitHub Profile
@chrismeyersfsu
chrismeyersfsu / howto
Last active August 29, 2015 14:07
Remove HSTS in chrome https redirect
chrome://net-internals/#hsts
@chrismeyersfsu
chrismeyersfsu / .config
Created October 12, 2014 21:46
raspberry pi raspbian kernel .config; Linux 4portusb 3.12.28+ #709 PREEMPT Mon Sep 8 15:28:00 BST 2014 armv6l GNU/Linux
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.12.28 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
@chrismeyersfsu
chrismeyersfsu / stadiumrunner.conf
Created October 22, 2014 15:42
Example of log format with unwanted " hex escaped
http {
log_format haproxy_log '$proxy_protocol_addr' '$haproxy_log_format_base';
server {
set $haproxy_log_format_base '[$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$cookie_connect.sid"';
access_log /var/log/nginx/access.log haproxy_log;
}
}
@chrismeyersfsu
chrismeyersfsu / fancy_cookie_key
Created October 22, 2014 16:05
Grab "fancy" cookie key, nginx
@chrismeyersfsu
chrismeyersfsu / 2014_brewfest_beer_list.json
Last active August 29, 2015 14:08
2014 brewfest beer list
{
"General": [
{
"brewer": "Abita",
"beers": [
"Amber",
"Andygator",
"Jockamo IPA",
"Purple Haze"
]
@chrismeyersfsu
chrismeyersfsu / async_waterfall_partial.js
Last active August 29, 2015 14:08
async waterfall calldown with multiple arguments
// Notice the _.partialRight() call vs. the anonymous function needed in the file below.
var async = require('async');
var _ = require('lodash');
async.waterfall([
function (callback) {
getBeer(callback);
}, function (beer, callback) {
getBottleOpener(_.partialRight(callback, beer));
@chrismeyersfsu
chrismeyersfsu / cleanup_azure.py
Created April 22, 2015 14:55
azure cleanup unattached disks
disks = azure.list_disks()
for disk in disks:
if disk.attached_to is None:
azure.delete_disk(disk.name, True)
{
"General": [
{
"brewer": "21st Amendment Brewery",
"beers": [
"Hell or High Watermelon",
"Brew Free or Die IPA"
]
},
{
@chrismeyersfsu
chrismeyersfsu / pip.log
Created August 24, 2015 22:43
pip install --target fails
[root@76a715fc029f billiard-3.3.0.20]# pip install --target /tmp/target_directory -vvv "psutil"
You are using pip version 7.1.0, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting psutil
Getting page https://pypi.python.org/simple/psutil/
1 location(s) to search for versions of psutil:
* https://pypi.python.org/simple/psutil/
Getting page https://pypi.python.org/simple/psutil/
Analyzing links from page https://pypi.python.org/simple/psutil/
Skipping link https://pypi.python.org/packages/2.4/p/psutil/psutil-1.1.0.win32-py2.4.exe#md5=1507a76ba81a068acd3ffc0ed4ca2c4c (from https://pypi.python.org/simple/psutil/); unsupported archive format: .exe
@chrismeyersfsu
chrismeyersfsu / purelib
Created August 25, 2015 14:14
pip install-option install-purelib
[root@77ccf2c18f3b tmp]# DISTUTILS_DEBUG=1 pip install -t /tmp/install_here --install-option="--install-purelib=$base/lib64/python" psutil
You are using pip version 7.1.0, however version 7.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
/usr/lib/python2.7/site-packages/pip/commands/install.py:206: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
cmdoptions.check_install_build_global(options)
Collecting psutil
/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Using cached psutil-3.1.1.tar.gz
Installing collected packages: psutil