Skip to content

Instantly share code, notes, and snippets.

Avatar
📞
call me on my shell phone

Jess Frazelle jessfraz

📞
call me on my shell phone
View GitHub Profile
@jessfraz
jessfraz / go-release-stats.md
Last active Mar 9, 2019
stats on the go 1.7 release for fun
View go-release-stats.md

Setup:

# set CONTRIBUTORS file to mailmap to remove duplicate emails for the same name
# see: https://git-scm.com/docs/git-shortlog#_mapping_authors
$ git config mailmap.file CONTRIBUTORS

Top 10 contributors (all):

@jessfraz
jessfraz / Dockerfile.jessie
Last active Apr 26, 2020
testing seccomp
View Dockerfile.jessie
FROM debian:jessie
RUN apt-get update && apt-get install -y \
ca-certificates \
curl \
e2fsprogs \
init-system-helpers \
iptables \
libapparmor1 \
libltdl7 \
@jessfraz
jessfraz / .dockerignore
Last active Apr 1, 2016
simple hello world
View .dockerignore
Makefile
.git
.gitignore
View cheatsheet.md

Setup

curl -sSL -o clone.c goo.gl/G45N5X

Net Namespace

# on host
View clone.c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <sched.h>
#include <sys/wait.h>
#include <errno.h>
#define STACKSIZE (1024*1024)
static char child_stack[STACKSIZE];
@jessfraz
jessfraz / stack
Created Sep 21, 2015
server weirdness
View stack
Sep 21 15:10:47 pr-builder-11 kernel: [ 6071.023170] BUG: unable to handle kernel NULL pointer dereference at 0000000000000016
Sep 21 15:10:47 pr-builder-11 kernel: [ 6071.023273] IP: [<ffffffff81217490>] __detach_mounts+0x40/0x90
Sep 21 15:10:47 pr-builder-11 kernel: [ 6071.023365] PGD 2cd17b067 PUD 40bd44067 PMD 0
Sep 21 15:10:47 pr-builder-11 kernel: [ 6071.023425] Oops: 0000 [#1] SMP
Sep 21 15:10:47 pr-builder-11 kernel: [ 6071.023468] Modules linked in: dummy xt_nat xt_tcpudp dm_thin_pool dm_persistent_data dm_bio_prison dm_bufio libcrc32c veth xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter ip_tables x_tables br_netfilter nf_nat nf_conntrack bridge stp llc overlay iosf_mbi ppdev kvm_intel kvm cirrus crct10dif_pclmul crc32_pclmul ttm ghash_clmulni_intel drm_kms_helper aesni_intel aes_x86_64 lrw drm gf128mul glue_helper ablk_helper cryptd syscopyarea serio_raw sysfillrect sysimgblt i2c_piix4 parport_pc pvpanic 8250_fi
View slack_send_pm.sh
#!/bin/bash
set -e
# Send a private message to someone on slack
# from the command line.
# Print a usage message and exit.
usage(){
local name=$(basename "$0")
View chrome-gpu
Graphics Feature Status
Canvas: Software only, hardware acceleration unavailable
Flash: Hardware accelerated
Flash Stage3D: Software only, hardware acceleration unavailable
Flash Stage3D Baseline profile: Software only, hardware acceleration unavailable
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Rasterization: Software only, hardware acceleration unavailable
Threaded Rasterization: Enabled
Video Decode: Software only, hardware acceleration unavailable
@jessfraz
jessfraz / syslog
Last active Aug 29, 2015
syslog kernel bug
View syslog
May 20 07:25:41 debian kernel: [ 1013.179837] BUG: unable to handle kernel NULL pointer dereference at (null)
May 20 07:25:41 debian kernel: [ 1013.179896] IP: [<ffffffff811f5390>] pin_remove+0x50/0xb0
May 20 07:25:41 debian kernel: [ 1013.179935] PGD 2834067 PUD 5a2ef067 PMD 0
May 20 07:25:41 debian kernel: [ 1013.179966] Oops: 0002 [#1] SMP
May 20 07:25:41 debian kernel: [ 1013.179990] Modules linked in: 8021q garp mrp dummy veth xt_conntrack xt_addrtype ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_filter ip_tables x_tables bridge stp llc bnep uvcvideo videobuf2_vmalloc btusb videobuf2_memops videobuf2_core v4l2_common bluetooth videodev usbhid media x86_pkg_temp_thermal intel_powerclamp intel_rapl iosf_mbi coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul joydev wl(PO) dell_laptop dcdbas ghash_clmulni_intel hid_multitouch iTCO_wdt iTCO_vendor_support dell_wmi sparse_keymap aesni_intel aes_x86_64 lrw rtsx_pci_ms gf1
View solarized.patch
From ce5325a1a73e6117013de84b57588a4dd4f21734 Mon Sep 17 00:00:00 2001
From: Jessica Frazelle <princess@docker.com>
Date: Tue, 5 May 2015 11:14:04 -0700
Subject: [PATCH] solarized
---
config.def.h | 47 +-
st.c | 2415 +++++++++++++++++++++++++++++-----------------------------
2 files changed, 1225 insertions(+), 1237 deletions(-)