Skip to content

Instantly share code, notes, and snippets.

View j0inty's full-sized avatar
🐧

Steffen Stollfuß j0inty

🐧
View GitHub Profile
@j0inty
j0inty / vartmpportagedev-phppecl-redis-3.1.1_rc1tempbuild.log
Created January 4, 2017 16:59
/var/tmp/portage/dev-php/pecl-redis-3.1.1_rc1/temp/build.log
* Package: dev-php/pecl-redis-3.1.1_rc1
* Repository: megatron
* Maintainer: [email protected]
* USE: abi_x86_64 amd64 elibc_glibc igbinary kernel_linux php_targets_php5-6 php_targets_php7-0 php_targets_php7-1 redis-session userland_GNU
* FEATURES: ccache preserve-libs sandbox userpriv usersandbox
* Package: dev-php/pecl-redis-3.1.1_rc1
* Repository: megatron
* Maintainer: [email protected]
* USE: abi_x86_64 amd64 elibc_glibc igbinary kernel_linux php_targets_php5-6 php_targets_php7-0 php_targets_php7-1 redis-session userland_GNU
* FEATURES: ccache preserve-libs sandbox userpriv usersandbox
@j0inty
j0inty / stdin
Created January 4, 2017 16:57
stdin
>>> Creating Manifest for /usr/local/portage/dev-php/pecl-redis
* pecl-redis-3.1.1_rc1.zip SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking pecl-redis-3.1.1_rc1.zip to /var/tmp/portage/dev-php/pecl-redis-3.1.1_rc1/work
cp: cannot stat '/var/tmp/portage/dev-php/pecl-redis-3.1.1_rc1/work/phpredis-3.1.1rc1': No such file or directory
* ERROR: dev-php/pecl-redis-3.1.1_rc1::megatron failed (unpack phase):
* failed to copy sources from /var/tmp/portage/dev-php/pecl-redis-3.1.1_rc1/work/phpredis-3.1.1rc1 to /var/tmp/portage/dev-php/pecl-redis-3.1.1_rc1/work/php5.6
*
@j0inty
j0inty / etcconf.damavisd-milter
Created October 8, 2016 15:36
/etc/conf.d/amavisd-milter
# /etc/conf.d/amavisd-milter
# Check amavisd-milter man page for more options.
# Must be the same as you setup in amavisd.conf
RUNAS_USER="amavis"
RUNAS_GROUP="amavis"
# Unix domain socket locations
SOCKET="local:/var/spool/postfix/amavis/amavisd-milter.sock"
AM_SOCKET="/var/spool/postfix/amavis/amavisd.sock"
@j0inty
j0inty / etcinit.damavisd-milter
Created October 8, 2016 15:35
/etc/init.d/amavisd-milter
#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
NAME="amavisd-milter"
DAEMON="/usr/sbin/${NAME}"
depend() {
before postfix
@j0inty
j0inty / etc_init.d_icecast
Last active May 30, 2018 06:16
Icecast2 Streaming Daemon init.d for OpenRC
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
RUNAS="${RUNAS:-icecast}"
RUNGROUP="${RUNGROUP:-nogroup}"
CONFIG_FILE="${CONFIG_FILE:-/etc/icecast2/icecast.xml}"
pidfile="${PIDFILE:-/run/icecast2/server.pid}"
@j0inty
j0inty / etc_conf.d_ezstream
Last active October 7, 2016 11:56
Icecast2 Streaming Client conf.d File for OpenRC
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# Config location
CONFIG_FILE="/etc/icecast2/ezstream.xml"
# Should be the same as setup in CONFIG_FILE
# Be sure the user setup under RUNAS has read access on it
FILES_DIR="/home/j0inty/Traktor/Public/Exercises"
@j0inty
j0inty / etc_init.d_ezstream
Last active October 7, 2016 11:57
Icecast2 Streaming Client init.d for OpenRC
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
RUNAS_USER="${RUNAS_USER:-icecast}"
RUNAS_GROUP="${RUNAS_GROUP:-nogroup}"
CONFIG_FILE="${CONFIG_FILE:-/etc/icecast2/ezstream.xml}"
LOG_FILE="${LOG_FILE:-/var/log/icecast2/ezstream.log}"
@j0inty
j0inty / debug_vars.php
Created September 30, 2016 11:21
PHP: quick method to debug multiple variables in php easiely
<?php
$count = 1;
$cols = 42;
$rows = ["col_0" => "val_0", "col_1" => &$cols, "col_2" => 4711];
print_r(compact(explode(' ', 'count acw cols rows')));
/**
Array
(
[count] => 1

Keybase proof

I hereby claim:

  • I am j0inty on github.
  • I am j0inty (https://keybase.io/j0inty) on keybase.
  • I have a public key whose fingerprint is 6E61 ACB2 F2C0 3352 78AD ECE4 9377 DE38 420D 6F41

To claim this, I am signing this object:

/**
* Guarantueed that the memory will set with c through the volatile instruction to the compiler.
*/
void *guaranteed_memset(void *v,int c,size_t n)
{
volatile char *p=v;
while (n--)
{
*p++=c;
}