Skip to content

Instantly share code, notes, and snippets.

Avatar
🦄
Working

Daniel Wilson Danw33

🦄
Working
View GitHub Profile
@Danw33
Danw33 / README.md
Last active Aug 29, 2015
Mirror of Optware pre-installation script (optware-install-ddwrt.sh)
View README.md

A Mirror

This Gist is a mirror of the original Optware pre-installation script as it appeared here on 16/07/2014. The only changes made are to the comment block at the top of the script (adding lines 4, 5 and 6).

The script, optware-install-ddwrt.sh is copyright it's respective creators and is only mirrored here for future reference and archival purposes.

Usage

@Danw33
Danw33 / D62083D0.asc
Created Jan 21, 2015
Public Key (D62083D0)
View D62083D0.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: GPGTools - https://gpgtools.org - http://danw.io
mQINBFOS9bMBEAC2EluJTsjKHIeks+1Rt5ci3XU3hR/RjjLYQppcGZDKToDO5Jz2
LE4lqcLfaDkJejtpD2U6VBrFGgzISP57NlANBMgmaNdes8LSVcCj0ClGyYk453cQ
LRYAW+oagOPV8cEobh+Lj4A1f29Utj/YCx3E8KTtQwb4y6nwZm9x9xX//67QzpTt
K3PAxevWvsYW1GBqwzjDw7XhTjAiwRfJ8grjRTC8zygpbBTpuPPf6hMRI+iZahVk
WERq478UN559jP4lg5ufjLefASfoCr8JnFB5+GaD2PavX/anA5aNfmu7EmDolt4l
8088vAD28d5RiR6d6YwXBhPRxNwcGvL2TIumdpGaLd67wNWEy2hLpX3i3HMIJdPW
dzvh979Cwbqo3G5FbrDRAzkZqjVIfWjzmec251umhIFULaeU87F7ipSYPi+92KMg
@Danw33
Danw33 / keybase.md
Created Jan 21, 2015
Keybase Github Proof
View keybase.md

Keybase proof

I hereby claim:

  • I am danw33 on github.
  • I am danw33 (https://keybase.io/danw33) on keybase.
  • I have a public key whose fingerprint is 1C6E 2273 D397 06CC 48EF A543 1C76 31C7 D620 83D0

To claim this, I am signing this object:

View mofomenu.css
.nav-trigger-case .collapsed {
right: 1%;
}
@Danw33
Danw33 / D62083D0.asc
Last active Apr 20, 2016
PGP Key for Daniel Wilson - D62083D0 - https://danw.io/dan.pgp.pub.asc
View D62083D0.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: PGP for Daniel Wilson - https://danw.io/dan.pgp.pub.asc
mQINBFOS9bMBEAC2EluJTsjKHIeks+1Rt5ci3XU3hR/RjjLYQppcGZDKToDO5Jz2
LE4lqcLfaDkJejtpD2U6VBrFGgzISP57NlANBMgmaNdes8LSVcCj0ClGyYk453cQ
LRYAW+oagOPV8cEobh+Lj4A1f29Utj/YCx3E8KTtQwb4y6nwZm9x9xX//67QzpTt
K3PAxevWvsYW1GBqwzjDw7XhTjAiwRfJ8grjRTC8zygpbBTpuPPf6hMRI+iZahVk
WERq478UN559jP4lg5ufjLefASfoCr8JnFB5+GaD2PavX/anA5aNfmu7EmDolt4l
8088vAD28d5RiR6d6YwXBhPRxNwcGvL2TIumdpGaLd67wNWEy2hLpX3i3HMIJdPW
dzvh979Cwbqo3G5FbrDRAzkZqjVIfWjzmec251umhIFULaeU87F7ipSYPi+92KMg
@Danw33
Danw33 / states_hash.json
Created Apr 25, 2016 — forked from mshafrir/states_hash.json
US states in JSON form
View states_hash.json
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
@Danw33
Danw33 / git2go-checkout-branch.go
Created May 11, 2018 — forked from danielfbm/git2go-checkout-branch.go
How to do a git checkout branch using git2go
View git2go-checkout-branch.go
package main
import (
"errors"
"log"
"github.com/libgit2/git2go"
)
func checkoutBranch(repo *git.Repository, branchName string) error {
checkoutOpts := &git.CheckoutOpts{
@Danw33
Danw33 / eu_cookie_banner.js
Created Nov 8, 2018 — forked from bavington/eu_cookie_banner.js
Simple EU Cookie Law Banner JavaScript
View eu_cookie_banner.js
@Danw33
Danw33 / error-handler.php
Last active Mar 28, 2019
Custom PHP Error Handler
View error-handler.php
<?php
/**
* Custom PHP Exception/Error Handler
*
* @see debug_error_handler
*
* @author Daniel Wilson <hello@danw.io>
* @since 0.0.1
*/
@Danw33
Danw33 / mu-plugin-log-wp-redirects.php
Last active Apr 1, 2019
Danw33's Redirect Log for WordPress (mu-plugin)
View mu-plugin-log-wp-redirects.php
<?php
/**
* Logs calls to wp_safe_redirect and wp_redirect to allow for server-side optimisation of common redirects
*
*
* @wordpress-plugin
* Plugin Name: WP Redirect Log
* Plugin URI: https://gist.github.com/Danw33/6ad3b423ca2d57ed46a1b21461c13498
* Description: Logs calls to wp_redirect and wp_safe_redirect to allow for server-side optimisation of common redirects
* Version: 1.0.0