Skip to content

Instantly share code, notes, and snippets.

View osvein's full-sized avatar

Oskar Sveinsen osvein

View GitHub Profile
# Contributor: gtmanfred
# Contributor: Gene Ruebsamen <ruebsamen.gene@gmail.com>
# Contributor: Oskar Sveinsen
# Maintainer: Jose Riha <jose1711 gmail com>
pkgname=socketw
pkgver=1.0.0
pkgrel=2
pkgdesc="a cross platform streaming socket C++ library"
arch=('i686' 'x86_64')
@osvein
osvein / ini.awk
Last active May 13, 2022 23:52
POSIX-compliant scripts to work with and convert INI files
#!/usr/bin/awk -f
# ini.awk - reformat an ini file to a user specified format
# command line options (using -v, see awk documentation):
# - section - default section (for settings before the first section header)
# - fmt_comment - comment output format (%1s = comment)
# - fmt_section - section header output format (%1s = section name)
# - fmt_setting - setting output format (%1s = section, %2s = key, %3s = value)
# leave out a fmt_ option to disable output of entries of that type
# example usage:
# $ ./ini.awk -v 'section="NULL"'\
## Sample initialization file for GNU nano.
##
## Please note that you must have configured nano with --enable-nanorc
## for this file to be read! Also note that this file should not be in
## DOS or Mac format, and that characters specially interpreted by the
## shell should not be escaped here.
##
## To make sure an option is disabled, use "unset <option>".
##
## For the options that take parameters, the default value is given.

Dearest player,

I hope this letter finds you well. I can hear your complaint already, "Gordon Freeman, we have not heard from you in ages!" Well, if you care to hear excuses, I have plenty, the greatest of them being I’ve been in other dimensions and whatnot, unable to reach you by the usual means. This was the case until eighteen months ago, when I experienced a critical change in my circumstances, and was redeposited on these shores. In the time since, I have been able to think occasionally about how best to describe the intervening years, my years of silence. I do first apologize for the wait, and that done, hasten to finally explain (albeit briefly, quickly, and in very little detail) events following those described in my previous letter (referred to herewith as Episode 2).

To begin with, as you may recall from the closing paragraphs of my previous missive, the death of Eli Vance shook us all. The Resistance was traumatized, unable to be sure how much of our plan might be compromised, and whether it ma

@osvein
osvein / banana.svg
Last active September 19, 2017 13:20
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@osvein
osvein / grid.svg
Last active December 8, 2020 02:11
.55, .03, .81, .09
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@osvein
osvein / combo.svg
Last active September 25, 2017 01:33
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@osvein
osvein / gist-init.sh
Last active September 25, 2017 18:40
#!/bin/sh
public="true"
desc=
host="api.github.com"
port="443"
endpoint="/gists"
repourl="https://gist.github.com"
creds="url=$repourl
"
@osvein
osvein / posix-linker.user.js
Created October 1, 2017 12:53
GreaseMonkey userscript to add some missing links from XBD header pages to XSU function pages in the online POSIX standard viewer
// ==UserScript==
// @name posix-linker
// @namespace https://github.com/osvein
// @description adds some missing links from XBD header pages to XSU function pages in the online POSIX standard viewer
// @include http://pubs.opengroup.org/onlinepubs/9699919799/
// @version 1
// @grant none
// ==/UserScript==
var frame = document.getElementById('main');
@osvein
osvein / isa2
Last active October 15, 2017 15:50
*RobCore*
+-------------------------------+-----+---+---+---+
| MSB LSB | ASM |arg|pop|psh|
+---+---+---+---+---+---+---+---+-----+---+---+---+
| | | | 0 | 0 | 0 | 0 | 0 | ADD | 0 | 2 | 1 |
| | | | | | | | 1 | INC | 0 | 1 | 1 |
| | | | | | | 1 | 0 | SUB | 0 | 2 | 1 |
| | | | | | | | 1 | DEC | 0 | 1 | 1 |
| | | | | +---+---+---+-----+---+---+---+
| | | | | | 1 | 0 | 0 | MUL | 0 | 2 | 1 |
| | | | | | | | 1 | MUL | 0 | 2 | 1 |