This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ df -h | |
Filesystem Size Used Avail Capacity Mounted on | |
/dev/sd2a 1005M 803M 151M 84% / | |
/dev/sd2j 80.1G 36.3G 39.8G 48% /home | |
/dev/sd2e 2.0G 450M 1.4G 24% /usr | |
/dev/sd2g 1001M 234M 717M 25% /usr/X11R6 | |
/dev/sd2h 9.8G 7.7G 1.6G 83% /usr/local | |
/dev/sd2f 4.9G 2.7G 2.0G 58% /usr/ports | |
/dev/sd2i 2.9G 952M 1.8G 34% /usr/src | |
/dev/sd2d 1002M 90.7M 861M 10% /var |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "ServerLayout" | |
Identifier "X.org Configured" | |
Screen 0 "Screen0" 0 0 | |
InputDevice "Mouse0" "CorePointer" | |
InputDevice "Keyboard0" "CoreKeyboard" | |
Option "AllowEmptyInput" "off" | |
Option "AutoAddDevices" "off" | |
Option "DontZap" "false" | |
EndSection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
echo "=> Setting up PostgreSQL..." | |
# | |
# Replace this currently running script by a shell running the same command, | |
# only as the user _postgresql | |
# | |
# -c : Run the rest of the commandline as if it were entered in there |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char *abc = "abcfoo"; | |
char *def = "deffnord"; | |
char *res = NULL; | |
ssize_t sz = asprintf(&res, "%s%s", abc, def); | |
if (sz >= 0) { | |
printf("Made a string: '%s'\n", res); | |
} | |
free(res); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[aliases] | |
unmerged = !git branch --no-merged | xargs -L1 git --no-pager log --pretty=tformat:'%Cgreen%d%Creset - %h by %an (%Cblue%ar%Creset)' -1 | |
merged = !git branch --merged | grep -v '^* ' | xargs -L1 git --no-pager log --pretty=tformat:'%Cgreen%d%Creset - %h by %an (%Cblue%ar%Creset)' -1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! make CapsLock work as modbutton4 | |
keycode 66 = Hyper_L | |
clear lock | |
clear mod3 | |
clear mod4 | |
add mod3 = Super_L Super_R | |
add mod4 = Hyper_L |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <unistd.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config { | |
# hostname mirror.osn.de | |
hostname anoncvs.eu.openbsd.org | |
collection { | |
name openbsd-cvsroot | |
release rcs | |
prefix /home/cvs | |
umask 002 | |
} | |
collection { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using /home/gbe/chaos/ansible/ansible.cfg as config file | |
statically included: /home/gbe/chaos/ansible/roles/letsencrypt/tasks/systemd.yml | |
statically included: /home/gbe/chaos/ansible/roles/letsencrypt/tasks/cronjob.yml | |
PLAYBOOK: playbook-broken.yml *************************************************************************************************************************************************************************************************************************************************** | |
1 plays in playbook-broken.yml | |
PLAY [oldshit] ****************************************************************************************************************************************************************************************************************************************************************** | |
TASK [Gathering Facts] ******************************************************************************************************************************************************************************************************** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/hostname.tun19 | |
description "DN42 uplink to rappet" | |
group dn42uplink | |
!(cd /dev; sh MAKEDEV \$if) | |
!/usr/local/sbin/openvpn --config /etc/openvpn/dn42-rappet/config --daemon dn42-rappet-uplink & |