Skip to content

Instantly share code, notes, and snippets.

View djmott's full-sized avatar

David Mott djmott

View GitHub Profile
# source:http://reocities.com/SiliconValley/heights/7052/opcode.txt
From: mark@omnifest.uwm.edu (Mark Hopkins)
Newsgroups: alt.lang.asm
Subject: A Summary of the 80486 Opcodes and Instructions
(1) The 80x86 is an Octal Machine
This is a follow-up and revision of an article posted in alt.lang.asm on
7-5-92 concerning the 80x86 instruction encoding.
The only proper way to understand 80x86 coding is to realize that ALL 80x86
@djmott
djmott / shell script skeleton v2
Last active January 14, 2018 11:39
shell script skeleton that accepts key=value parameters and sets them as shell variables. function names that are passed in are executed in order
#!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
set -o errtrace
set -o functrace
export _settings_names=()
export _settings_defaults=()
@djmott
djmott / ktp-accounts-kcm.PKGBUILD
Created May 8, 2017 23:08
Arch Linux ktp-accounts-kcm
pkgbasename=ktp-accounts-kcm
pkgname=$pkgbasename-git
pkgver=17.04.0
pkgrel=1
pkgdesc="KControl Module which handles adding/editing/removing Telepathy Accounts"
arch=(any)
url="https://github.com/KDE/ktp-accounts-kcm"
license=('GPL3')
depends=()
makedepends=()
#!/bin/bash
_set_target_toolchain(){
local target="$1"
local toolchain_dir="$2"
local bindir="$2"
[ -d "$bindir/bin" ] && bindir="$toolchain_dir/bin"
export PATH=$bindir:$PATH
unset ADDR2LINE AR AS CXX CC CPP ELFEDIT GXX GCOV GDB GPROF LD LDD NM OBJCOPY OBJDUMP POPULATE RANLIB READELF SIZE STRINGS STRIP
[ -f "$bindir/$target-addr2line" ] && export ADDR2LINE=$target-addr2line
@djmott
djmott / shell script skeleton
Last active November 24, 2017 02:08
Skeleton shell script
#!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
main(){
export _K="$(tput setaf 0)"
export _R="$(tput setaf 1)"
export _G="$(tput setaf 2)"