Skip to content

Instantly share code, notes, and snippets.

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 Apr 28, 2021
Modified OpenRA dedicated server launch script for Windows releases
View openra-launch-server.cmd
:: 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 Jan 4, 2021 — forked from bjesus/config.json
Weather widget for waybar
View config.json
"custom/weather": {
"format": "{}",
"tooltip": true,
"interval": 3600,
"exec": "waybar-wttr.py",
"return-type": "json"
},
View treestyletab.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 Oct 16, 2020
Prints all special folder on the current platform
View folders.csx
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 Oct 9, 2020
Install Docker on Ubuntu 20.x without reading the manual
View install-docker.sh
#!/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 Sep 19, 2020
Powerlevel10k-Theme color mod for PowerShell
View Powerlevel10k-Improved.psm1
#requires -Version 2 -Modules posh-git
Import-Module PowerColorTerm
function Write-Theme {
param(
[bool]
$lastCommandFailed,
[string]
$with
@SirJson
SirJson / .zprofile
Created Jun 30, 2020
How to make zsh use .profile
View .zprofile
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 Jun 20, 2020
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?
View hidetaskbar.csx
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 Jun 9, 2020
Ad-hoc Tunnel and Proxy Commands for PowerShell 6+ and Windows 10 >= 1809
View sshbridges-color.ps1
# 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 Oct 17, 2020
Grabs a bunch of stats from vcgencmd and prints them out
View README.md

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.