verwirrend | cool | verwirrend | cool | |
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
<# | |
.SYNOPSIS | |
Outputs to a UTF-8-encoded file *without a BOM* (byte-order mark). | |
.DESCRIPTION | |
Mimics the most important aspects of Out-File: | |
* Input objects are sent to Out-String first. | |
* - Append allows you to append to an existing file, -NoClobber prevents | |
overwriting of an existing file. | |
* - Width allows you to specify the line width for the text representations |
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
for %%i in (*.mp4) do ( | |
ffmpeg -i "%%i" -c:v libx264 -preset ultrafast -crf 15 -c:a copy "%%~ni_ffmpeg.mp4" | |
) |
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
<# | |
.SYNOPSIS | |
Updates self signed certificates for local development via HTTPs. | |
.DESCRIPTION | |
Creates (or updates if needed) a root ca certificate for development and a | |
project certificate which is signed by the root certificate. | |
.PARAMETER ConfigPath | |
Path to server certificate configuration. |
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 | |
# | |
# Updates self signed certificates for local development via HTTPs. | |
# | |
# Exit on errors, use last pipe error code, do not overwrite files, ensure | |
# variables exist | |
set -o errexit -o pipefail -o noclobber -o nounset |
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
# Run | |
# wget https://gist.githubusercontent.com/dargmuesli/645a4d51ab1806ebfb3329fb05637318/raw -O hetzner-start.sh && chmod +x hetzner-start.sh && ./hetzner-start.sh | |
sudo apt-get update \ | |
&& sudo apt-get -y dist-upgrade \ | |
&& sudo apt-get -y install git vim | |
passwd | |
echo "username: " | |
read username | |
useradd -U -G users,sudo -m -s /bin/bash "$username" |
I hereby claim:
- I am dargmuesli on github.
- I am dargmuesli (https://keybase.io/dargmuesli) on keybase.
- I have a public key ASBwtIR5hr5ptYEqz_iJX0sDfbTEhLvlcPoJ_SncMQsojgo
To claim this, I am signing this object:
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
# Run | |
# wget https://gist.githubusercontent.com/dargmuesli/58073a79a71f97e6bdd60d6cb93f207c/raw -O docker-debian-amd64-start.sh && chmod +x docker-debian-amd64-start.sh && ./docker-debian-amd64-start.sh | |
sudo apt-get update | |
sudo apt-get -y install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common |
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 | |
# default | |
sudo docker run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce | |
# rootless | |
docker run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always -v "$XDG_RUNTIME_DIR/docker.sock:/var/run/docker.sock" -v portainer_data:/data portainer/portainer-ce |
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 | |
set -o errexit -o pipefail -o noclobber -o nounset | |
LIGHT_BLUE='\e[94m' | |
LIGHT_GREEN='\e[92m' | |
LIGHT_RED='\e[91m' | |
LIGHT_YELLOW='\e[93m' | |
NC='\e[0m' |
OlderNewer