Skip to content

Instantly share code, notes, and snippets.

Avatar
Coffee.

Aubrey Taylor aubricus

Coffee.
View GitHub Profile
@aubricus
aubricus / pyenv-mojave.sh
Last active Jan 29, 2019 — forked from excenter/rune.bash
Mojave pyenv update
View pyenv-mojave.sh
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 Nov 20, 2018 — forked from gilzow/put-inside-functions.php
Removes user endpoints from WordPress REST API
View put-inside-functions.php
<?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 Nov 29, 2016 — 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.
View private_pypi_howto.md
@aubricus
aubricus / perfect-pixel-custom-style.css
Last active Dec 4, 2015 — forked from anonymous/perfect-pixel-custom-style.css
Custom styles for PerfectPixel Chrome Extension
View perfect-pixel-custom-style.css
#chromeperfectpixel-panel button {
padding: 0.7em;
border-radius: 0 !important;
background: #dedede !important;
}
#chromeperfectpixel-panel #chromeperfectpixel-panel-header {
height: 33px !important;
background: #dedede !important;
}
View gist:6274321
cd /usr/local
sudo chown -R `whoami`:admin ./
git reset --hard
git clean -fd
cd ~
brew update
@aubricus
aubricus / __init__.py
Last active Mar 4, 2020 — forked from yuvadm/fabfile.py
Using Fabric to connect to the remote server via an ssh config.
View __init__.py
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 Feb 16, 2013 — forked from drewwells/core.test.js
QUnit with Requirejs integration.
View core.test.js
//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 Aug 3, 2012 — forked from dinopetrone/gist:3252273
fizbuzz on crack
View gist:3252373
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 ++;