This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#showtooltip Devour Magic | |
/cast [nopet:Felhunter] Summon Felhunter | |
/stopmacro [nopet:Felhunter] | |
/target Pure Energy | |
/petattack | |
/cast [target=pet] Devour Magic | |
/target Vexallus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
-- 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> ...] |