- A single node proxmox v5.4-3 install
- Only one public IP address
- LXC/KVM for "pet" (development) containers
- Portainer / Docker for less stateful more automated use-cases
- My server's FQDN is
stardust.gtown.lan.rymcg.tech- use your own domain name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Inspired by https://twitter.com/coderitual/status/1112297299307384833 and https://tapajyoti-bose.medium.com/7-killer-one-liners-in-javascript-33db6798f5bf | |
| // Remove any duplicates from an array of primitives. | |
| const unique = [...new Set(arr)] | |
| // Sleep in async functions. Use: await sleep(2000). | |
| const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms))); | |
| // or | |
| const sleep = util.promisify(setTimeout); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import string | |
| import itertools | |
| all_3_raw = list(itertools.permutations([chr(i) for i in range(97, 123)], 3)) | |
| all_3 = [''.join(w) for w in all_3_raw] | |
| scrabble_3words_raw = 'aah aal aas aba abo abs aby ace act add ado ads adz aff aft aga age ago ags aha ahi ahs aid ail aim ain air ais ait ala alb ale all alp als alt ama ami amp amu ana and ane ani ant any ape apo app apt arb arc are arf ark arm ars art ash ask asp ate att auk ava ave avo awa awe awl awn axe aye ays azo baa bad bag bah bal bam ban bap bar bas bat bay bed bee beg bel ben bes bet bey bib bid big bin bio bis bit biz boa bob bod bog boo bop bos bot bow box boy bra bro brr bub bud bug bun bur bus but buy bye bys cab cad cam can cap car cat caw cay cee cel cep chi cig cis cob cod cog col con coo cop cor cos cot cow coy coz cru cry cub cud cue cup cur cut cwm dab dad dag dah dak dal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script is based on https://unix.stackexchange.com/revisions/480191/9 . | |
| # The following changes proved to be necessary to make it work on CentOS 7: | |
| # * removed disk info (model, size) - not very useful, might not work in many cases. | |
| # * using "bw" instead of "bw_bytes" to support fio version 3.1 (those availible through yum @base) | |
| # * escaping exclamation mark in sed command | |
| # * the ".fiomark.txt" is not auto-removed | |
| LOOPS=5 #How many times to run each test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script is based on https://unix.stackexchange.com/revisions/480191/9 . | |
| # The following changes proved to be necessary to make it work on CentOS 7: | |
| # * removed disk info (model, size) - not very useful, might not work in many cases. | |
| # * using "bw" instead of "bw_bytes" to support fio version 3.1 (those availible through yum @base) | |
| # * escaping exclamation mark in sed command | |
| # * the ".fiomark.txt" is not auto-removed | |
| LOOPS=5 #How many times to run each test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| seq 20 | parallel -n0 -j2 "curl -X "POST" "https://foo.bar.com/webhooks/doStuff" \ | |
| -H 'Accept: application/json' \ | |
| -H 'Content-Type: application/json' \ | |
| -H 'Authorization: Bearer FOOTOKEN' \ | |
| -d $'{ | |
| \"stripe_customer_id\": \"blah\", | |
| \"api_version\": \"2017-06-05\" | |
| }'" |
Tested only on Ubuntu 24.04, KDE Neon User Edition (based on Ubuntu 24.04) and OSX Mojave or higher.
will probably work on other newer versions, with no changes, or with few changes in non-python dependencies (apt-get packages)
NOTE: Don't create a .sh file and run it all at once. It may will not work. Copy, paste, and execute each command below manually. :-)
# DO NOT RUN THIS AS A ROOT USER