Skip to content

Instantly share code, notes, and snippets.

View Siarkowy's full-sized avatar

Ace Siarkowy

View GitHub Profile
@Siarkowy
Siarkowy / rocksmith-install-steam-deck.sh
Last active March 25, 2024 14:31
Rocksmith 2014 on Steam Deck - installation script
#!/bin/bash
# Usage: ./rocksmith-install.sh
set -xeuo pipefail
STEAMLIBRARY="/home/deck/.local/share/Steam"
STEAMLIBRARY_GAME="/run/media/mmcblk0p1/SteamLibrary"
PROTON="$STEAMLIBRARY/steamapps/common/Proton 7.0/dist"
@Siarkowy
Siarkowy / Vexallus
Last active November 6, 2016 12:45
Vexallus macro for warlocks. Just spam this macro and your main damage spell interchangeably.
#showtooltip Devour Magic
/cast [nopet:Felhunter] Summon Felhunter
/stopmacro [nopet:Felhunter]
/target Pure Energy
/petattack
/cast [target=pet] Devour Magic
/target Vexallus
@Siarkowy
Siarkowy / boss-fights.sh
Last active January 24, 2016 00:49
HellGround boss fights notifier for Linux
#!/bin/bash
# HellGround boss fights notifier
#
# This utility checks periodically for boss slains and notifies you of them.
# You may want to set this script to start when you login.
# The MIT License (MIT)
#
# Copyright (c) 2016 Siarkowy
uint32 World::GetSaveInterval()
{
uint32 hardtime = sWorld.getConfig(CONFIG_UINT32_INTERVAL_SAVE);
if (!sWorld.getConfig(CONFIG_UINT32_INTERVAL_SAVE))
hardtime = ceil((float)(1.f / sWorld.getConfig(CONFIG_UINT32_INTERVAL_SAVEPERSEC) * sWorld.GetActiveSessionCount()*IN_MILLISECONDS));
if (hardtime < 2 * IN_MILLISECONDS)
hardtime = 2 * IN_MILLISECONDS;
@Siarkowy
Siarkowy / tolc_ex1s2.c
Last active August 29, 2015 13:57
ToLC Ex. 1 Section 2
#include <stdio.h>
// double complement !! for 0 or 1 only
#define x3 (!!(x & 0b1000))
#define x2 (!!(x & 0b0100))
#define x1 (!!(x & 0b0010))
#define x0 (!!(x & 0b0001))
// SOP
#define z3 (x3 && x2 || x3 && x1 && x0)
@Siarkowy
Siarkowy / arcatraz_sentinel.lua
Last active August 29, 2015 13:57
Kasai (Cascading AI Script) example, Arcatraz Sentinel
npc 20869 Arcatraz Sentinel
{
timerooc 0.5s 0.5s {
normal { cast 36716 self interrupt|triggered setphase 1 }
heroic { cast 38828 self interrupt|triggered setphase 1 }
}
aggro {
normal { setentry 4 }
heroic { setentry 5 }
@Siarkowy
Siarkowy / s2w.lua
Created March 1, 2014 13:00
SQL table schema to Wikimarkup converter. This script will create files named `database.table.txt` in working directory, each of which containing SQL schema information of a table in Wikimarkup.
--------------------------------------------------------------------------------
-- schema2wiki by Siarkowy, 2014
-- Released under the terms of GNU GPL v3 license.
--------------------------------------------------------------------------------
-- Description:
-- This script will create files named `database.table.txt` in working directory,
-- each of which containing SQL schema information of a table in Wikimarkup.
--
-- Usage:
-- s2w <db_user> <db_pass> <core_revision> <database> [<database2> ...]