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 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.
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
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; |
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
useradd -m -G $(groups pi | cut -b 9- | tr ' ' ',') arthur |
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 |
NewerOlder