Skip to content

Instantly share code, notes, and snippets.

@zenware
zenware / boxstarter.ps1
Last active April 24, 2024 21:45
Windows Quick Setup
# NOTE: Worst-Case Scenario I should be able to include the command to setup Chocolatey
# and the command to setup boxstarter at the top of this script
# And then provide a "download and run this script command"
# (Get-Host).Version
# (Get-WmiObject -Query 'SELECT * FROM Win32_OperatingSystem').Version
# Temporary Setup
Disable-UAC
Disable-MicrosoftUpdate
# More Permanent Setup -- https://boxstarter.org/WinConfig
@zenware
zenware / 0_resume_tips.md
Last active October 5, 2023 01:32
Information mostly gathered from [talent.works](https://web.archive.org/web/20201111191543/https://talent.works/) (now-defunct) it may be worth reading through there as these notes are essentially a summary of that content.

Resume Tips

Resumes between 475-600 words have a higher interview rate with a sharp cliff on either end. -- Try to fit it all on one page, 2 pages max.

Have enough keywords to match ~50% of the job requirements, but don't overdo it.

No Objective Section (Unless you're wanting it to take place of a cover letter)

Every 3 sentences, use at least 1 number to demonstrate concrete impact Hovering around 20% of the content having numbers

// Attempt to melodify the following regex:
<start>;
any of <whitespace>;
option of capture scope {
either {
"_G.";
capture {
"local";
#!/bin/sh
# The line above this one basically just indicates that the file is a shell script.
# This script renews all the Let's Encrypt certificates with a validity < 30 days
# This first line is a conditional block it tries to run the program at
# `/opt/letsencrypt/letsencrypt-auto` with the command `renew`
# Earlier in the guide the letsencrypt binaries were installed to opt
# `sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt`
# The `!` at the beginning is a boolean conditional negation operator and in this
ansible-doc -vvv --list cisco.ios.ios_facts
ansible-doc 2.10.2
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/jml/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/jml/.local/lib/python3.6/site-packages/ansible
executable location = /home/jml/.local/bin/ansible-doc
python version = 3.6.9 (default, Oct 8 2020, 12:12:24) [GCC 8.4.0]
Using /etc/ansible/ansible.cfg as config file
ERROR! Unexpected Exception, this is probably a bug: too many values to unpack (expected 2)
The MIT License (MIT)
Copyright © 2020 zenware
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWAR
@zenware
zenware / brickerbot.py
Last active August 31, 2020 04:59
https://www.snip2code.com/Snippet/3200170/Brickerbot-(http-telnet)-by-Dr-Cyborkian/ -- Brickerbot (http/telnet) by Dr Cyborkian/janit0r: mod_plaintext.py
if 82 - 82: i1 / Ii11i1iIi - i1IIi1i1iiI
if 84 - 84: IIiIii1iI . Ii % oOoO0Ooo / O0oo / O0oo0OOOOO00
if 49 - 49: o0oooooO / Ii11i1iIi * O0oo
if 21 - 21: Oooo - I11I1Ii
if 39 - 39: i1 . i1IIi1i1iiI - OOOoOooO / o0ooO
if 95 - 95: IIiII - Ii11i1iIi / O0oo0OOOOO00 + o0oooooO
time . sleep ( 3 )
if 20 - 20: Oo0
if 57 - 57: O0oo0OOOOO00 . Oo0 + IIiIii1iI * OOOoOooO . o0ooO * i1
if 93 - 93: Ii11i1iIi - Oo0Oo . Oooo . oOoO0Ooo * IIiII % i1
{
"name": "Philips hue",
"zigbeechannel": 20,
"bridgeid": "001788FFFE4EE000",
"mac": "00:17:88:4e:e0:00",
"dhcp": true,
"ipaddress": "192.168.0.112",
"netmask": "255.255.255.0",
"gateway": "192.168.0.1",
"proxyaddress": "none",
if 82 - 82: i1 / Ii11i1iIi - i1IIi1i1iiI
if 84 - 84: IIiIii1iI . Ii % oOoO0Ooo / O0oo / O0oo0OOOOO00
if 49 - 49: o0oooooO / Ii11i1iIi * O0oo
if 21 - 21: Oooo - I11I1Ii
if 39 - 39: i1 . i1IIi1i1iiI - OOOoOooO / o0ooO
if 95 - 95: IIiII - Ii11i1iIi / O0oo0OOOOO00 + o0oooooO
time . sleep ( 3 )
if 20 - 20: Oo0
if 57 - 57: O0oo0OOOOO00 . Oo0 + IIiIii1iI * OOOoOooO . o0ooO * i1
if 93 - 93: Ii11i1iIi - Oo0Oo . Oooo . oOoO0Ooo * IIiII % i1
@zenware
zenware / organize_files.sh
Last active August 5, 2019 14:27
Organizes Items in my ~/Downloads Directory into their proper locations. Also works in pretty much any shell, I wrote a separate script to test it against all the shells I had installed at the time, in debug mode. I probably should have uploaded that as well.
#!/bin/bash
usage () {
echo >&2 "Usage: $0 [-f orce] [-v erbose] [-i nteractive]"
exit 1
}
confirm () {
# Maybe add Default Y or N, and perhaps switch to using select...
read -r -p "${1:-Are you sure? [y/N]} " response