Skip to content

Instantly share code, notes, and snippets.

@askrabal
askrabal / start_update_asa.sh
Created November 30, 2023 05:04
ARK Survival Ascended server start/update script
#!/bin/bash
mkdir -p ~/.steam/steam
export STEAM_LIBRARY="$(realpath ~/.steam/steam/)"
app_id=2430930
proton_id=2348590
#lgsm vars
serverfiles="$(realpath ./serverfiles)"
systemdir="${serverfiles}/ShooterGame"
@askrabal
askrabal / discord_commands.sh
Last active November 19, 2022 04:47
Working with discord on linux shell
# installing discord from shell
cd ~/Downloads
wget -O discord.deb 'https://discord.com/api/download?platform=linux&format=deb'
sudo apt update
sudo apt install ./discord.deb
# check if discord is running
pgrep -af discord
# killing discord and restarting it
@askrabal
askrabal / multiProcMultiLineReprint.py
Created May 7, 2021 05:55
Example of re-printing a line per subprocess in python
#!/usr/bin/env python3
import random
from ctypes import c_char
from multiprocessing import Process, Array
from sys import argv, stdout
from time import sleep
arg_end = 10
arg_rest = 1.0
@askrabal
askrabal / multilineReprint.sh
Created May 7, 2021 03:14
Simple bash script to show how to continuously print on 2 lines
#!/bin/bash
reprintLines() {
let -i end=$1
for (( ii=0; ii < end; ii++));do
echo -ne "\033[2K" #clear line
echo -ne "\033[1A" # go up 1
done
echo -ne "\033[G" #move to begin of line
}
@askrabal
askrabal / multilineReprint.py
Created May 7, 2021 03:07
Simple python script that shows how to continuously print on 2 lines
#!/usr/bin/env python3
from sys import argv, stdout
from time import sleep
import random
random.seed()
end = 10
rest = 1.0
@askrabal
askrabal / config.xml
Last active December 30, 2020 11:36
Folding@Home configuration xml -- /etc/fahclient/config.xml
<config>
<!-- Client Control -->
<fold-anon v='true'/>
<!-- Folding Slot Configuration -->
<gpu v='true'/>
<!-- HTTP Server -->
<!-- allow all local network access -->
<allow v='127.0.0.1 192.168.0.0/16'/>