Skip to content

Instantly share code, notes, and snippets.

@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
@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 || {
#!/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
#!/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
@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
# 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')
--- 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
--- a/tools/depends/target/ffmpeg/CMakeLists.txt 2019-07-18 11:05:21.000000000 -0400
+++ b/tools/depends/target/ffmpeg/CMakeLists.txt 2019-07-25 16:22:19.506991490 -0400
@@ -19,7 +19,7 @@ if(CROSSCOMPILING)
endif()
#if(CORE_PLATFORM_NAME STREQUAL rbpi)
- string(CONCAT CMAKE_C_FLAGS ${CMAKE_C_FLAGS} " -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux")
+ string(CONCAT CMAKE_C_FLAGS ${CMAKE_C_FLAGS} " -I/build/kodi-rbp4/src/opt/vc/include -I/build/kodi-rbp4/src/opt/vc/include/interface/vcos/pthreads -I/build/kodi-rbp4/src/opt/vc/include/interface/vmcs_host/linux")
list(APPEND ffmpeg_conf --enable-rpi --disable-ffmpeg --disable-ffprobe)
#endif()
@graysky2
graysky2 / update.patch
Last active October 12, 2019 14:09
patch for nvidia-340xx-lts
--- PKGBUILD 2019-06-07 06:25:13.000000000 -0400
+++ new 2019-10-12 09:58:41.055145754 -0400
@@ -1,10 +1,10 @@
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
# Contributor: Eric Bélanger <eric@archlinux.org>
+# Contributor: graysky <graysky AT archlinux DOT us>
pkgname=nvidia-340xx-lts
pkgver=340.107
-_extramodules=extramodules-4.19-lts