Skip to content

Instantly share code, notes, and snippets.

View schulzh's full-sized avatar

Hans Schulz schulzh

  • SAP SE
  • Baden-Württemberg, Germany
View GitHub Profile

Keybase proof

I hereby claim:

  • I am schulzh on github.
  • I am hansschulz (https://keybase.io/hansschulz) on keybase.
  • I have a public key ASA3SBfvLOeCfegtDD4f7WNdwif-2TpYvU4VBvohRLpddwo

To claim this, I am signing this object:

#!/usr/bin/env bash
PORT=9000
mkdir /app/profiler
cd /app/profiler
curl -sS -o profiler.tar.gz https://download-gcdn.ej-technologies.com/jprofiler/jprofiler_linux_11_1_1.tar.gz
tar xvfz profiler.tar.gz
@schulzh
schulzh / xorg.conf
Created July 6, 2017 20:50
Mining Xorg conf for multi GPU
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 0 "Screen1" 0 0
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
@schulzh
schulzh / start.sh
Last active July 6, 2017 20:49
Mining start script
#!/bin/bash -xe
echo "Stopping running miner screen"
/usr/bin/screen -X -S mining quit > /dev/null || echo "Miner not running"
echo "OK"
export DISPLAY=":1"
if ! /usr/bin/xset q &>/dev/null; then # xset is included in package x11-xserver-utils
echo "No X server at \$DISPLAY [$DISPLAY], starting..."
/usr/bin/X "$DISPLAY" > /dev/null &
@schulzh
schulzh / CSGO FastDL .htaccess
Last active July 14, 2017 08:32
A secure .htaccess file for source servers which accounts for the missing referer field of linux/mac csgo clients
SetEnvIfNoCase User-Agent "^Half-Life 2$" is_hl2
# Workaround for Mac OSX and Linux Clients, see https://github.com/ValveSoftware/csgo-osx-linux/issues/177
SetEnvIf Referer "^$" valid_ref
SetEnvIfNoCase Referer "^hl2:\/\/ip\.of\.first\.server:27015$" valid_ref
SetEnvIfNoCase Referer "^hl2:\/\/ip\.of\.second\.server:27015$" valid_ref
<RequireAll>
Require env is_hl2
@schulzh
schulzh / gist:b3fe5b626e595a2f0792
Created June 10, 2015 14:09
local boulder docker configuration
------------------------------- boulder-config.json: -------------------------------------
{
"syslog": {
"network": "udp",
"server": "localhost:514",
"tag": "boulder"
},
"wfe": {
"baseURL": "http://172.17.42.1:4000",