Skip to content

Instantly share code, notes, and snippets.

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active June 17, 2024 04:00 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@JPry
JPry / cmb2_sample.js
Last active February 21, 2019 13:31
A Sample CMB2 metabox with fields that show/hide based on other fields. In action: http://screencast.com/t/sXJ9rpOS
// Either create a new empty object, or work with the existing one.
window.JPry_CMB2 = window.JPry_CMB2 || {};
(function( window, document, $, app, undefined ) {
'use strict';
// Cache specific objects from the DOM so we don't look them up repeatedly.
app.cache = function() {
app.$ = {};
app.$.select = $( document.getElementById( 'jpry_sample_selection' ) );
@willurd
willurd / web-servers.md
Last active June 17, 2024 09:38
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@rodw
rodw / backup-github.sh
Last active June 4, 2024 16:06
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
#-------------------------------------------------------------------------------
# NOTES:
#-------------------------------------------------------------------------------
# * Under the heading "CONFIG" below you'll find a number of configuration
# parameters that must be personalized for your GitHub account and org.
# Replace the `<CHANGE-ME>` strings with the value described in the comments
# (or overwrite those values at run-time by providing environment variables).