Skip to content

Instantly share code, notes, and snippets.

@zjrosen1
zjrosen1 / optimize_images.rb
Created November 5, 2013 19:02
Ruby script for optimizing images
#!/usr/bin/ruby
# Instructions
# - Install optipng + libjpeg (http://mxcl.github.com/homebrew/)
# - Put this file in a directory of images
# - run with $ ruby optimize_images.rb
# Config
@zjrosen1
zjrosen1 / zjrosen.zsh-theme
Last active April 6, 2019 23:17
ZSH Theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
#
@zjrosen1
zjrosen1 / .tmux.conf
Last active May 16, 2016 15:56
Tmux Configuration
# | |_ _ __ ___ _ ___ __ #
# | __| '_ ` _ \| | | \ \/ / #
# | |_| | | | | | |_| |> < #
# \__|_| |_| |_|\__,_/_/\_\ #
# 1 0 | VIM | 2:bash 20:04
# [ Reset Prefix ] {{{1
set -g prefix C-a
bind-key a send-prefix # for nested tmux sessions
@zjrosen1
zjrosen1 / composer.json
Last active June 5, 2016 22:53
Simple composer.json for wordpress
{
"name": "",
"description": "Wordpress website for testing",
"authors": [
{
"name": "",
"email": ""
}
],
"repositories":[
@zjrosen1
zjrosen1 / wp-config.php
Last active January 23, 2018 18:30
Wordpress Config
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
@zjrosen1
zjrosen1 / livecodingstats.js
Last active September 22, 2015 01:58
LiveCoding Stats
// ==UserScript==
// @name LiveCoding Stats
// @namespace http://your.homepage/
// @version 0.1
// @description Shows your channel stats (live viewers, total viewers) in the chat window
// @author Fabian Becker <[email protected]>
// @match https://www.livecoding.tv/chat/*
// @grant none
// ==/UserScript==
@zjrosen1
zjrosen1 / Remap Capslock to Control Ubuntu
Created August 14, 2015 04:40
Remap Capslock to Control Ubuntu
setxkbmap -layout us -option ctrl:nocaps
@zjrosen1
zjrosen1 / Tmux-Commands
Last active July 9, 2022 14:44
TMUX Aliases
alias ta='tmux attach -t'
alias tkss='tmux kill-session -t'
alias tksv='tmux kill-server'
alias tl='tmux list-sessions'
alias tmux=_zsh_tmux_plugin_run
alias ts='tmux new-session -s'
Bind Key
ctrl-a
@zjrosen1
zjrosen1 / random_cow.sh
Last active September 22, 2015 01:57
Random Forturne
#!/bin/bash
function rnum {
echo $((RANDOM % $1))
}
COWS=("bong" "unipony" "sodomized" "head-in" "vader" "elephant" "tux")
VOICES=("Daniel" "Karen")
TIMER=10
audio=1
###############################
# | |_ _ __ ___ _ ___ __ #
# | __| '_ ` _ \| | | \ \/ / #
# | |_| | | | | | |_| |> < #
# \__|_| |_| |_|\__,_/_/\_\ #
###############################
# 1 VIM ♥♥♥ 20:04
# [ Reset Prefix ] {{{1