Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kruug on github.
  • I am kruug (https://keybase.io/kruug) on keybase.
  • I have a public key whose fingerprint is 06E6 7248 81B4 B822 BD4B 4137 D3A9 BD72 74FF CD0E

To claim this, I am signing this object:

churlish Elf Paladin from the improbable peaks who hasn't been quite right since the accident
/********************************************************************/
/* DT_GTOJ.C */
/********************************************************************/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <conio.h>
static char indate[11];
/********************************************************************/
/* MW_OPENM.C */
/*------------------------------------------------------------------*/
/* TASK: Startrak Opening Menu (true menu version) */
/*------------------------------------------------------------------*/
/* AUTHOR: J. D. ELBERT */
/* DEVELOPED: 5-24-97 */
/* LAST UPDATE: 10-2-97 */
/*------------------------------------------------------------------*/
/* */
/********************************************************************/
/* 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 */
# 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)
function guesswinner($rankA, $rankB) {
#$rankA = $args[0]
#$rankB = $args[1]
$randA = Get-Random
$randB = Get-Random
Write-Output $rankA
Write-Output $rankB
@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
@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 / 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,