Skip to content

Instantly share code, notes, and snippets.

View markthomas93's full-sized avatar
:shipit:
Working from home

Mark Thomas markthomas93

:shipit:
Working from home
  • freelance
  • California
View GitHub Profile
@EnigmaCurry
EnigmaCurry / README.md
Last active February 25, 2024 02:33
Proxmox install log on bare metal

Proxmox install log on Bare Metal

Assumptions

  • 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.
@mikowl
mikowl / oneliners.js
Last active September 24, 2025 19:23
👑 Awesome one-liners you might find useful while coding.
// 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);
@alter2000
alter2000 / btrfs-chsheet.md
Last active September 29, 2023 21:02
Btrfs workshop OSCAL 2019

Hello there

I've prepared this in case I get sick or just too lazy to speak during the workshop, so that you won't be left high and dry.

If you've worked before with LVM/ZFS

Here's a table comparing terms:

| Human | Btrfs | LVM | ZFS |

@townie
townie / interesting_3_letter_words.py
Last active May 4, 2021 00:26
get all permutations of 3 letters
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
@Lykos153
Lykos153 / cdm_fio.sh
Last active June 18, 2022 04:08 — forked from i3v/cdm_fio.sh
Reproducing CrystalDiskMark tests with fio - fixes for https://unix.stackexchange.com/revisions/480191/9
#!/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
@i3v
i3v / cdm_fio.sh
Last active May 15, 2024 13:10
Reproducing CrystalDiskMark tests with fio - fixes for https://unix.stackexchange.com/revisions/480191/9
#!/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
@christopheranderton
christopheranderton / digging-into-wondershare-notes.md
Last active August 31, 2025 11:09
Scratchpad/Notes for digging into the shady business of Wondershare. Not complete (it's a scratchpad after all!)

NOTEPAD : Digging into Wondershare

[See the Host entries at the end of the document]


http://en.0430.com/cn/web86683/

Sharer:	wadmin00126	Category:	software companies

Score: (59) PR: PR:PR:4

@psyhomb
psyhomb / README.md
Last active February 9, 2020 01:53
Poor man's VPN with SSHuttle

SSHuttle

Configuration

Install sshuttle (MacOS)

brew install sshuttle
@cdcme
cdcme / pcurl.sh
Last active December 27, 2018 10:08
Using GNU Parallel with cUrl
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\"
}'"
@luzfcb
luzfcb / installing_pyenv_on_ubuntu_based_distros.md
Last active April 18, 2025 22:04
Quick install pyenv and Python

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. :-)

Ubuntu

# DO NOT RUN THIS AS A ROOT USER