A common and reliable pattern in service unit files is thus:
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
const dpapi = require("win-dpapi") | |
const sqlite3 = require("sqlite3") | |
const os = require("os") | |
const fs = require("fs") | |
const crypto = require("crypto") | |
const path = | |
os.homedir() + `\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Cookies` | |
db = new sqlite3.Database(path) |
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
exiftool -gps:all= -r -ext heic . |
# Count: find . -type f -size -50c -printf 1 | wc -c | |
# `b' for 512-byte blocks (this is the default if no suffix is used) | |
# `c' for bytes | |
# `w' for two-byte words | |
# `k' for Kilobytes (units of 1024 bytes) | |
# `M' for Megabytes (units of 1048576 bytes) | |
# `G' for Gigabytes (units of 1073741824 bytes) | |
find . -type f -size -50c -delete |
This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x
The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/
openssl genpkey -algorithm ed25519 -out private.pem | |
openssl pkey -in private.pem -pubout |
# Install locales-all package | |
sudo apt-get install -y locales-all | |
# Set environment variables | |
export LANGUAGE=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
# Generate en_US.UTF-8 | |
sudo locale-gen en_US.UTF-8 |
# Get the public key (only if the public key is not yet in your keychain) | |
gpg --card-edit | |
fetch | |
quit | |
# Create a stub for the secret key in your keychain | |
gpg --card-status | |
# Use the (secret) key as if it was in your keychain |
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |