Skip to content

Instantly share code, notes, and snippets.

View johnny13's full-sized avatar

Derek johnny13

View GitHub Profile
@johnny13
johnny13 / settings.json
Created July 27, 2018 16:12
HyperTerm Settings
// Hyper
@johnny13
johnny13 / settings.json
Created July 27, 2018 16:12
HyperTerm Settings
// Hyper
@johnny13
johnny13 / pressedvars.sh
Created May 6, 2018 23:30
Debian PRESEED Variables
export PRESEED_COUNTRY="US"
export PRESEED_HOSTNAME="fractal-server"
export PRESEED_KEYMAP="us"
export PRESEED_LANGUAGE="en"
export PRESEED_LOCALE="en_US.UTF-8"
export PRESEED_PASSWORD="fractal"
export PRESEED_USER_FULLNAME="FRAC"
export PRESEED_USERNAME="frac"
export PRESEED_TIMEZONE="America/Chicago"
@johnny13
johnny13 / nginx-wp-rewrite-uploads.conf
Last active January 18, 2018 21:16 — forked from petertoi/nginx-wp-rewrite-uploads.conf
Nginx rewrite to request WordPress uploads from external domain
server {
listen 80;
listen 443 ssl http2;
server_name .myriad.app;
root "/home/vagrant/code/myriad";
index index.html index.htm index.php;
charset utf-8;
@johnny13
johnny13 / ffmpeg-2.8.sh
Last active January 12, 2018 03:56 — forked from wpsmith/ffmpeg-2.8.sh
Install ffmpeg on MacOS with all the bells and whistles
# Installs Homebrew (3.4.1 as of Jan 11th 2018)
brew install ffmpeg --with-fdk-aac --with-game-music-emu --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265 --with-dcadec --with-faac --with-font-config --with-frei0r --with-libbluray --with-libbs2b --with-libcaca --with0libsoxr --with-openjpeg --with-openssl --with-theora --with-webp --with-tools
@johnny13
johnny13 / wp-config.php
Created January 9, 2018 02:00 — forked from ifamily/wp-config.php
A universal WordPress wp-config.php which works on local development to staging and production server environments.
<?php
/*
One wp-config for local development to staging to production.
*/
// Define Environments
$environments = array(
<?php
$email = (new WP_Mail)
->to('john.doe@gmail.com')
->subject('WP_Mail is great!')
->template(get_template_directory() .'/emails/demo.html', [
'name' => 'John Doe',
'location' => 'London',
'link' => 'http://github.com/anthonybudd/WP_Mail'
])
@johnny13
johnny13 / load_settings_menu.php
Created November 29, 2017 11:29 — forked from sabbir1991/load_settings_menu.php
Add extra menu in Settings menu in Dokan Dashboard
<?php
/** Adding Settings extra menu in Settings tabs Dahsboard */
add_filter( 'dokan_get_dashboard_settings_nav', 'dokan_add_settings_menu' );
function dokan_add_settings_menu( $settings_tab ) {
$settings_tab['nayem'] = array(
'title' => __( 'Nayem', 'dokan'),
'icon' => '<i class="fa fa-user"></i>',
@johnny13
johnny13 / add_dashboard_menu.php
Created November 29, 2017 11:29 — forked from sabbir1991/add_dashboard_menu.php
Adding a Main Dashboard Menu in Dokan Dashboard
<?php
add_filter( 'dokan_query_var_filter', 'dokan_load_sabbir_menu' );
function dokan_load_sabbir_menu( $query_vars ) {
$query_vars['sabbir'] = 'sabbir';
return $query_vars;
}
add_filter( 'dokan_get_dashboard_nav', 'dokan_add_sabbir_menu' );
@johnny13
johnny13 / keybase.md
Created October 25, 2017 08:45 — forked from anonymous/keybase.md
keybase.md

Keybase proof

I hereby claim:

  • I am johnny13 on github.
  • I am thirt13n (https://keybase.io/thirt13n) on keybase.
  • I have a public key ASAbuv-9281qzftOHOFT9qzbT9_EC7c1idYI5hNuMNThvAo

To claim this, I am signing this object: