This file contains hidden or 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 -e | |
| FILE_PATH="/etc/docker/daemon.json" | |
| # do not write if daemon.json already exists | |
| if [ -e "$FILE_PATH" ]; then | |
| echo "File ($FILE_PATH) already present. No changes made" | |
| exit 1 |
This file contains hidden or 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
| 1 | |
| 00:00:46,413 --> 00:00:49,724 | |
| [static crackling] | |
| 2 | |
| 00:00:50,586 --> 00:00:53,275 | |
| Holy cow! | |
| 3 | |
| 00:00:53,379 --> 00:00:55,896 |
This file contains hidden or 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
| 1 | |
| 00:00:46,413 --> 00:00:49,724 | |
| [static crackling] | |
| 2 | |
| 00:00:50,586 --> 00:00:53,275 | |
| Holy cow! | |
| 3 | |
| 00:00:53,379 --> 00:00:55,896 |
This file contains hidden or 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
| import zipfile | |
| import os | |
| import sys | |
| from json import loads, dumps | |
| def safe_filename(name, max_len=100): | |
| """Truncate or hash filename if too long""" | |
| if len(name.encode('utf-8')) <= max_len: | |
| return name |
This file contains hidden or 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 | |
| ffmpeg -i vitt1-cut.mp4 -i vitt2.mp4 \ | |
| -filter_complex "[0:v] [0:a] [1:v] [1:a] \ | |
| concat=n=2:v=1:a=1 [v] [a]" \ | |
| -map "[v]" -map "[a]" -qscale:v 3 vitt.mp4 |
This file contains hidden or 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 | |
| # ffmpeg -i pastor-fix.mp4 \ | |
| # -map 0:v -map 0:a \ | |
| # -vf "scale=712:564:flags=lanczos, setsar=4:1.5" \ | |
| # -pix_fmt yuv420p \ | |
| # -c:a aac -b:a 128k \ | |
| # -movflags +faststart \ | |
| # -metadata:s:v rotate=0 \ | |
| # -reset_timestamps 1 \ |
This file contains hidden or 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 | |
| dircolors -p > ~/.dircolors | |
| eval $(dircolors ~/.dircolors) |
This file contains hidden or 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 | |
| sudo setfacl --modify user:$1:rw /var/run/docker.sock |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| [32m * [39;49;00mPackage: dev-libs/glib-2.80.5-r1:2 | |
| [32m * [39;49;00mRepository: gentoo | |
| [32m * [39;49;00mMaintainer: gnome@gentoo.org | |
| [32m * [39;49;00mUSE: abi_x86_64 amd64 elf elibc_glibc introspection kernel_linux mime xattr | |
| [32m * [39;49;00mFEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox | |
| [32m*[0m Determining the location of the kernel source code | |
| [32m*[0m Found kernel source directory: | |
| [32m*[0m /usr/src/linux | |
| [32m*[0m Found sources for kernel version: | |
| [32m*[0m 6.6.62-gentoo-dist |
This file contains hidden or 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 | |
| delay=${1:-2} # seconds | |
| # target_process="$(ps -aux | grep ngrok | grep -v grep | head -n 1 | cut -d ' ' -f 6)" | |
| target_process="$(ps -aux | grep ngrok | grep -v grep | head -n 1 | awk '{print $2}')" | |
| if test -z "$target_process"; then | |
| echo 'No existing ngrok process' | |
| else |
NewerOlder