Skip to content

Instantly share code, notes, and snippets.

@williamjacksn
williamjacksn / passwordless-sudo
Last active July 15, 2022 12:47
The correct `sudoers` syntax for using `sudo` without a password.
# /etc/sudoers.d/william
william ALL = NOPASSWD: ALL
@williamjacksn
williamjacksn / prompt.sh
Created December 3, 2019 14:41
Bash prompt
# /etc/profile.d/prompt.sh
PS1="\n\[\033[1;35m\]\u\[\033[0m\] at \[\033[1;33m\]\h\[\033[0m\] in \[\033[1;36m\]\w\[\033[0m\]\n» "
@williamjacksn
williamjacksn / alias-resume.sh
Last active October 28, 2020 15:11
"resume" for tmux
# /etc/profile.d/alias-resume.sh
alias resume="tmux -u new-session -A -s default"
@williamjacksn
williamjacksn / get-random-words.sh
Last active August 16, 2021 13:19
Get random words from dictionary file, great for creating passwords
#!/bin/sh
# Install a dictionary file on Ubuntu like so
# sudo apt install wamerican
# ignore words with an apostrophe, then choose 10 at random
grep --fixed-strings --invert-match \' /usr/share/dict/words | shuf --head-count=10
@williamjacksn
williamjacksn / irc_bot.py
Created January 31, 2018 19:55
Class-based IRC bot
import socket
# change these
HOST = 'irc.undernet.org'
PORT = 6667
NICK = 'rex'
CHAN = '#dashin'
ADMIN = 'Humphrey'
@williamjacksn
williamjacksn / irc_bot.py
Last active January 29, 2018 15:52
An IRC bot that is as simple as possible, but not simpler
import socket
# change these
HOST = 'irc.undernet.org'
PORT = 6667
NICK = 'rex'
CHAN = '#dashin'
# this is the function I will use when I want to send a message to the IRC server

Keybase proof

I hereby claim:

  • I am williamjacksn on github.
  • I am williamjackson (https://keybase.io/williamjackson) on keybase.
  • I have a public key whose fingerprint is F968 C26E 41B9 8E4B D496 C8BA EAF6 DF7E F047 FB8B

To claim this, I am signing this object:

<head>
<title>SCCM Operating System Deployment</title>
<hta:application
id="sccmosd"
applicationname="SCCM Operating System Deployment"
scroll="yes"
singleinstance="yes">
<style type="text/css">
body {
@williamjacksn
williamjacksn / find public properties in msi file
Last active August 29, 2015 14:17
Find possible public properties used in an MSI file
.
@williamjacksn
williamjacksn / .gitignore
Last active June 28, 2019 14:46
The Machine Stops, by E. M. Forster
.idea