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
# Mounts as regular user device /dev/<arg1> if not already mounted, | |
# changes into the devices directory with pushd, | |
# and prints the directory. | |
# Usage: | |
# Mount /dev/sdb1 if it is not mounted and change to it's directory | |
# d sdb1 | |
# Unmount /dev/sdb1 | |
# umount $(d sdb1) |
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/sh | |
cat << EOF > test.filter-script | |
[0:v]kerndeint,format=pix_fmts=nv12,split=2[split1-1][split1-2]; | |
[split1-1]scale=-2:720,split=3[scale-720-1][scale-720-2][scale-720-3]; | |
[split1-2]scale=-2:540,split=2[scale-540-1][scale-540-2]; | |
[scale-720-1]fps=1/60[stills-1]; | |
[0:a]asplit=4[audio-1][audio-2][audio-3][audio-4] | |
EOF |
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
void check (int test, const char * message, ...) | |
{ | |
if (test) { | |
va_list args; | |
va_start (args, message); | |
vfprintf (stderr, message, args); | |
va_end (args); | |
fprintf (stderr, "\n"); | |
exit (EXIT_FAILURE); |
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 <stdio.h> | |
int main(int argc, char *argv[]) | |
{ | |
#define PRINT_SIZEOF(type) printf("sizeof(" #type "):\t%lu bytes\n", sizeof(type)) | |
PRINT_SIZEOF(char); | |
PRINT_SIZEOF(short); | |
PRINT_SIZEOF(int); | |
PRINT_SIZEOF(long); | |
PRINT_SIZEOF(long long); |
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
(setq-default c-default-style "bsd" | |
c-basic-offset 4 | |
tab-width 4 | |
indent-tabs-mode nil | |
js-indent-level 2) | |
(add-to-list 'default-frame-alist '(font . "PragmataPro-10" )) | |
(set-face-attribute 'default t :font "PragmataPro-10" ) | |
(icomplete-mode 99) |
NewerOlder