Skip to content

Instantly share code, notes, and snippets.

View tralce's full-sized avatar

Violet tralce

View GitHub Profile
#!/bin/bash
trap exit 1 INT
tmp="$(mktemp)"
inputfile="$tmp"
outputfile="/etc/pacman.d/mirrorlist"
source ~/.bin/src.sh
-- vim: fdm=marker
-- requires {{{
-- If LuaRocks is installed, make sure that packages installed through it are
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
pcall(require, "luarocks.loader")
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
AutoCategorySavedVars =
{
["Default"] =
{
["@tralce"] =
{
["8796093062976329"] =
{
["NA Megaserver"] =
{
#!/bin/bash
# This script is heavily inspired by the getinfo.sh found
# on https://forums.centos.org/viewtopic.php?t=870
# s3 code taken and rewritten from
# https://stackoverflow.com/questions/44751574/uploading-to-amazon-s3-via-curl-route/44751929
counter=0
IFS=$'\n'
@tralce
tralce / raffle.sh
Last active October 27, 2022 00:16
WtU Raffle Script
#!/bin/bash
workingfile="$(mktemp)"
shuffledfile="$(mktemp)"
winners="$(mktemp)"
[ -z $1 ] && echo "Need a number of winners, yo." && exit 1
while read line
do