Skip to content

Instantly share code, notes, and snippets.

View SirJson's full-sized avatar
:electron:
Am Heimcomputer sitz' ich hier, und programmier' die Zukunft mir

Raffael Zica SirJson

:electron:
Am Heimcomputer sitz' ich hier, und programmier' die Zukunft mir
View GitHub Profile
@SirJson
SirJson / fikaserver.md
Created May 9, 2024 16:05 — forked from OnniSaarni/fikaserver.md
SPT AKI Fika Server With Docker Ubuntu/Debian
@SirJson
SirJson / openra-launch-server.cmd
Created April 28, 2021 00:47
Modified OpenRA dedicated server launch script for Windows releases
:: example launch script, see https://github.com/OpenRA/OpenRA/wiki/Dedicated for details
@echo on
set Name="Dedicated Server"
set Mod=ra
set ListenPort=1234
set AdvertiseOnline=True
set Password=""
set RecordReplays=False
@SirJson
SirJson / config.json
Last active January 4, 2021 19:48 — forked from bjesus/README.md
Weather widget for waybar
"custom/weather": {
"format": "{}",
"tooltip": true,
"interval": 3600,
"exec": "waybar-wttr.py",
"return-type": "json"
},
@SirJson
SirJson / treestyletab.css
Created December 20, 2020 23:18
Firefox CSS
tab-item {
transition : all 0.3s cubic-bezier(.25, .8, .25, 1) !important;
--tab-size : 2.5vh !important;
height : var(--tab-size);
border : solid 1px #33333344;
font-family : Inter, Source Sans Pro, Bahnschrift, sans-serif !important;
font-size : 11px;
letter-spacing: 0.005em;
line-height : 15px;
@SirJson
SirJson / README.md
Last active October 17, 2020 23:28
Grabs a bunch of stats from vcgencmd and prints them out

This is just a useful monitoring script for the Raspberry Pi. Especially useful if you are running one in an environment where you are not sure if it will survive ;-)

You can use it just as a one off thing by calling the script or combine it with watch like this:

watch pistats.sh

That way you get automatic updates of the health of your pi to your terminal.

@SirJson
SirJson / folders.csx
Created October 16, 2020 03:51
Prints all special folder on the current platform
using System;
using System.Reflection;
using static System.Console;
using static JSPrint;
public static class JSPrint {
private static int groupLevel = 0;
public static void Group()
{
@SirJson
SirJson / install-docker.sh
Last active October 9, 2020 03:59
Install Docker on Ubuntu 20.x without reading the manual
#!/bin/bash
_install_docker() {
echo "> Starting Docker setup!"
apt-get remove docker docker.io containerd runc
apt-get update
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
@SirJson
SirJson / nginx-reverse-proxy-template.conf
Last active September 25, 2020 22:54
A template for reverse proxies for nginx
location ~ /app/* {
client_max_body_size 2048m;
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
@SirJson
SirJson / rpi-mkusr.sh
Last active September 25, 2020 22:52
Create a new user on raspbian with the groups of pi
useradd -m -G $(groups pi | cut -b 9- | tr ' ' ',') arthur
@SirJson
SirJson / Powerlevel10k-Improved.psm1
Created September 19, 2020 04:15
Powerlevel10k-Theme color mod for PowerShell
#requires -Version 2 -Modules posh-git
Import-Module PowerColorTerm
function Write-Theme {
param(
[bool]
$lastCommandFailed,
[string]
$with