Skip to content

Instantly share code, notes, and snippets.

View tummychow's full-sized avatar

Stephen Jung tummychow

View GitHub Profile
@tummychow
tummychow / 27gp850.bin
Created September 3, 2021 05:22
27gp850 edid
edid-decode (hex):
00 ff ff ff ff ff ff 00 1e 6d d2 5b b4 af 05 00
07 1f 01 03 80 46 27 78 ea 8c b5 af 4f 43 ab 26
0e 50 54 21 08 00 d1 c0 61 40 01 01 01 01 01 01
01 01 01 01 01 01 e9 e8 00 a0 a0 a0 53 50 30 20
35 00 b9 88 21 00 00 1a 00 00 00 fd 00 3c 90 1e
e6 3c 00 0a 20 20 20 20 20 20 00 00 00 fc 00 4c
47 20 55 4c 54 52 41 47 45 41 52 0a 00 00 00 ff
00 31 30 37 4d 58 4a 58 41 59 36 36 30 0a 01 5a
10445: libmount: don't print memory addresses (SUID executable).
10445: libmount: INIT: library debug mask: 0x100ffff
10445: libmount: INIT: library version: 2.37.1
10445: libmount: INIT: feature: btrfs
10445: libmount: INIT: feature: namespaces
10445: libmount: INIT: feature: assert
10445: libmount: INIT: feature: debug
Available "LIBMOUNT_DEBUG=<name>[,...]|<mask>" debug masks:
all [0xffff] : info about all subsystems
cache [0x0004] : paths and tags cache
This file has been truncated, but you can view the full file.
@tummychow
tummychow / straightfind
Created October 19, 2017 00:44
find(1) invocation for straight.el
#!/usr/bin/bash
cd ~/.emacs.d/straight/repos
"find" "." "-name" ".git" "-prune" "-o" "-path" "./straight.el/*" "-newermt" "2017-10-18T20:28:36-0400" "-print" "-o" "-path" "./use-package/*" "-newermt" "2017-10-18T20:28:35-0400" "-print" "-o" "-path" "./diminish.el/*" "-newermt" "2017-10-18T20:28:35-0400" "-print" "-o" "-path" "./no-littering/*" "-newermt" "2017-10-18T20:28:35-0400" "-print" "-o" "-path" "./general.el/*" "-newermt" "2017-10-18T20:28:35-0400" "-print" "-o" "-path" "./evil/*" "-newermt" "2017-10-18T20:28:34-0400" "-print" "-o" "-path" "./undo-tree/*" "-newermt" "2017-10-18T20:28:31-0400" "-print" "-o" "-path" "./goto-chg/*" "-newermt" "2017-10-18T20:28:31-0400" "-print" "-o" "-path" "./swiper/*" "-newermt" "2017-10-18T20:28:31-0400" "-print" "-o" "-path" "./hydra/*" "-newermt" "2017-10-18T20:28:31-0400" "-print" "-o" "-path" "./Emacs-wgrep/*" "-newermt" "2017-10-18T20:28:30-0400" "-print" "-o" "-path" "./org/*" "-newermt" "2017-10-18T20:28:30-0400" "-print" "-o" "-path" "./ws-butler/*" "-newermt
! Enabled modi
rofi.modi: window,run,ssh
! Window opacity
rofi.opacity: 100
! Window width
rofi.width: 50
! Number of lines
rofi.lines: 15
! Number of columns
rofi.columns: 1
@tummychow
tummychow / keymap_sjung.c
Last active April 28, 2016 00:26
atomic keymap
#include "atomic.h"
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = { /* Qwerty */
{ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_MUTE },
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
// │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
// └────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
// ┌─ 2u ────────────┐
// │ X │
@tummychow
tummychow / readme.md
Created June 19, 2014 06:03
Bugzilla on nginx (except without the questionable perl wrapper scripts)

Just a brief proof of concept for running bugzilla on nginx using fcgiwrap

Software development needs issue tracking cause there's too much stuff to remember. Raise issues and manage tasks. Get stuff done. Keep track of backlogs without losing yourself in the ocean of stuff that needs doing. Real life is quite similar, so lately I have been experimenting with small self-hosted instances of various issue tracking solutions. Bugzilla is one of the most mature and feature-complete foss options in this area so obviously I had to try it.

The server that I run all my personal toys on is using nginx exclusively (with passenger for my numerous ruby and python applications, more on that in another gist? perhaps!). Unfortunately bugzilla does not support nginx out of the box. It mainly targets apache's mod_perl (or mod_cgi). However since bugzilla is ultimately a cgi application, we can find ways to serve it on nginx.

Basically the solution is to wrap bugzilla's cgi scripts in a fastcgi server so that nginx can

package main
import (
"github.com/niemeyer/qml"
)
func main() {
qml.Init(nil)
engine := qml.NewEngine()
runtime: newstack called from g=0x93be5140
m=0x93bf3000 m->curg=0x0 m->g0=0x93be51e0 m->gsignal=0x93be5140
fatal error: runtime: wrong goroutine in newstack
runtime stack:
runtime.throw(0x827aa30)
/usr/lib/go/src/pkg/runtime/panic.c:464 +0x5f
runtime.newstack()
/usr/lib/go/src/pkg/runtime/stack.c:212 +0x90
runtime.morestack()