Skip to content

Instantly share code, notes, and snippets.

🐝

Sebastian Schmidt publicarray

🐝
Block or report user

Report or block publicarray

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@publicarray
publicarray / opennic.config
Last active Jan 15, 2018
OpenNIC Tier 2 nsd config (Slave Zone Method)
View opennic.config
#
# nsd: https://www.nlnetlabs.nl/projects/nsd/
# OpenNic: https://www.opennic.org/
#
# this file can be placed inside the "/etc/nsd/conf.d folder"
# e.g. "/etc/nsd/conf.d/opennic.conf" for debian and redhat systems
# also make sure the "nsd.config" has the following line present:
# include: "/etc/nsd/conf.d/*.conf"
#
# you can use the "nsd-checkconf /etc/nsd/nsd.conf" to check for syntax errors
@publicarray
publicarray / make-doc
Created Jan 6, 2018
Make a FreeBSD Handbook docset for Dash
View make-doc
#!/bin/bash
set -e
if ! command -v dashing >/dev/null 2>&1; then
if command -v go >/dev/null; then
go get -u github.com/technosophos/dashing
else
echo "Missing go. Install golang first 'brew install golang'"
return 1
@publicarray
publicarray / minecraft.md
Last active Jan 5, 2018
Minecraft with SocketBuffer - on Vultr (CentOS 6.9)
View minecraft.md
wget https://ci.destroystokyo.com/job/PaperSpigot/lastSuccessfulBuild/artifact/paperclip-1294.jar
ln -sf paperclip-1294.jar minecraft_server.jar
service minecraft restart

service iptables stop
chkconfig iptables off
# systemctl disable iptables

yum install tuned tuned-utils
@publicarray
publicarray / install.sh
Last active Jan 3, 2018
Install my development environment on a fresh mac
View install.sh
#!/usr/bin/env bash
#
# Execute the file:
# bash <(curl -fsSL https://seby.io/myfish)
#
set -e
set -v
echo "If you don't know what this script does, hit CTRL-C NOW!"
read -p "Do you want to continue? [Y/y] " -n 1 -r
@publicarray
publicarray / getfish.sh
Last active Jan 2, 2018
Install fishshell on OpenBSD
View getfish.sh
#!/bin/sh
pkg_add curl gcc g++ gmake
curl -Lo /tmp/fish.tar.gz https://github.com/fish-shell/fish-shell/releases/download/2.7.1/fish-2.7.1.tar.gz
tar -xzvf /tmp/fish.tar.gz -C /tmp/
cd /tmp/fish-*
CC=egcc CXX=eg++ ./configure
gmake install
echo '/usr/local/bin/fish' | sudo tee -a /etc/shells > /dev/null
@publicarray
publicarray / sysctl.conf
Created Aug 8, 2017 — forked from kgriffs/sysctl.conf
Linux Web Server Kernel Tuning
View sysctl.conf
# Configuration file for runtime kernel parameters.
# See sysctl.conf(5) for more information.
# See also http://www.nateware.com/linux-network-tuning-for-2013.html for
# an explanation about some of these parameters, and instructions for
# a few other tweaks outside this file.
# Protection from SYN flood attack.
net.ipv4.tcp_syncookies = 1
View spotlight.md

restart the indexing service

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

status

@publicarray
publicarray / dnsdist.md
Last active Aug 5, 2017
Compile dnsdist on FreeBSD
View dnsdist.md

dnsdist

pkg install git ragel libsodium re2 py27-virtualenv
git clone https://github.com/PowerDNS/pdns.git
cd pdns/pdns/dnsdistdist
virtualenv build
autoreconf -i
./configure --bindir=/usr/local/sbin --enable-dnscrypt --enable-libsodium --enable-re2
gmake
@publicarray
publicarray / .bashrc
Last active Apr 10, 2017
install mingw64 on macOS using homebrew (a way to compile C and C++ programs for windows) [Cross compiler]
View .bashrc
alias xcc='mingw32 -std=c99'
alias x++='mingw32++'
alias x64cc='mingw64 -std=c99'
alias x64++='mingw64++'
View backgroundchanger.js
function BackgroundChanger (settings) {
// Author: Sebastian Schmidt
var settings = settings || {};
// Set sane default options
this.nextImage = settings.firstImage || 1; // image to change to next
this.interval = settings.interval || 5000; // time until next image is shown (ms)
this.backgroundElement = settings.backgroundElement || document.getElementById('background-sideshow'); // element to change the background image on
this.backgroundImages = settings.backgroundImages || [ // a list of image url's
'http://lorempixel.com/1280/720/abstract/',
You can’t perform that action at this time.