Prerequisites:
- MultiMC
- a UUID and username from https://namemc.com/username
Replace /home/user/.local/share/multimc/accounts.json
with this
{
"accounts": [
{
Prerequisites:
Replace /home/user/.local/share/multimc/accounts.json
with this
{
"accounts": [
{
fun main() { | |
val snowflake = 563138570953687061 // 2019-04-03T23:11:37.924Z | |
println(snowflake.toInstant().prettyFormat()) | |
} | |
/** | |
* @return an Epoch millisecond from a Discord Snowflake | |
* [offset] defaults to the first millisecond of 2015, or a "Discord Epoch" | |
*/ |
mkdir -p ~/.local/bin
wget -O ~/.local/bin/genpasswd https://gist.githubusercontent.com/5HT2/30f98284e9f92e1b47b4df6e05a063fc/raw/9b5479444845c9866a227a0bdef31dc116a546df/genpasswd.sh
chmod +x ~/.local/bin/genpasswd
# Please make sure that ~/.local/bin is in your $PATH
echo "$PATH" | tr ':' '\n'
#!/bin/bash | |
# This script runs all .sh files, excluding itself, in the directory it's run in. | |
# Get name of self script. Only works when running in current dir, doesn't work with symlinks. I'm lazy. | |
SELF="$(basename "$0")" | |
for file in *.sh; do | |
# Check if script is not self, and is a file | |
if [[ "$file" != "$SELF" ]] && [[ -f "$file" ]]; then | |
# Check if script is not executable |
class Terraform < Formula | |
desc "Tool to build, change, and version infrastructure" | |
homepage "https://www.terraform.io/" | |
url "https://github.com/hashicorp/terraform/archive/refs/tags/v1.7.1.tar.gz" | |
sha256 "6a43ee1aeb3cd96e6407f746bea13572d98c01624c77a2e467628744ea8b7925" | |
license "BUSL-1.1" | |
head "https://github.com/hashicorp/terraform.git", branch: "main" | |
# TODO: Remove this if/when the formula is deprecated. | |
livecheck do |
This CSV was generated using arktiv/table-csv-chrome, and cleaned up using the following command:
cat sentinel-exit-code.csv | tr -d $'\x0d' | tr -d $'\xc2' | tr -d $'\xef' | tr -d $'\xbb' | tr -d $'\xbf' > sentinel-exit-code-conv.csv
You can find the relevant documentation at the following link:
https://[instance subdomain].sentinelone.net/docs/en/return-codes-after-installing-or-updating-windows-agents.html##
dump-pdfs-recent () { | |
local loc="$(whence -p fd)" || return $? | |
local arg=(-j 16 -u -e pdf --changed-within) | |
local arq=(-q -1) | |
local acw="$1" | |
if (( ! ${#acw} )); then | |
print "Usage: dump-pdfs-recent [time (3m | 1h)] [fd args]..." | |
return 64 | |
fi |