Skip to content

Instantly share code, notes, and snippets.

View jessfraz's full-sized avatar
📞
call me on my shell phone

Jess Frazelle jessfraz

📞
call me on my shell phone
View GitHub Profile
@jessfraz
jessfraz / init.lua
Created July 13, 2014 18:38
hydra config
-- make sure Hydra launches at login
autolaunch.set(true)
-- watch for changes
pathwatcher.new(os.getenv("HOME") .. "/.hydra/", hydra.reload):start()
-- notify on start
notify.show("Hydra", "Started!", "", "")
-- extensions
@jessfraz
jessfraz / btrfs-test.go
Created January 13, 2015 16:46
btrfs-test.go
// +build linux
package main
/*
#include <stdlib.h>
#include <dirent.h>
#include <btrfs/ioctl.h>
*/
import "C"
@jessfraz
jessfraz / broadcom.patch
Created February 6, 2015 02:54
linux 3.18.5 broadcom-sta-dkms patch
--- a/src/wl/sys/wl_cfg80211_hybrid.c 2014-06-26 12:42:08.000000000 +0200
+++ b/src/wl/sys/wl_cfg80211_hybrid.c 2015-01-22 01:43:25.378920452 +0100
@@ -63,8 +63,13 @@
static s32 wl_cfg80211_join_ibss(struct wiphy *wiphy, struct net_device *dev,
struct cfg80211_ibss_params *params);
static s32 wl_cfg80211_leave_ibss(struct wiphy *wiphy, struct net_device *dev);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0)
static s32 wl_cfg80211_get_station(struct wiphy *wiphy,
struct net_device *dev, u8 *mac, struct station_info *sinfo);
+#else
@jessfraz
jessfraz / linux-recent.patch
Created April 24, 2015 01:52
boardcom-sta-dkms driver patch for kernel 4.0.0
--- a/src/wl/sys/wl_cfg80211_hybrid.c 2014-06-26 10:42:08.000000000 +0000
+++ b/src/wl/sys/wl_cfg80211_hybrid.c 2014-12-30 17:02:13.602127370 +0000
@@ -63,8 +63,13 @@
static s32 wl_cfg80211_join_ibss(struct wiphy *wiphy, struct net_device *dev,
struct cfg80211_ibss_params *params);
static s32 wl_cfg80211_leave_ibss(struct wiphy *wiphy, struct net_device *dev);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0)
static s32 wl_cfg80211_get_station(struct wiphy *wiphy,
struct net_device *dev, u8 *mac, struct station_info *sinfo);
+#else
@jessfraz
jessfraz / nvidia-fixes-for-kernel-3.19.patch
Created April 24, 2015 02:01
nvidia-kernel-dkms patch 3.19
Index: nvidia-graphics-drivers/nv-drm.c
===================================================================
--- nvidia-graphics-drivers.orig/nv-drm.c
+++ nvidia-graphics-drivers/nv-drm.c
@@ -128,6 +128,10 @@ static struct drm_driver nv_drm_driver =
.gem_prime_vmap = nv_gem_prime_vmap,
.gem_prime_vunmap = nv_gem_prime_vunmap,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0)
+ .set_busid = drm_pci_set_busid,
@jessfraz
jessfraz / nvidia-fixes-for-kernel-4.0.0.patch
Created April 24, 2015 02:03
nvidia-kernel-dkms patch 4.0.0
Index: nvidia-graphics-drivers/nv-pat.c
===================================================================
--- nvidia-graphics-drivers.orig/nv-pat.c
+++ nvidia-graphics-drivers/nv-pat.c
@@ -35,8 +35,14 @@ static inline void nv_disable_caches(uns
unsigned long cr0 = read_cr0();
write_cr0(((cr0 & (0xdfffffff)) | 0x40000000));
wbinvd();
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 20, 0)
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(-)
@jessfraz
jessfraz / syslog
Last active August 29, 2015 14:21
syslog kernel bug
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
@jessfraz
jessfraz / stack
Created September 21, 2015 20:09
server weirdness
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
@jessfraz
jessfraz / .dockerignore
Last active April 1, 2016 19:42
simple hello world
Makefile
.git
.gitignore