- Add user to network group(wireless networking)
- Configure tapping and brightness with wsconsctl
- wpa_supplicant for EAP
- Set apmd to -A
- pkg_add -l
- mount_mfs and chmod /tmp 1777 (tmpfs is bugged/disable on OpenBSD)
This file contains 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
#!/usr/bin/env ruby | |
ARGF.each {|line| | |
if line =~ /,[[:digit:]]{2,2}/ | |
puts $` + ",#{$&[1,2].to_i - 10}" + $' | |
else | |
puts line | |
end | |
} |
This file contains 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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 5.15.6 Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.2.1 20201203" | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=100201 | |
CONFIG_CLANG_VERSION=0 | |
CONFIG_AS_IS_GNU=y | |
CONFIG_AS_VERSION=23501 |
For general advice see: Linux kernel coding style
The following amendments / clarifications are to be considered additionally:
- Kernel-Normal-Form for Function-Blocks Within function blocks the protypes are to be formatted like in KNF Indentions are four spaced:
int
main(int argc, char** argv)
{
This file contains 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
#!/usr/bin/env python | |
import sys | |
# Can't do 2 complement :C | |
res=None | |
quot=int(sys.argv[1]) | |
base=int(sys.argv[2]) | |
resstr="" | |
while quot != 0: | |
res = quot % base |
This file contains 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
source $VIMRUNTIME/defaults.vim | |
:function PythonEnt(isnf,lang) | |
:let l:filen = expand("%:p") | |
:if a:lang == "Py" | |
:if len(glob("*.py",0,1)) <= 1 && !a:isnf | |
\&& filewritable(filen) | |
\&& getfsize(filen) == 0 | |
:call setline(1,"#!/usr/bin/env python") |
This file contains 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
# | |
# ~/.bashrc | |
# | |
# If not running interactively, don't do anything | |
[[ $- != *i* ]] && return | |
alias ls='ls --color=auto' | |
PS1='\[\033[0;32m\]<\u\[\033[0;31m\]::\[\033[0;32m\]\h\[\033[1;34m\] \W \$\[\033[0;32m\] > \[\033[0m\]' |
This file contains 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
/* BEGIN Cue */ | |
#include <std{io,lib}.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <dirent.h> | |
#include <unistd.h> | |
static int in_numbers(char *); | |
static int check_by_slsh(char*,char*); | |
static void check_proc(char*,char*,char*); |
This file contains 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> | |
#include <stdlib.h> | |
#include <string.h> | |
static char* addread(char* buf,char r, int length){ | |
char * res=malloc((length+1) * sizeof(char)); | |
if(res == NULL){ | |
fprintf(stderr,"Malloc Error\n"); /* Quit on malloc*/ | |
exit(1); |
This file contains 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
\[\033[0;32m\]<\u\[\033[0;31m\]::\[\033[0;32m\]\h\[\033[1;34m\] \W \$\[\033[0;32m\] > \[\033[0m\] |
NewerOlder