Vault:
Ruby:
- https://github.com/hashicorp/vault-ruby
- https://docs.ruby-lang.org/en/master/OpenSSL/Cipher.html
- https://ruby-doc.org/stdlib-2.7.0/libdoc/openssl/rdoc/OpenSSL/Cipher.html
Go:
package main | |
import ( | |
"errors" | |
"fmt" | |
"net" | |
"net/http" | |
"os" | |
"syscall" | |
) |
#!/bin/bash -ex | |
mkdir -p audd | |
if (( $# < 2 )); then | |
echo "Please supply two arguments, the input file and the timestamp (HH:MM:SS)." | |
exit 1 | |
fi | |
fn=$1 | |
pos=$(date -d "1970-01-01 $2" -u +%s) |
#!/usr/bin/env ruby | |
files = Dir["*.ts"].sort_by { |fn| fn.split(".")[0].to_i } | |
puts "ffmpeg -i 'concat:#{files.join("|")}' -codec copy output.mkv" | |
puts | |
puts "run this first:" | |
puts "ulimit -n 4096" |
Documentation:
Ruby:
Go:
{ | |
"name": "Rollbar", | |
"version": "1.0", | |
"description": "Make the list of items in Rollbar wider.", | |
"content_scripts": [ | |
{ | |
"matches": ["https://rollbar.com/*"], | |
"css": ["rollbar.css"] | |
} | |
], |
#!/usr/bin/env ruby | |
# https://tools.ietf.org/html/rfc4408#section-10.1 | |
# SPF implementations MUST limit the number of mechanisms and modifiers | |
# that do DNS lookups to at most 10 per SPF check, including any | |
# lookups caused by the use of the "include" mechanism or the | |
# "redirect" modifier. If this number is exceeded during a check, a | |
# PermError MUST be returned. The "include", "a", "mx", "ptr", and | |
# "exists" mechanisms as well as the "redirect" modifier do count | |
# against this limit. The "all", "ip4", and "ip6" mechanisms do not |
#!/bin/bash | |
# Put this file in C:\ and then run z-register.bat by right clicking it and using "Run as Administrator" | |
# Translate the windows path to the equivalent Bash on Windows path, then run it! | |
drive="${1:0:1}" | |
path="${1:2}" | |
dir=$(dirname "/mnt/${drive,,}${path//\\/\/}") | |
cd "$dir" | |
"/mnt/${drive,,}${path//\\/\/}" |
<!-- https://gist.github.com/stefansundin/f0ad99195333480157ce67e97c8d28c7 | |
UPDATE: | |
This is not actually necessary, as you can use the following commands to allow nginx to bind to privileged ports: | |
$ sudo chown root:wheel /usr/local/opt/nginx/bin/nginx | |
$ sudo chmod u+s /usr/local/opt/nginx/bin/nginx | |
*.dat | |
*.png | |
*.txt | |
pcsensor-temper |