I hereby claim:
- I am nickistre on github.
- I am nickistre (https://keybase.io/nickistre) on keybase.
- I have a public key ASBTGJdnJi3MmfI0twBlRQR4IYal_JqGydn4SkGljk6eUgo
To claim this, I am signing this object:
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen 5 5600X 6-Core Processor | |
CPU Family: 0x19 |
>>> Adding process 127220 for game ID 284160 | |
>>> Adding process 127223 for game ID 284160 | |
>>> Adding process 127222 for game ID 284160 | |
sh: 1: lsb_release: not found | |
>>> Adding process 127224 for game ID 284160 | |
>>> Adding process 127226 for game ID 284160 | |
>>> Adding process 127227 for game ID 284160 | |
>>> Adding process 127228 for game ID 284160 | |
>>> Adding process 127229 for game ID 284160 | |
sh: 1: lsb_release: not found |
# Add to Docker image and include in other scripts with (using the current directory | |
# for the user_id and group_id): | |
# source /path/to/run_as_user_setup_source.sh "$(pwd)" | |
# Requires commands: | |
# sudo | |
# Tested on BASH | |
# Run apps or scripts as the user of the used directory with: |
# In `~/.bashrc`, add or change to the following: | |
# uncomment for a colored prompt, if the terminal has the capability; turned | |
# off by default to not distract the user: the focus in a terminal window | |
# should be on the output of commands, not on the prompt | |
#force_color_prompt=yes | |
if [ -n "$force_color_prompt" ]; then | |
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | |
# We have color support; assume it's compliant with Ecma-48 |
# Copy this into ~/.gitignore and run the following: | |
# git config --global core.excludesfile ~/.gitignore | |
# Folder view configuration files | |
.DS_Store | |
Desktop.ini | |
# Thumbnail cache files | |
._* | |
Thumbs.db |
protected function checkHTML($body) | |
{ | |
libxml_use_internal_errors(true); | |
$dom = new \DOMDocument(); | |
$dom->loadHTML($body, LIBXML_HTML_NOIMPLIED + LIBXML_HTML_NODEFDTD); | |
// Check for no errors | |
$this->assertCount(0, libxml_get_errors()); | |
// Check for doctype |
#!/usr/bin/env bash | |
# From: https://stackoverflow.com/a/46625302 | |
function getContainerHealth { | |
docker inspect --format "{{json .State.Health.Status }}" $1 | |
} | |
function waitContainer { | |
while STATUS=$(getContainerHealth $1); [ $STATUS != "\"healthy\"" ]; do | |
if [ $STATUS == "\"unhealthy\"" ]; then |
#!/usr/bin/env bash | |
# All in one line | |
docker stop $(docker ps -q) ; docker rm $(docker ps -aq) ; docker rmi -f $(docker images -q) ; docker volume prune -f ; docker network prune -f ; docker system prune -a --volumes -f |
I hereby claim:
To claim this, I am signing this object:
#!/bin/env bash | |
# The following is to combine all mp4 files (such as from a GoPro action cam) in the current directory into one | |
# large file for processing. Note that audio is converted from whatever compressed form to uncompressed PCM! | |
# Change the filenames to order them in alpha-numeric form. | |
mencoder -oac pcm -ovc copy -idx -o full.mp4 *.MP4 |