Skip to content

Instantly share code, notes, and snippets.

View jdub's full-sized avatar

Jeff Waugh jdub

View GitHub Profile
@jdub
jdub / git-log.txt
Created October 28, 2016 22:02
Typical project bringup
commit 3864158c885a93d18777c523c54413134ff89240
Author: Jeff Waugh <jdub@bethesignal.org>
Date: Sat Oct 29 09:00:48 2016 +1100
pants
commit 51f81f57945775491824ee20573db6667eee4cf2
Author: Jeff Waugh <jdub@bethesignal.org>
Date: Sat Oct 29 08:59:49 2016 +1100
@jdub
jdub / output
Created October 12, 2016 22:55
building brotli-sys with msvc using incremental gcc-rs
cargo:dec_include=D:\GitHub\brotli2-rs\brotli-sys\brotli/dec
cargo:enc_include=D:\GitHub\brotli2-rs\brotli-sys\brotli/enc
TARGET = Some("x86_64-pc-windows-msvc")
OPT_LEVEL = Some("0")
PROFILE = Some("debug")
TARGET = Some("x86_64-pc-windows-msvc")
debug=true opt-level=0
HOST = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
// Place your settings in this file to overwrite the default settings
{
"rust.rustLangSrcPath": "C:\\Users\\jdub\\.multirust\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\src\\rust\\src"
}
@jdub
jdub / javascriptboolean.go
Last active April 26, 2016 16:31
JavaScriptBoolean type for unmarshalling truthy JSON
type JavaScriptBoolean bool
func (bit *JavaScriptBoolean) UnmarshalJSON(data []byte) error {
s := strings.ToLower(strings.Trim(string(data), `"`))
if s == "1" || s == "true" {
*bit = true
} else if s == "0" || s == "false" {
*bit = false
} else {
return fmt.Errorf("Boolean unmarshal error: invalid input %s", s)
@jdub
jdub / gist:c57f5e0cf27d04a1696eb1e7a458bb18
Created April 23, 2016 15:52
Selected Concourse worker process mounts under systemd restrictions
$ sudo egrep '(ext4|tmpfs .* noexec)' /proc/24967/mounts
/dev/sda1 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /var/lib/concourse/data/linux/graph/aufs ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /bin ext4 ro,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /boot ext4 ro,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /etc ext4 ro,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /lib ext4 ro,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /lib64 ext4 ro,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /sbin ext4 ro,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /usr ext4 ro,relatime,errors=remount-ro,data=ordered 0 0
### Keybase proof
I hereby claim:
* I am jdub on github.
* I am jdub (https://keybase.io/jdub) on keybase.
* I have a public key ASDCqX3lmVe0ICqkYw_4OiPGqmYLMK0cjdM4bH1-wWWw0go
To claim this, I am signing this object:
@jdub
jdub / 01) Notes
Last active August 29, 2015 14:15
hhvm vs. php5-fpm
(YES, THIS IS GOOFY AND NAIVE AND SO ON.)
Software:
- Ubuntu 14.04.2 LTS
- nginx 1.4.6
- hhvm 2.5.1
- php5-fpm 5.5.9 (pm.max_children = 30)
- WordPress 4.4.1 (fresh install, so very little data)
Hardware:
@jdub
jdub / vocore-openwrt-systemd.log
Created February 23, 2015 13:25
openwrt-systemd boot log and chart
-- Logs begin at Thu 1970-01-01 00:00:12 UTC, end at Mon 2015-02-16 21:05:42 UTC. --
Jan 01 00:00:12 openwrt systemd-journal[268]: Runtime journal is using 4.0M (max allowed 8.0M, trying to leave 2.1M free of 10.2M available → current limit 8.0M).
Jan 01 00:00:12 openwrt systemd-journal[268]: Runtime journal is using 4.0M (max allowed 8.0M, trying to leave 2.1M free of 10.2M available → current limit 8.0M).
Jan 01 00:00:12 openwrt kernel: Linux version 3.14.32 (jdub@ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44482) ) #39 Thu Feb 19 21:34:36 AEDT 2015
Jan 01 00:00:12 openwrt kernel: SoC Type: Ralink RT5350 id:1 rev:3
Jan 01 00:00:12 openwrt kernel: bootconsole [early0] enabled
Jan 01 00:00:12 openwrt kernel: CPU0 revision is: 0001964c (MIPS 24KEc)
Jan 01 00:00:12 openwrt kernel: MIPS: machine is VoCore
Jan 01 00:00:12 openwrt kernel: Determined physical RAM map:
Jan 01 00:00:12 openwrt kernel: memory: 02000000 @ 00000000 (usable)
--- linux-3.18.7.orig/arch/mips/bcm63xx/boards/board_bcm963xx.c 2015-02-11 18:01:12.000000000 +1100
+++ linux-3.18.7/arch/mips/bcm63xx/boards/board_bcm963xx.c 2015-02-22 00:00:44.064301765 +1100
@@ -115,6 +115,48 @@
},
},
};
+
+static struct board_info __initdata board_963281tavng = {
+ .name = "963281tavng",
+ .expected_cpu_id = "0x6328",
@jdub
jdub / systemd.log
Created February 16, 2015 07:27
OpenWrt + systemd on VoCore
U-Boot for VoCore(based on RT5350)Warning: un-recognized chip ID, please update bootloader!
.
Version: May 30 2014 20:52:36
Press 'x' to console...
Booting image at bc050000 .
Image Name: MIPS OpenWrt Linux-3.14.32
Created: 2015-02-16 6:24:28 UTC