A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
import-module 'ACME-PS' | |
# This is an updated Let's Encrypt script using the ACME-PS module https://github.com/PKISharp/ACME-PS | |
# The original script (using ACMESharp) is by Marc Durdin https://marc.durdin.net/2017/02/lets-encrypt-on-windows-redux/ | |
# This directory is used to store your account key and service directory urls as well as orders and related data | |
$acmeStateDir = "C:\Certs\AcmeState"; | |
# |
#!/bin/bash | |
# This script creates a docker config.json file with the auth section | |
# as an example of what can be passed into GitLab-CI and used in | |
# conjunction with DOCKER_CONFIG - the config file directory location. | |
# command line parameter default values | |
DOCKER_REGISTRY="" | |
DOCKER_USER="" | |
DOCKER_PASSWORD="" |
function ConvertFrom-SecureStringToPlainText ([System.Security.SecureString]$SecureString) { | |
[System.Runtime.InteropServices.Marshal]::PtrToStringAuto( | |
[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($SecureString) | |
) | |
} | |
New-Alias -Name s2p -Value ConvertFrom-SecureStringToPlainText |
docker run \ | |
--name {{printf "%q" .Name}} \ | |
{{- with .HostConfig}} | |
{{- if .Privileged}} | |
--privileged \ | |
{{- end}} | |
{{- if .AutoRemove}} | |
--rm \ | |
{{- end}} | |
{{- if .Runtime}} |
#!/usr/bin/env bash | |
set -e # Abort script at first error, when a command exits with non-zero status (except in until or while loops, if-tests, list constructs) | |
set -u # Attempt to use undefined variable outputs error message, and forces an exit | |
set -x # Similar to verbose mode (-v), but expands commands | |
set -o pipefail # Causes a pipeline to return the exit status of the last command in the pipe that returned a non-zero return value. | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
# end boilerplate from: https://gist.github.com/crizCraig/f42bc250754bed764ada5f95d101dbea |
#!/usr/bin/env bash | |
# ref: https://gist.github.com/ericchiang/d2a838ddad3f44436ae001a342e1001e | |
# thanks to ericchiang for the initial gist, just tweaked for macos or linux and dynamic file naming. | |
# Creates kubeconfig files using tokens. | |
# Copy these files to where the ci or cd processes/envs run kubectl commands--i.e.: jenkins, etc. | |
# | |
# Usage ./k8s-service-account-kubeconfig.sh ( namespace ) ( service account name ) | |
# i.e.: k8-sevice-account-kubeconfig.sh ci ci | |
# i.e.: k8-sevice-account-kubeconfig.sh cd cd | |
# this is for the naming the kubeconfig file naming us "kubeconfig-$KUBE_USER" |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
#!/bin/bash | |
# Retrieves image configuration using | |
# private registries without authentication | |
set -o errexit | |
# Address of the registry that we'll be | |
# performing the inspections against. | |
# This is necessary as the arguments we |
# LVDB - LLOOGG Memory DB | |
# Copyriht (C) 2009 Salvatore Sanfilippo <[email protected]> | |
# All Rights Reserved | |
# TODO | |
# - cron with cleanup of timedout clients, automatic dump | |
# - the dump should use array startsearch to write it line by line | |
# and may just use gets to read element by element and load the whole state. | |
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands. | |
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump! |
#!/bin/bash | |
set -euo pipefail | |
CMD=$0 | |
function usage { | |
cat <<EOU | |
Usage: |