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
#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
! 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
[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
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
#!/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
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
$ 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
15:16:41 farhaven | ksh: cd: /usr/ports/net/bitcoin - No such file or directory | |
15:16:43 farhaven | nah :) | |
15:17:50 farhaven | it would be awesome if you could do per-file patches instead of a whole tree | |
15:18:02 farhaven | as in, diff -u file.orig file | |
15:18:08 farhaven | where file.orig is the one without your changes | |
15:19:32 farhaven | and from there, you basically kick out all old patches and add yours one by one | |
15:19:38 farhaven | named patch-$something | |
15:19:48 farhaven | where $something is a version of the file path | |
15:20:07 farhaven | so a patch for a/b/c/foo.c gets named patch-a-b-c-foo_c | |
15:20:24 farhaven | that way, it's obvious to which file a patch applies |
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 ftp.hostserver.de | |
hostname mirror.osn.de | |
collection { | |
name openbsd-cvsroot | |
release rcs | |
prefix /mnt/media/cvs | |
umask 002 | |
} | |
collection { |