- Make sure you have a modern-ish version of Node.js installed.
- Type
npx https://gist.github.com/kfox/1280c2f0ee8324067dba15300e0f2fd3 - Connect to it from a client, e.g.
netcator similar:nc localhost 9000
| # Kernel sysctl configuration file for Red Hat Linux | |
| # | |
| # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and | |
| # sysctl.conf(5) for more details. | |
| # Controls source route verification | |
| net.ipv4.conf.default.rp_filter = 1 | |
| # Do not accept source routing | |
| net.ipv4.conf.default.accept_source_route = 0 |
| var net = require("net"); | |
| process.on("uncaughtException", function(error) { | |
| console.error(error); | |
| }); | |
| if (process.argv.length != 5) { | |
| console.log("usage: %s <localport> <remotehost> <remoteport>", process.argv[1]); | |
| process.exit(); | |
| } |
- Replace
raw c64 character setwith the file name of your raw binary Commodore 64 character set. - Paste the results into the dialog for the "import raw byte stream" prompt on the PETSCII Editor site by Krisztián Tóth.
cat "raw c64 character set" | \
od -v -j 2 -t xC | \
sed \
-e 's/^.......//g' \These instructions will enable you to use different SSH keys for different accounts across different Source Code Management (SCM) providers like GitHub, Gitlab, and others, including internal on-prem versions of those providers. You can also use this approach to switch between multiple accounts for a single SCM provider, e.g. a personal Github account and a work Github account.
-
Install
asdfby following the Getting Started instructions.asdfis the tool used to manage any number of versions of various programming language runtimes or environments. You can use asdf and the appropriate asdf plugins to replace separate tools likenvm,pyenv,rvm, etc. -
Install the
direnvplugin forasdfper these instructions. Direnv is the bit that "automagially"
| #!/usr/bin/env ruby | |
| # usage: saveimages.rb <url> | |
| # locally save all images from a web site | |
| require 'nokogiri' | |
| require 'open-uri' | |
| exit if ARGV[0].nil? |
| # in a git repo, compare your branch to another branch on github.com | |
| # and optionally create a pull request | |
| function gpr { | |
| local repo | |
| local branch | |
| local title | |
| repo=$(git ls-remote --get-url 2>/dev/null) | |
| branch=$(git branch --no-color --contains HEAD 2>/dev/null | awk '{ print $2 }') |
| eval $(xargs -0 -L1 -a /proc/1/environ | grep -E '^[A-Z].*' | sed -e 's/=/="/' -e 's/$/"/') |
| #!/usr/bin/env bash | |
| affirmative_response_to() { | |
| PROMPT=$* | |
| IFS= read -n 1 -s -p "${PROMPT}? [Y/n]: " answer | |
| if [ "${answer:-Y}" = "${answer#[Yy]}" ]; then | |
| # anything other than enter, Y, or y was pressed | |
| echo "NO" |