Skip to content

Instantly share code, notes, and snippets.

Avatar

Jansen Price sumpygump

View GitHub Profile
@sumpygump
sumpygump / lsaber
Last active May 16, 2020
ASCII Lightsaber
View lsaber
#!/bin/bash
######################################################################
# The ASCII lightsaber #
# #
# By: Jansen Price <jansen.price@gmail.com> #
# November 19, 2015 #
# ▁▁▁▁▁▁▁▁▁▁▁▁▁ ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ #
# |▍░▐░░▣░▒░▒░▒▕| ▌ #
# ▔▔▔▔▔▔▔▔▔▝▔▔▔ ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ #
View nweb23.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
View keybase.md

Keybase proof

I hereby claim:

  • I am sumpygump on github.
  • I am jansenprice (https://keybase.io/jansenprice) on keybase.
  • I have a public key ASBAZNTU5XEbXCGFXfyDK4n80wWtaCLmfHrRKNGMir1Vkwo

To claim this, I am signing this object:

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 / colors.sh
Created Sep 17, 2014
Terminal colors checker
View colors.sh
#!/bin/bash
#
# This file echoes a bunch of color codes to the
# terminal to demonstrate what's available. Each
# line is the color code of one forground color,
# out of 17 (default + 16 escapes), followed by a
# test use of that color on all nine background
# colors (default + 8 escapes).
#
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
@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 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'
View Vagrantfile.phpdev55
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Version: 1.1.0
# Settings for this VM
VM_HOSTNAME = "php55.dev"
VM_IPADDRESS = "192.168.100.5"
MYSQL_ROOT_PW = "1111"
TIMEZONE = "America/Chicago"
You can’t perform that action at this time.