Skip to content

Instantly share code, notes, and snippets.

import sys
keys = sys.argv[2:]
print "class %s(object):\n def __init__(self, %s):" % (sys.argv[1], ', '.join(keys))
for key in keys:
print " self." + key + " = " + key
import struct
# See https://docs.python.org/2/library/struct.html
typeNames = {
"char": "b",
"uchar": "B",
"short": "h",
"ushort": "H",
"int": "i",
"uint": "I",
@Fusion86
Fusion86 / wampadmin-manual.md
Last active October 14, 2020 16:58
Kerntaak - Windows, Apache, MySQL, PHP, PHPMyAdmin (Manual)

Manually install Apache, MySQL, PHP and PHPMyAdmin

Or A noob's guide to pass the Wietingen test.
For Windows, but works for others as well (with a few minor changes, mainly the paths)

Apache

  • Download
  • Extract in C:\Apache24
  • Go to C:\Apache24\bin
@Fusion86
Fusion86 / import-overwatch-006-animations-in-blender.md
Last active October 19, 2022 14:59
Import Overwatch 006 Animations into Blender

Import Overwatch 006 Animations into Blender

This guide assumes that you already have all the required files extracted, see Required Files. If you do not yet have these files extracted then you can extract them using Dynaomi's OverTool (Instructions).

This guide assumes that you are using Windows, but it should work fine for wine as well.

Required Files

@Fusion86
Fusion86 / settings.json
Last active December 16, 2017 14:08
VSCode Settings
{
"workbench.startupEditor": "none",
"explorer.openEditors.visible": 9,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"editor.wordWrap": "on",
"files.associations": {
"*.xm": "objective-c"
},
"explorer.confirmDelete": false,
@Fusion86
Fusion86 / export_xarchive_to_ipa.sh
Last active January 30, 2018 09:55
Export .xcarchive to .ipa
xcodebuild -exportArchive -exportFormat ipa -archivePath <FILE_NAME>.xcarchive -exportPath ~/Desktop/<FILE_NAME>.ipa
@Fusion86
Fusion86 / text.md
Created February 4, 2017 17:00
Make Cydia .deb from .ipa

Make Cydia .deb from .ipa

Setup the folder structure

+- MyProgram
   +- Applications
   |  +- MyProgram.app
   |     +- Info.plist
   |     +- MyProgram
@Fusion86
Fusion86 / QUAKE-NOTES.md
Last active May 19, 2017 16:21
Quake Champions notes

Quake Notes

Start Quake Champions without the Bethesda Launcher

Run in same folder as QuakeChampions.exe

"C:\Program Files (x86)\Bethesda.net Launcher\games\quakechampions\client\bin\pc\QuakeChampions.exe" --startup --set /Config/GAME_CONFIG/bethesdaGameCode "cd401dXX-ecXX-47XX-b3XX-381380d4fbXX" --set /Config/GAME_CONFIG/bethesdaLoginEnabled 1 --set /Config/Bethesda/Language "en" --set /Config/GAME_CONFIG/bethesdaEndpointUrl "https://services.bethesda.net/agora_beam/"

'bethesdaGameCode' is probably your login token

@Fusion86
Fusion86 / dbout.c
Last active February 1, 2018 17:41
DBOUT(s) - pick one
// C style format (like printf)
// Source: http://systools.losthost.org/?code=3
void WINAPIV DBOUT(const TCHAR *fmt, ...)
{
TCHAR s[1025] = { 0 };
va_list args;
va_start(args, fmt);
wvsprintf(s, fmt, args);
@Fusion86
Fusion86 / file.js
Created September 4, 2017 09:03
Oracle iAcademy
// Get list of tables
var tables = [];
$("td > a").each((k, v) => tables.push(v.innerText));
// Create backups
var tables = ["DEPARTMENTS", "D_CDS", "D_CLIENTS", "D_EVENTS", "D_JOB_ASSIGNMENTS", "D_PACKAGES", "D_PARTNERS", "D_PLAY_LIST_ITEMS", "D_SONGS", "D_THEMES", "D_TRACK_LISTINGS", "D_TYPES", "D_VENUES", "EMPLOYEES", "F_CUSTOMERS", "F_FOOD_ITEMS", "F_ORDERS", "F_ORDER_LINES", "F_PROMOTIONAL_MENUS", "F_REGULAR_MENUS", "F_SHIFTS", "F_SHIFT_ASSIGNMENTS", "F_STAFFS", "JOBS", "JOB_GRADES", "JOB_HISTORY", "LOCATIONS", "REGIONS"]
var queries = [];