Skip to content

Instantly share code, notes, and snippets.

Jansen Price sumpygump

Block or report user

Report or block sumpygump

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View katakana.py
#!/usr/bin/env python3
# coding=utf-8
import random
vowels = ["a", "i", "u", "e", "o"]
predicate_consonants = ["k", "g", "s", "z", "t", "d", "n", "h", "b", "p"]
syllables = []
_chars = "アイウエオカキクケコガギグゲゴサシスセソザジズゼゾタチツテトダヂヅデドナニヌネノハヒフヘホバビブベボパピプペポ"
View README-wp-tests.md

Testing a WP Plugin

I set up a new plugin using the WP Plugin Boilerplate generator: https://wppb.me

Make sure you have wp-cli installed https://wp-cli.org

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar 
chmod +x wp-cli.phar 
@sumpygump
sumpygump / fastcgi-php.conf
Created Jun 22, 2017
lvh.me Apache and Nginx configurations
View fastcgi-php.conf
# regex to split $uri to $fastcgi_script_name and $fastcgi_path
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# Check that the PHP script exists before passing it
try_files $fastcgi_script_name =404;
# Bypass the fact that try_files resets $fastcgi_path_info
# see: http://trac.nginx.org/nginx/ticket/321
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;
View reticent-memory.rb
# Reticent Memory
# By Jansen Price 3/17/2016
# For Sonic Pi v2.9
use_bpm 124
# Don't log as much
use_debug false
# Set random seed
View maybe-git
#!/bin/bash
# Maybe Git
# INSTALLATION
# 1. Move this file into your ~/bin directory
# mv ./maybe-git ~/bin
# 2. Then run the following command:
# alias git='~/bin/maybe-git'
@sumpygump
sumpygump / lsaber
Last active Apr 27, 2019
ASCII Lightsaber
View lsaber
#!/bin/bash
######################################################################
# The ASCII lightsaber #
# #
# By: Jansen Price <jansen.price@gmail.com> #
# November 19, 2015 #
# ▁▁▁▁▁▁▁▁▁▁▁▁▁ ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ #
# |▍░▐░░▣░▒░▒░▒▕| ▌ #
# ▔▔▔▔▔▔▔▔▔▝▔▔▔ ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ #
View splay
#!/usr/bin/env python
# This is a quick CLI tool to preview a folder of audio samples.
# Run it in a directory with some .wav files.
# Uses mplayer to trigger playing the sounds.
# Currently it loads up as many samples as will fit on the keyboard (lowercase letters)
# In the future it will allow you to change directories, page through samples on the keyboard and maybe some other fun stuff.
import sys
import os
@sumpygump
sumpygump / method
Created Jan 2, 2015
Method Radio Terminal Status
View method
#!/usr/bin/env php
<?php
/**
* Method Radio Terminal status
*
* This will show the currently playing song and a brief song history from the
* terminal
*
* Save this file in your path as 'method'
@sumpygump
sumpygump / README
Last active Aug 29, 2015
Dpkg Packages
View README
# Dpkg Packages
Run this command to get the list of locally installed packages:
dpkg --get-selections | grep -v deinstall > ~/Desktop/packages
Then, when installing to the new computer, do this:
sudo dpkg --set-selections < ~/Desktop/packages && sudo apt-get -u dselect-upgrade
You can’t perform that action at this time.