Skip to content

Instantly share code, notes, and snippets.

View kevinvdburgt's full-sized avatar
😼
Cat's are great!

Kevin van der Burgt kevinvdburgt

😼
Cat's are great!
View GitHub Profile
@kevinvdburgt
kevinvdburgt / livestream.sh
Created April 20, 2013 11:54
Twitch.tv livestream
#!/bin/sh
SIZE="1920x1080"
BITRATE="32K"
FRAMERATE="20"
KEY="KEY_HERE"
TIMESTAMP=$(date "%y%m%d%-h%m")
ffmpeg\
-f x11grab -s $SIZE -r $FRAMERATE -i :0.0\

fileatime

The atime of a file is supposed to change whenever the data blocks of a file are being read. This can be costly performancewise when an application regularly accesses a very large number of files or directories. Some Unix filesystems can be mounted with atime updates disabled to increase the performance of such applications; USENET news spools are a common example. On such filesystems this function will be useless.

filectime

In most Unix filesystems, a file is considered changed when its inode data is changed; that is, when the permissions, owner, group, or other metadata from the inode is updated. Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. This is wrong. There is no creation time for Unix files in most Unix filesystems.

filemtime

out_to_x no
own_window no
out_to_console yes
background no
max_text_width 0
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
@kevinvdburgt
kevinvdburgt / build.sh
Last active October 20, 2015 17:24
VQMod transpiler supporting includes
#!/bin/bash
INPUT="input.xml"
OUTPUT="output.xml"
while read; do
[[ "$REPLY" =~ ^(.*)@include\[([^\]]*)\](.*) ]] &&
REPLY=$(sed "s/^/${BASH_REMATCH[1]}/" "${BASH_REMATCH[2]}")${BASH_REMATCH[3]}
echo "$REPLY"
done < $INPUT > $OUTPUT
@kevinvdburgt
kevinvdburgt / default-nginx.txt
Created February 22, 2015 22:18
default nginx
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
#!/bin/bash
MOUNTDIR="$HOME/Mounts/$1/"
if [ ! -d "$MOUNTDIR" ]; then
mkdir -p "$MOUNTDIR"
echo "Created new mounting directory $MOUNTDIR"
fi
sshfs -p 22 $2 $MOUNTDIR -oauto_cache,reconnect,defer_permissions,noappledouble,negative_vncache,volname=$2
@kevinvdburgt
kevinvdburgt / .ci-installer.sh
Last active April 6, 2018 16:00
Laravel 5.1 - GitLab CI (**OUTDATED**)
#!/bin/bash
# Moved to: https://github.com/kevinvdburgt/Laravel-GitLab-CI
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash
. ~/.nvm/nvm.sh
nvm install 0.12
nvm alias default 0.12
npm config set cache-min 86400
npm config set cache /cache/node_modules/
@kevinvdburgt
kevinvdburgt / autoexec.cfg
Created February 26, 2017 14:52
Counter Strike: Global Offensive - Personal Configs
// Additional configs
alias prac exec "practicecfg"
// Say bindings
bind f5 "say Hello World!"
// Jumping steep crouch-jumps more reliably and faster
alias +cjump "+jump; +duck"
alias -cjump "-jump; -duck"
bind c +cjump
@kevinvdburgt
kevinvdburgt / keybase.md
Created March 26, 2017 19:22
Keybase Prove GitHub

Keybase proof

I hereby claim:

  • I am kevinvdburgt on github.
  • I am kevinvdburgt (https://keybase.io/kevinvdburgt) on keybase.
  • I have a public key ASBLHJBTYjrp2QKByRjGgFbvwmYF-JDhMEPQO-xBuzxFyAo

To claim this, I am signing this object:

@kevinvdburgt
kevinvdburgt / QueryTest.php
Created September 21, 2017 12:47
PHP GraphQL
<?php
namespace App\GraphQL\Query\General;
use Folklore\GraphQL\Support\Query;
use GraphQL\Type\Definition\ResolveInfo;
use GraphQL\Type\Definition\Type;
use GraphQL;
class Test extends Query