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 / hello_world.py
Created May 22, 2018 09:37 — forked from uchcode/hello_world.py
pyobjc example.
#!/usr/bin/python2.6
# -*- coding: utf-8 -*-
import objc
from Foundation import *
from AppKit import *
from PyObjCTools import AppHelper
NSWindowDelegate = objc.protocolNamed("NSWindowDelegate")
@orklann
orklann / rs_ping.py
Created March 19, 2018 02:08
Old School Runescape Worlds Latency
import os
import commands
for i in range(1, 116):
cmd = "ping -c 4 oldschool%i.runescape.com | tail -1| awk '{print $4}' | cut -d '/' -f 2" % i
output = commands.getstatusoutput(cmd)
print "world %i = %sms" % (i, int(float(output[1])))
@orklann
orklann / pixelegg.me.domain.md
Created November 15, 2017 00:53
pixelegg.me can not be opened after renew domain

After renew pixelegg.me, it can not be opened.

Solution:

Go to godaddy.com and change the A record for @

A @ 45.32.225.253 600 seconds

@orklann
orklann / ignore-discord-web.md
Created November 1, 2017 12:37
忽略 Discord 网页版的服务器
discordapp.com, gateway.discord.gg
@orklann
orklann / tf2.md
Created September 20, 2017 14:53
Team Fortress 2 FPS Improve
mat_phong 0
@orklann
orklann / dll.dart.md
Created August 24, 2017 07:57
Dart native extension DLL issue on Windows

Dart native extension build on Windows 7 as a DLL with (x86 target can run on 64 bits Windows 7, But can not run on 64 bits Windows 10.

Error:

The Specify Module can not be found

This imply missing some DLLs which is needed for the native extension DLL.

@orklann
orklann / oh-my-fish-theme-default.md
Last active August 14, 2017 03:28
Oh-My-Fish default theme git prompt not correct

git branch --set-upstream-to=origin/master master

This fix "default theme" not shows up correctly

or on first time push to repo, use

git push -u origin master

@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