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 / install_diablo2_on_mac.md
Last active September 7, 2021 08:18 — forked from whipowill/install_diablo2_on_mac.md
Install Diablo II on Mac OSX

Install Diablo II on Mac OSX

These are the instructions for using Terminal to install the Windows version of the game onto your machine. You can then easily copy the game multiple times for different mods you might want to play.

In this guide you'll end up with:

  • A version of the unadulterated game
  • A single-player install w/ PlugY

Install Wine

@orklann
orklann / fontpath.m
Last active August 15, 2020 13:10
Get Font Path from NSFont in Cococa
//
// main.m
// FontPath
//
// Created by Aaron Elkins on 8/15/20.
// Copyright © 2020 Aaron Elkins. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
@orklann
orklann / unfollow.js
Created August 13, 2020 06:14 — forked from JamieMason/unfollow.js.md
Unfollow everyone on twitter.com
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)
// https://gist.github.com/JamieMason/7580315
//
// 1. Go to https://twitter.com/YOUR_USER_NAME/following
// 2. Open the Developer Console. (COMMAND+ALT+I on Mac)
// 3. Paste this into the Developer Console and run it
//
// Last Updated: 09 April 2020
(() => {
const $followButtons = '[data-testid$="-unfollow"]';
@orklann
orklann / cloudSettings
Created July 18, 2020 09:46
Visual Studio Code Settings Sync Gist
// Empty
@orklann
orklann / pref.py
Created June 24, 2020 14:09
Blender addon preference
import bpy
def get_preferences(context=None):
"""Multi version compatibility for getting preferences"""
if not context:
context = bpy.context
prefs = None
if hasattr(context, "user_preferences"):
prefs = context.user_preferences.addons.get(__package__, None)
elif hasattr(context, "preferences"):
Chrome Web Store
Dear Developer,
Your Google Chrome item "Pushbullet" with ID:
chlffgpmiacpedhhbkiomidkjlcfhogd did not comply with our policies.
Your item is still published, but is at risk of being removed from the
Chrome Web Store.
@orklann
orklann / client.html
Created February 11, 2020 06:05 — forked from ericremoreynolds/client.html
Flask-socket.io emit to specific clients
<html>
<body>
<h1>I feel lonely</h1>
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.16/socket.io.min.js"></script>
<script type="text/javascript" charset="utf-8">
var socket = io.connect('http://' + document.domain + ':' + location.port);
socket.on('connect', function() {
socket.emit('connected');
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@orklann
orklann / gist:17df48ce8fde4f81c1fd1b5e059f1d9e
Created October 31, 2018 10:56
Alone with you, failed to install
/Applications/Vita3K.app/Contents/MacOS/Vita3K /Users/aaron/Desktop/PSVita\ Roms/Alone\ With\ You\ \[EU\].zip
[18:52:58.957] |I| [init]: input-vpk-path: /Users/aaron/Desktop/PSVita Roms/Alone With You [EU].zip
[18:52:58.958] |I| [init]: log-level: 0
[18:52:58.958] |I| [init]: log-imports: false
[18:52:58.958] |I| [init]: log-exports: false
[18:52:58.958] |I| [init]: log-active-shaders: false
[18:52:58.958] |I| [init]: log-uniforms: false
[18:52:58.958] |I| [main]: Vita3K v0.1 104-78f3013
[18:52:59.102] |I| [init]: Swap interval = 1
[18:52:59.103] |W| [init_font]: Could not find font file at "/Users/aaron/data/fonts/Ruda-Black.ttf", falling back to default imgui font.
@orklann
orklann / setup_bpy.sh
Created July 25, 2018 09:23 — forked from xunkai55/setup_bpy.sh
Setup bpy (Blender as a python module) on Mac OS X
# Do not excute the script directly. It is just for demonstration.
# If you followed the documentation and got the errors below, please take a look at this guide.
# Color management: using fallback mode for management
# bpy: couldnt find 'scripts/modules', blender probably wont start.
# Freestyle: couldn't find 'scripts/freestyle/modules', Freestyle won't work properly.
# ImportError: No module named 'bpy_types'
# ImportError: No module named 'bpy_types'
# pyrna_srna_ExternalType: failed to find 'bpy_types' module
# ImportError: No module named 'bpy_types'