View prompt_password.js
const prompt = require('prompt) | |
async function promptPassword () { | |
prompt.start() | |
prompt.message = '' | |
prompt.delimiter = ':' | |
const { password } = await prompt.get({ | |
properties: { | |
password: { | |
message: 'password', |
View file_audit.sh
touch hello.txt | |
sudo auditd | |
sudo auditctl -w $PWD/hello.txt -p warx -k hello-file | |
echo 'hello world' > hello.txt | |
sudo ausearch -k hello-file |
View file_watch.sh
inotifywatch -v file.txt |
View bell.sh
afplay /System/Library/Sounds/Ping.aiff |
View fingerprint.sh
ssh-keygen -lf ~/.ssh/id_rsa.pub -E sha256 | |
# output: | |
# 3072 SHA256:dxQGxpXYbvfa6mk2I3XC17aT3jh6gbF7YPsOwusHGpU user@linux (RSA) |
View ImportJSON.gs
/** | |
* Imports JSON data to your spreadsheet | |
* @param url URL of your JSON data as string | |
* @param xpath simplified xpath as string | |
* @customfunction | |
*/ | |
function ImportJSON(url, xpath) { | |
try { | |
// /rates/EUR | |
var res = UrlFetchApp.fetch(url); |
View pass.txt
<username> | |
<password> |
View transmission.sh
yay -S transmission-cli | |
# start daemon with config overrides | |
transmission-daemon --auth --username arch --password linux --port 9091 --allowed "127.0.0.1,192.168.*.*" | |
# webui | |
open http://192.168.254.12:9091/transmission/web/ | |
# settings config | |
vim ~/.config/transmission-daemon/settings.json |
View notes.txt
Saddle finance | |
- https://saddle.exchange/ | |
- AMM for pegged tokens like bitcoin and stablecoins | |
- created by tBTC venture studio | |
- based on StableSwap curve whitepaper https://curve.fi/files/stableswap-paper.pdf |
View setup.sh
keybase pgp export | gpg --import | |
keybase pgp export --secret | gpg --allow-secret-key --import | |
gpg --list-secret-keys | |
gpg --edit-key <key-id> | |
> trust | |
> 5 (trust ultimately) | |
git config --global user.signingKey <key-id> | |
git config --global commit.gpgsign true | |
gpg --armor --export <key-id> |
NewerOlder