Skip to content

Instantly share code, notes, and snippets.

View orklann's full-sized avatar
🏠
Working from home

Tommy Jeff orklann

🏠
Working from home
View GitHub Profile
@orklann
orklann / 1pixel-wegbl.txt
Last active August 4, 2017 05:23
Draw 1 pixel with Webgl
canvas.width = canvas.height = 400;
left-top is the origin in pixels
|---|---|
| | |
|---o---|
| | |
|---|---|
`o` is the origin in Webgl viewport
@orklann
orklann / nwn2.md
Last active July 24, 2017 13:03
Neverwinter Nights 2 FPS improvement
@orklann
orklann / albums.md
Last active July 4, 2017 09:02
Music Albums
  • Billie Holiday
  • Green Day - 21st.Century Breakdown
  • Allen Toussaint
  • Dido - No Angel
  • Dido - Girl Who Got Away (2013)
  • Clavin Harris - Motion
@orklann
orklann / speedtest.md
Created April 30, 2017 05:55
Test VPS speed with Speedtest

Download speedtest script

wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

Run default test

Python speedtest.py

List specify test servers

Python speedtest.py --list | grep Beijing

Sample output

Turning Off Github Issues

My friend Michael Jackson turned off github issues on one of his smaller projects. It got me thinking...

Maintainers getting burned out is a problem. Not just for the users of a project but the mental health of the maintainer. It's a big deal for both parties. Consumers want great tools, maintainers want to create them, but maintainers don't want to be L1 tech support, that's why they

@kaishin
kaishin / snapshot.swift
Created January 10, 2016 14:29
NSView Snapshot
extension NSView {
var snapshot: NSImage {
guard let bitmapRep = bitmapImageRepForCachingDisplayInRect(bounds) else { return NSImage() }
bitmapRep.size = bounds.size
cacheDisplayInRect(bounds, toBitmapImageRep: bitmapRep)
let image = NSImage(size: bounds.size)
image.addRepresentation(bitmapRep)
return image
}
}
@hongster
hongster / tcp_timeout.go
Created October 2, 2015 11:30
Golang example on handling TCP connection and setting timeout.
package main
import (
"fmt"
"net"
"time"
"bufio"
)
func handleConnection(conn net.Conn) {
@jaibeee
jaibeee / brew-perms.sh
Last active January 4, 2025 01:23
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local
chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew
@mnot
mnot / snowden-ietf93.md
Last active November 5, 2024 06:22
Transcript of Edward Snowden's comments at IETF93.