Skip to content

Instantly share code, notes, and snippets.

View sumpygump's full-sized avatar

Jansen Price sumpygump

View GitHub Profile
@sumpygump
sumpygump / composer.json
Created March 31, 2014 16:00
WP composer install
{
"repositories": [
{
"type": "package",
"package": {
"name": "wordpress",
"type": "webroot",
"version": "3.8.1",
"dist": {
"type": "zip",
#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>
@sumpygump
sumpygump / sf.php
Created April 22, 2014 15:29
Universal app/console for Symfony applications
#!/bin/bash
# This script allows you to run `sf` instead of app/console and you don't have
# to be the root of a Symfony application. It will traverse the parent
# directories until it finds app/console.
targetfile=app/console
path=.
# Get the canonical directory of the current "path"
@sumpygump
sumpygump / 0_reuse_code.js
Created July 29, 2014 01:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@sumpygump
sumpygump / colors.sh
Created September 17, 2014 13:51
Terminal colors checker
#!/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).
#
@sumpygump
sumpygump / README
Last active August 29, 2015 14:07
Dpkg Packages
# 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
@sumpygump
sumpygump / method
Created January 2, 2015 21:51
Method Radio Terminal Status
#!/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 / splay
Created February 25, 2015 22:57
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 / lsaber
Last active May 16, 2020 18:04
ASCII Lightsaber
#!/bin/bash
######################################################################
# The ASCII lightsaber #
# #
# By: Jansen Price <jansen.price@gmail.com> #
# November 19, 2015 #
# ▁▁▁▁▁▁▁▁▁▁▁▁▁ ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ #
# |▍░▐░░▣░▒░▒░▒▕| ▌ #
# ▔▔▔▔▔▔▔▔▔▝▔▔▔ ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ #