Skip to content

Instantly share code, notes, and snippets.

@graysky2
graysky2 / Xdefaults.jellybeans
Created Nov 24, 2016 — forked from pablox-cl/Xdefaults.jellybeans
Jellybeans color palette for rxvt and xfce4-terminal
View Xdefaults.jellybeans
# Adjust Rxvt to suit your terminal emulator
# Created with
# ITERM_COLOR_MULTIPLIER=2.5 ./itermcolors2Xdefaults.rb Jellybeans.itermcolors
# https://github.com/richo/jellybeans.vim/blob/c7ff7e9555881a5671fcc8753b381ba142b5ea82/Xdefaults/jellybeans.Xdefaults
Rxvt*color0: #393939
Rxvt*color1: #ca674a
Rxvt*color2: #96a967
Rxvt*color3: #d3a94a
Rxvt*color4: #5778c1
Rxvt*color5: #9c35ac
View data.txt
2860.5
2900.0
2850.4
2900.0
2890.0
2853.9
2854.1
2900.0
2900.0
2900.0
View gnuplot_script
#!/usr/bin/gnuplot
set terminal png
set output "hist.png"
set boxwidth 50
set style fill solid
set style histogram
set style data histogram
bw=1
set xlabel "CPU frequency in MHz"
set ylabel "Counts"
View cipher_test.sh
#!/bin/bash
# define the name or IP address of the machine that will receive the files
HOST=foo
# define the user you are running as on both machines
USER=bar
# define a link to tmpfs where there is plenty of RAM free
# by default /tmp is mounted with 1/2 physical memory and this test as written below
@graysky2
graysky2 / stats.sh
Last active Apr 3, 2017
find the median value from a i7z log file using awk
View stats.sh
#!/bin/bash
# credit for awk magic goes to
# http://stackoverflow.com/questions/6166375/median-of-column-with-awk
[[ -d $XDG_RUNTIME_DIR ]] &&
file=$XDG_RUNTIME_DIR/.tempfile ||
file=/tmp/.tempfile
# check deps
command -v awk >/dev/null 2>&1 || {
View gist:123a92d045bb02ce7634
# Optionally define a work directory.
work=/scratch
# Uncomment to end trunk. If left commented, end in the official repos.
favor=testing
getpkg() {
$(which svn >/dev/null)
[[ $? -ne 0 ]] && echo "I require subversion to operate." && return 1