# Generate 8 random characters.
cat /proc/sys/kernel/random/uuid | cut -c 1-8
This file contains 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
#!/usr/bin/env python3 | |
import argparse | |
class CommandError(Exception): | |
pass | |
def main(args): |
This file contains 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
(function () { | |
const template = document.createElement("template"); | |
template.innerHTML = ` | |
<style> | |
span span { | |
background: yellow; | |
} | |
</style> | |
<span></span> |
This file contains 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
# `poetry export --without-hashes` output requirements to stdout | |
# `--without-hashes` is optional | |
# `git diff --exit-code -- requirements.txt -` | |
# `--exit-code` exit with 1 if there is a difference | |
# `requirements.txt -` diff the requirements file with stdin (output from poetry export) | |
poetry export --without-hashes | git diff --exit-code -- requirements.txt - |
This file contains 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
#!/usr/bin/env python3 | |
import argparse | |
def main(args): | |
print(args.foo) | |
if __name__ == "__main__": |
This file contains 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
sudo nmap -sn 192.168.1.0/24 | rg -B 2 Dell |
This file contains 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
function hideAllSponseredResults() { | |
// A little helper function to convert node lists returned from querySelector | |
// to a proper array so we can use methods like filter. | |
function toArray(nodeList) { | |
let array = [] | |
nodeList.forEach(node => array.push(node)) | |
return array | |
} | |
// Find all the results. |
This file contains 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
// Helper function to convert node lists returned by querySelectorAll to an array | |
// so that we can used methods like map and filter. | |
function toArray(nodeList) { | |
let array = [] | |
nodeList.forEach(node => array.push(node)) | |
return array | |
} | |
// Returns a text (like markdown) representation of a trello board. | |
function trelloBoardAsText() { |