Last updated: 09/05/24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"custom/weather": { | |
"format": "{}", | |
"tooltip": true, | |
"interval": 3600, | |
"exec": "waybar-wttr.py", | |
"return-type": "json" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -Version 2 -Modules posh-git | |
Import-Module PowerColorTerm | |
function Write-Theme { | |
param( | |
[bool] | |
$lastCommandFailed, | |
[string] | |
$with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emulate sh | |
. ~/.profile | |
emulate zsh | |
# Why is that not the default behaviour? | |
# https://superuser.com/questions/187639/zsh-not-hitting-profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Runtime.InteropServices; | |
using System; | |
using System.Windows; | |
using System.Threading; | |
using System.Drawing; | |
public enum TaskbarPosition | |
{ | |
Unknown = -1, | |
Left, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
NewerOlder