Skip to content

Instantly share code, notes, and snippets.

--- a/PKGBUILD 2018-11-20 07:42:48.076332191 -0500
+++ b/PKGBUILD 2018-11-20 09:40:14.684141902 -0500
@@ -1,10 +1,13 @@
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+# Contributer: graysky <graysky AT archlinux DOT us>
pkgname=wireguard-module
-pkgver=0.0.20181018
+_pkgname=WireGuard
+pkgver=0.0.20181119
@graysky2
graysky2 / Xdefaults.jellybeans
Created November 24, 2016 15:49 — forked from pablox-cl/Xdefaults.jellybeans
Jellybeans color palette for rxvt and xfce4-terminal
# 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
@graysky2
graysky2 / stats.sh
Last active April 3, 2017 08:02
find the median value from a i7z log file using awk
#!/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 || {
# Maintainer: ultraviolet <ultravioletnanokitty@gmail.com>
# Contributor: Mark Rosenstand <mark@borkware.net>
# Contributor: graysky <graysky AT archlinux DOT us>
pkgname=sysbench
pkgver=1.0.4
pkgrel=1
pkgdesc="Benchmark tool for evaluating OS parameters that are important for a system running a database under intensive load."
url="https://github.com/akopytov/sysbench"
arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h')
#!/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"
2860.5
2900.0
2850.4
2900.0
2890.0
2853.9
2854.1
2900.0
2900.0
2900.0
#!/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 / gist:123a92d045bb02ce7634
Created August 14, 2014 22:01
getpkg function draft
# 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