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 / 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 / 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 / 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
@SirJson
SirJson / .zprofile
Created June 30, 2020 13:54
How to make zsh use .profile
emulate sh
. ~/.profile
emulate zsh
# Why is that not the default behaviour?
# https://superuser.com/questions/187639/zsh-not-hitting-profile
@SirJson
SirJson / hidetaskbar.csx
Created June 20, 2020 19:05
This is a ugly hacked together C# Script that will hide your taskbar for 5 seconds and restores it. A starting point for a custom taskbar maybe?
using System.Runtime.InteropServices;
using System;
using System.Windows;
using System.Threading;
using System.Drawing;
public enum TaskbarPosition
{
Unknown = -1,
Left,
@SirJson
SirJson / sshbridges-color.ps1
Last active June 9, 2020 20:17
Ad-hoc Tunnel and Proxy Commands for PowerShell 6+ and Windows 10 >= 1809
# This version uses my Write-RGB function that can be found in another Gist or maybe one day as a installable Module...
# See below for a colorless version
function tunnel {
param (
[string]$Url,
[int]$RemotePort,
[int]$LocalPort,
[string]$RemoteProfile
@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.