Skip to content

Instantly share code, notes, and snippets.

@markstinson
markstinson / web-servers.md
Created February 18, 2019 23:10 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@markstinson
markstinson / raspi-config.txt
Last active August 20, 2022 16:55 — forked from damoclark/raspi-config.txt
Simple Raspbian Configuration Tool. Add file to boot partition of SD Card and run single command after booting Raspbian.
#/bin/sh
#
# Don't change the following lines unless you know what you are doing
# They execute the config options starting with 'do_' below
grep -E -v -e '^\s*#' -e '^\s*$' <<END | \
sed -e 's/$//' -e 's/^\s*/\/usr\/bin\/raspi-config nonint /' | bash -x -
#
############# INSTRUCTIONS ###########
#
# Change following options starting with 'do_' to suit your configuration

How to install Homebrew package manager on Steam Deck

You can install Homebrew (a package manager for macOS and Linux) without disabling the read-only partition with sudo steamos-readonly disable.
The package manager can be used alongside Flatpaks. Some software is only available on Flathub, and some software is only available on Homebrew.

  1. Switch to desktop mode (hold power button until a menu appears, then select "Switch to desktop mode")
  2. Click the logo at the bottom left, go to System, then go to Konsole
  3. Set a password (needed for sudo access):
    passwd
@markstinson
markstinson / mkgitrepo.sh
Last active August 22, 2022 16:01
Personal ssh+git repository -- no gitolite3, gitea, gogs, gitlab -- just the minimal
#!/usr/bin/env bash
# I call this script ~/bin/mkgitrepo.sh
# You could make a git:git if desired -- gitolite3 without management.
# Make sure your SSH Keys are set as necessary.
# If you want a differnt set of keys just for git, make sure the
# pub keys are added/removed from your ~/.ssh/authorized_keys
my_new_repo="${1}"