Skip to content

Instantly share code, notes, and snippets.

Avatar

Nathaniel nathanielks

View GitHub Profile
@nathanielks
nathanielks / keybase.md
Created Oct 15, 2021 — forked from webframp/keybase.md
Signing git commits on github using keybase.io gpg key
View keybase.md

Probably one of the easiest things you'll ever do with gpg

Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

@nathanielks
nathanielks / https-setup.md
Last active Jan 17, 2017 — forked from indolering/https-setup.md
Shell script to generate TLS certificates for local development (.test, .example, etc)
View https-setup.md
View wpmandrill-ms.php
<?php
/*
* Plugin Name: wpMandrill MS
* Plugin URI: trepmal.com
* Description: Network-wide settings for wpMandrill.
* Version: 2013.04.01
* Author: Kailey Lampert
* Author URI: kaileylampert.com
* License: GPLv2 or later
* TextDomain: wpmandrill-ms
@nathanielks
nathanielks / functions.php
Created Mar 14, 2012 — forked from johnmegahan/functions.php
Extended Walker class for use with the Twitter Bootstrap toolkit Dropdown menus in Wordpress.
View functions.php
<?php
add_action( 'after_setup_theme', 'bootstrap_setup' );
if ( ! function_exists( 'bootstrap_setup' ) ):
function bootstrap_setup(){
add_action( 'init', 'register_menu' );
@nathanielks
nathanielks / wordpress.php
Created Feb 1, 2012 — forked from cogentParadigm/wordpress.php
Automated Wordpress Installer
View wordpress.php
#!/usr/bin/php
<?php
$usage = "Automated Wordpress installer\nby Ali Gangji\nUsage: wordpress install_dir -u dbuser -p dbpass -d dbname\nOptions:\n";
$usage .= " -u dbuser Database username\n";
$usage .= " -p dbpass Database password\n";
$usage .= " -d dbname Database name\n";
$usage .= " -h dbhost Database host\n";
$usage .= " --private Hide blog from search engines\n";
$usage .= " --prefix prefix Database prefix\n";
if ($argc < 2) {