- 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
//launchoptions: -console -novid -language bananagaming/english -tickrate 128 -nojoy +exec autoexec.cfg | |
//by DaErich | |
//viewmodel | |
viewmodel_fov "70" | |
viewmodel_offset_x "1" | |
viewmodel_offset_y "2" | |
viewmodel_offset_z "-1.5" | |
viewmodel_presetpos "4" | |
cl_viewmodel_shift_left_amt 0 | |
cl_viewmodel_shift_right_amt 0 |
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
#!/bin/bash | |
#from https://stackoverflow.com/questions/48136770/merge-pdf-files-by-string-in-filename-using-ubuntu-terminal | |
#append '-q' switch to silence gs | |
gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=out.pdf input*.pdf |
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
#Load promptinit (thanks archers :D) | |
autoload -Uz promptinit && promptinit | |
prompt_daerichstheme_setup(){ | |
PS1="%B%F{green}%n%f%F{red}::%f%F{green}%m%f %F{cyan}%~ %#%f%b :" | |
RPS1="[%F{yellow}%N%f]" | |
} | |
# promptsys_init | |
prompt_themes+=( daerichstheme ) |
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\] |
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
/* 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
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
#!/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
# | |
# 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 |
OlderNewer