Skip to content

Instantly share code, notes, and snippets.

View aubricus's full-sized avatar
Coffee.

Aubrey Taylor aubricus

Coffee.
View GitHub Profile
@aubricus
aubricus / pyenv-mojave.sh
Last active January 29, 2019 00:10 — forked from excenter/rune.bash
Mojave pyenv update
export LDFLAGS="-L/usr/local/opt/sqlite/lib -L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/sqlite/include -I/usr/local/opt/zlib/include"
xcode-select --install
brew update
brew upgrade
brew install zlib
pyenv install 3.7.1
pyenv global 3.7.1
@aubricus
aubricus / put-inside-functions.php
Created November 20, 2018 02:41 — forked from gilzow/put-inside-functions.php
Removes user endpoints from WordPress REST API
<?php
/**
* Remove API Endpoints
*
* Clobber API routes to remove them from public access.
*/
function remove_wp_json_api_endpoints($endpoints) {
$toRemove = array(
"/oembed/1.0/embed",
"/wp/v2/users",
@aubricus
aubricus / private_pypi_howto.md
Last active November 29, 2016 03:00 — forked from Jaza/Private-pypi-howto
Guide for how to create a (minimal) private PyPI repo, just using Apache with directory autoindex, and pip with an extra index URL.
@aubricus
aubricus / perfect-pixel-custom-style.css
Last active December 4, 2015 00:11 — forked from anonymous/perfect-pixel-custom-style.css
Custom styles for PerfectPixel Chrome Extension
#chromeperfectpixel-panel button {
padding: 0.7em;
border-radius: 0 !important;
background: #dedede !important;
}
#chromeperfectpixel-panel #chromeperfectpixel-panel-header {
height: 33px !important;
background: #dedede !important;
}
cd /usr/local
sudo chown -R `whoami`:admin ./
git reset --hard
git clean -fd
cd ~
brew update
@aubricus
aubricus / __init__.py
Last active November 27, 2022 01:19 — forked from yuvadm/fabfile.py
Using Fabric to connect to the remote server via an ssh config.
from fabric.api import env
env.use_ssh_config = True
env.forward_agent = True
env.roledefs = {
# key # hostname from config
'foo': ['foo.production'],
}
@aubricus
aubricus / core.test.js
Created February 16, 2013 05:29 — forked from drewwells/core.test.js
QUnit with Requirejs integration.
//Wait for relevant code bits to load before starting any tests
define(['core.js'], function( core ) {
module("Core Tests");
test("Test core methods", function(){
expect(2);
equals( 1, 1, "A trivial test");
ok( true, "Another trivial test");
});
@aubricus
aubricus / gist:3252373
Created August 3, 2012 22:57 — forked from dinopetrone/gist:3252273
fizbuzz on crack
var fb = {
fbArr:['','','Fizz','','Buzz','Fizz','','','Fizz','Buzz','','Fizz','','','FizzBuzz'],
next:function(){
var index = this.count();
var total = this.total();
console.log(total + ':' + this.fbArr[index])
},
count:function(){
if(typeof(arguments.callee.index) == 'undefined')arguments.callee.index =-1;
arguments.callee.index ++;