- 21st Century C (2nd Editon) - Ben Klemens
- Expert C Programming: Deep C Secrets - Peter Van der Linden
- Test Driven Development for Embedded C - James W. Grenning
- Secure Programming Cookbook for C and C++ - John Viega, Matt Messier
- Defensive Coding: A Guide to Improving Software Security - Florian Weimer (Fedora)
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
watch -n1 --differences=cumulative cat /sys/devices/system/node/node*/numastat |
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
awk '{printf "%5d MB %s\n", $3*$4/(1024*1024), $1}' < /proc/slabinfo | sort -nr | head -25 |
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 | |
require 'packetfu' | |
# filter = argv[0] - tcpdump style. | |
# e.g. 'dst host bla.dom.tld and port http and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | |
# to cap. http traffic. or 'host W.X.Y.Z' to cap a speficic host/ip | |
cap = PacketFu::Capture.new(:start => true) | |
cap.save(:filter => ARGV[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/sh | |
/usr/sbin/ntpdate -qvvvb -s 10 -p 8 time.nist.gov at.pool.ntp.org pool.ntp.org ts1.aco.net ts2.aco.net asynchronos.iiss.at ntpstm.netbone-digital.com time.ufe.cz time.fu-berlin.de atom.uhr.de ntp1.nl.uu.net ntp0.nl.uu.net ntp3.usv.ro utcnist2.colorado.edu timekeeper.isi.edu clock.sjc.he.net nist1.symmetricom.com t2.timegps.net clock.isc.org clepsydra.dec.com gps.layer42.net rackety.udel.edu mizbeaver.udel.edu clock.nyc.he.net otc1.psu.edu timehost.lysator.liu.se ntp0.as34288.net ntp1.as34288.net tick.usask.ca tock.usask.ca |
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 | |
# | |
# keepalived 'track_script' for PostgreSQL 'bgw_replstatus' Plugin | |
# | |
# Author: Aaron Zauner <azet@azet.org> | |
# License: CC0 1.0 Public Domain (https://creativecommons.org/publicdomain/zero/1.0/) | |
# | |
import socket | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
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/sh | |
QPKG_NAME=QSickChill | |
QPKG_DIR=$(/sbin/getcfg $QPKG_NAME Install_Path -f /etc/config/qpkg.conf) | |
PID_FILE="$QPKG_DIR/config/sickchill.pid" | |
DAEMON_OPTS="SickBeard.py --datadir $QPKG_DIR/config --daemon --pidfile $PID_FILE --port 7073" | |
# Determin Arch | |
ver="none" |
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
alias 'opkg-upgrade'='for x in $(opkg list-upgradable | awk "{print $1}"); do opkg upgrade $x ; done' |
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 bash | |
set -e -o pipefail | |
# if you just want/need to update run this script with (.... -u) | |
#[[ -z ${1} ]] && 1="" | |
[[ ${USER} == "chronos" ]] || exit 1 | |
cd ~/Downloads | |
curl -O https://raw.githubusercontent.com/dnschneid/crouton/master/installer/crouton |
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
Date: Tue, 5 Apr 2016 16:11:42 +0200 | |
From: Aaron Zauner <azet@azet.org> | |
To: redacted <redacted@arm.co.uk> | |
Subject: Re: LinkedIn | |
Message-ID: <20160405160645.acd82bb63a@64bc86c3c218530> | |
References: <A3BC8318FB5EB6449FE735A962284AC30423B30C4DBB@V-ARM-MAIL1.arm1.com> | |
MIME-Version: 1.0 | |
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" | |
Content-Disposition: inline | |
In-Reply-To: <A3BC8318FB5EB6449FE735A962284AC30423B30C4DBB@V-ARM-MAIL1.arm1.com> |