Skip to content

Instantly share code, notes, and snippets.

View SierraKomodo's full-sized avatar
🏠
Working from home

Sierra "SierraKomodo" Brown SierraKomodo

🏠
Working from home
View GitHub Profile
@SierraKomodo
SierraKomodo / worldanvil-hide-sidebar.css
Created January 9, 2019 23:59
WorldAnvil - Hide Article Sidebars with CSS
/* Hide Sidebars In Articles
* With this CSS snippet, you can hide sidebars in your articles by adding `hide-sidebar` to the Additional CSS Classes
* field of the edit article page.
*/
.user-css-presentation .hide-sidebar .tab-content .col-md-4 {
display: none;
}
.user-css-presentation .hide-sidebar .tab-content .col-md-8 {
width: 100%;
@SierraKomodo
SierraKomodo / row-border-group.css
Created August 31, 2018 17:41
The CSS for the row/column borders provided in GalaxyAnvil
/* LAYOUT */
.user-css-presentation .user-css .row-border-group .user-row {
display: flex;
}
.user-css-presentation .user-css .row-border-group .user-row .col-md-6 {
border-left: 1px solid;
border-right: 1px solid;
}
@SierraKomodo
SierraKomodo / theme.css
Created July 5, 2018 19:14
GalaxyAnvil color theme template
/* COLOR THEME: GLOBAL (Midnight Dusk)
- Default/Body: DARK BLUE Muted (HUE 240)
- Primary/Header: DARK GREEN Muted (HUE 120)
- Secondary/Accent: DARK CYAN Muted (HUE 180)
*/
.user-css, .user-css-extended {
/* Default Color: Muted Blue (Hue 240) */
--default1: #111121;
--default2: #222232;
--default3: #333343;
@SierraKomodo
SierraKomodo / nation_template
Last active February 24, 2024 00:58
A rough template for nation based articles in WorldAnvil
An example of this template in use: https://www.worldanvil.com/w/galaxies-end-SierraKomodo/a/united-arshan-federation-article
Remember that everything entered should be a focus on the nation itself as a whole, with sumamries and links to separate articles provided for anything else including subdivisions (Concept similar to the game 'Microscope'). I try to aim for 1 paragraph summaries for each individual item with a 'Main article: XYZ' link to an article focusing on that item.
(VIGNETTE)
Excerpt manually added here (Since it's not otherwise displayed on the article page itself)
Any important notes or warnings
@SierraKomodo
SierraKomodo / dragonsmoon_magic.md
Created October 20, 2017 22:49
Dragon's Moon Homebrew Magic System

Dragon's Moon Homebrew Magic System

The summary for those who know how the system works and just need the numbers:

  • All spells cost an amount of mana points equal to their level (0-level spells cost 0 points, 2nd level cost 2, etc)
  • Total available mana pool is equal to the spells a character can cast pre day - For each 1st level spell, add 1 to the maximum mana pool. For each 2nd level, add 2. Etc, etc. 0-level spells (cantrips) do not normally incur a cost and do not add to the maximum pool.
  • Classes that use PREPARED SPELLS may incur additional costs:
    • Casting an unprepared spell while having a prepared spell of the SAME level requires discarding a spell of the SAME level and paying 1.5x the normal cost for the spell, rounded up
    • Casting an unprepared spell while without having a prepared spell of the SAME level requires paying 2x the normal cost for the spell

Description of the magic system

Using magic, from a lore standpoint, uses your body's mental and physical energy and can caus

var/global/datum/controller/occupations/job_master
#define GET_RANDOM_JOB 0
#define BE_ASSISTANT 1
#define RETURN_TO_LOBBY 2
/datum/controller/occupations
//List of all jobs
var/list/occupations = list()
//Associative list of all jobs, by type

Keybase proof

I hereby claim:

  • I am SierraKomodo on github.
  • I am sierrakomodo (https://keybase.io/sierrakomodo) on keybase.
  • I have a public key whose fingerprint is 9843 8206 A4F0 DD2F 32B3 8E29 97A2 5392 12B2 0AA8

To claim this, I am signing this object:

@SierraKomodo
SierraKomodo / autoexec.mrc
Last active November 24, 2022 17:49
mIRC Automated Execution Script v1.1.0
/*
** mIRC Automated Execution Script v1.1.0
**
** Author: Sierra Brown [ SierraKomodo ]
** Website: https://gist.github.com/SierraKomodo/18c877055a49629758260d0690bc9ba6
** IRC: SierraKomodo @ irc.freenode.net
**
** Provides some better control over automated functions to occur when you start mirc, connect to a
** server, or join a channel. Everything is stored into separated .ini files stored in
** scripts/config by default (Change the global variable %glo.ConfigPath to set a new location -
@SierraKomodo
SierraKomodo / netstat_list_connections_by_ip.py
Created May 9, 2016 23:48
Python 3 script for Ubuntu (And possibly other linux distributions - Tested only for Ubuntu) to display a list of active connections, sorted by number of connections per IP
#!/usr/bin/env python3
import subprocess
# Takes any domain, ipv4, or ipv6 string and removes a trailing port
def ip_remove_port(par_string):
loc_count = par_string.count(":")
if loc_count in [0, 2, 7]:
# ipv4 or domain with no port (domain.com, 111.222.333.444 - 0 colons