For this guide the ubuntu:yakkety
Docker image was used.
apt-get install mingw-w64-tools gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 wget gettext bison flex
#!/usr/bin/env ruby | |
# pp-pstore.rb: dumps data from PStore files | |
# | |
# Copyright 2007 zunda <zunda at freeshell.org> | |
# | |
# Permission is granted for use, copying, modification, distribution, | |
# and distribution of modified versions of this work as long as the | |
# above copyright notice is included. | |
# |
#!/usr/bin/env python | |
""" | |
Example on using Kqueue/Kevent on BSD/Mac | |
using Python. | |
The TCP server essentially echoes back the | |
message it receives on the client socket. | |
""" | |
__author__ = "Ishwor Gurung <[email protected]>" |
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
DROP TABLE IF EXISTS time_dimension; | |
CREATE TABLE time_dimension ( | |
id INTEGER PRIMARY KEY, -- year*10000+month*100+day | |
db_date DATE NOT NULL, | |
year INTEGER NOT NULL, | |
month INTEGER NOT NULL, -- 1 to 12 | |
day INTEGER NOT NULL, -- 1 to 31 | |
quarter INTEGER NOT NULL, -- 1 to 4 | |
week INTEGER NOT NULL, -- 1 to 52/53 | |
day_name VARCHAR(9) NOT NULL, -- 'Monday', 'Tuesday'... |
# /etc/make.conf | |
# Clemens Gruber, 2017 | |
# | |
# Nearby mirror | |
#MASTER_SITE_OVERRIDE="ftp://ftp.at.freebsd.org/pub/FreeBSD/ports/distfiles/" | |
#MASTER_SITE_OVERRIDE="ftp://ftp.de.freebsd.org/pub/FreeBSD/ports/distfiles/" | |
# Build | |
MAKE_JOBS_NUMBER?=8 |
# datavibe.net spamassassin local config as of 2015-07-17 | |
# Add *****SPAM***** to the Subject header of spam e-mails | |
rewrite_header Subject *****SPAM***** | |
# Save spam messages as a message/rfc822 MIME attachment instead of | |
# modifying the original message (0: off, 2: use text/plain instead) | |
report_safe 1 | |
add_header all RelaysUntrusted _RELAYSUNTRUSTED_ |
all: txtfile | |
TARGET_DIR = target-dir | |
txtfile: $(TARGET_DIR) | |
touch $(TARGET_DIR)/file.txt | |
target-dir: | |
test ! -d $(TARGET_DIR) && mkdir $(TARGET_DIR) |
#!/bin/sh | |
log_name="filer" | |
log_prio="user.notice" | |
flog () { | |
logger -p "$log_prio" -t "$log_name" "$1" | |
} | |
boottime=$(sysctl -n kern.boottime | awk '{print $4}' | tr -dc 0-9) |