Skip to content

Instantly share code, notes, and snippets.

@kruug
kruug / torn_generalbonuses.json
Created January 25, 2022 22:01
Weapon Bonuses for Laz
[
{
"Bonus": "Eviscerate",
"Weapons": "PI, SG",
"Type": "Enemy Debuff",
"Information": "Opponent receives extra damage (%) under this effect",
"Range": "16 - 17%?"
},
{
"Bonus": "Achilles",
@kruug
kruug / jobs.json
Last active January 25, 2022 21:49
Start of the Jobs JSON file for Laz.
{
"1": {
"name": "Army",
"positions": {
"1": {
"position": "Private",
"man_required": 2,
"int_required": 2,
"end_required": 2,
"man_gain": 3,
@kruug
kruug / initialize.sh
Created September 5, 2021 05:32
Set up new Ubuntu install
#!/bin/bash
# Remove snaps
sudo apt remove --autoremove --purge snapd
sudo apt-mark hold snapd
# Remove Ubuntu Gnome extensions
rm ~/.local/share/gnome-shell/extensions/*
@kruug
kruug / updateFirefox.sh
Last active May 12, 2020 21:18
Installs regular Firefox, not Firefox-ESR.
sudo mkdir /opt/firefox/
wget -O FirefoxSetup.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US"
sudo tar xjf FirefoxSetup.tar.bz2 -C /opt/firefox/
rm FirefoxSetup.tar.bz2
function guesswinner($rankA, $rankB) {
#$rankA = $args[0]
#$rankB = $args[1]
$randA = Get-Random
$randB = Get-Random
Write-Output $rankA
Write-Output $rankB
# import libraries
import requests
import feedparser
from lxml import html
from bs4 import BeautifulSoup
rss_url = ""
r = requests.get(rss_url)
with open("feed.rss", "wt") as code:
code.write(r.content)
/********************************************************************/
/* M_MAZALT.C */
/*------------------------------------------------------------------*/
/* TASK: Move to Azimuth & Altitude Routine (Startrac) */
/*------------------------------------------------------------------*/
/* AUTHOR: J. D. ELBERT */
/* DEVELOPED: 7-8-97 */
/* LAST UPDATE: 11-30-97 */
/*------------------------------------------------------------------*/
/* Passed to: nothing. Returns 0 if OK */
/********************************************************************/
/* MW_OPENM.C */
/*------------------------------------------------------------------*/
/* TASK: Startrak Opening Menu (true menu version) */
/*------------------------------------------------------------------*/
/* AUTHOR: J. D. ELBERT */
/* DEVELOPED: 5-24-97 */
/* LAST UPDATE: 10-2-97 */
/*------------------------------------------------------------------*/
/* */
/********************************************************************/
/* DT_GTOJ.C */
/********************************************************************/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <conio.h>
static char indate[11];
churlish Elf Paladin from the improbable peaks who hasn't been quite right since the accident