Skip to content

Instantly share code, notes, and snippets.

View ConnerWill's full-sized avatar
👽
These pretzels are making me thirsty

ConnerWill

👽
These pretzels are making me thirsty
View GitHub Profile
@ConnerWill
ConnerWill / nginx-logstalgia.sh
Created November 5, 2022 23:41
Script to visually view nginx logs using logstakgia
#!/bin/bash
# shellcheck disable=2034,2046,2086
function nginx-logstalgia(){
local log_dir log_path output_dir output_path \
title currentdate updaterate simulationspeed \
glowintensity glowmultiplier glowduration \
SaveToVideo pitchspeed addressmaxdepth \
pathmaxdepth addressabbrdepth pathabbrdepth \
outputframerate fromdate todate paddlemode \
@ConnerWill
ConnerWill / issue-rainbow
Created November 5, 2022 16:02
Colorful and Fancy /etc/issue file
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
║██████████████████████████████████████████║╭────────────────────────╮
║██████████████████████████████████████████║│ \e{gray}Host:\e{reset} \e{lightgreen}\e{bold}\n\e{reset}
║█████████████████[0;1;3
@ConnerWill
ConnerWill / Get-WifiPasswords.ps1
Last active March 6, 2023 19:59
PowerShell function to get passwords from all saved WiFi networks
function Get-WifiPasswords {
# Get the list of Wi-Fi profiles and store it in a variable.
$profiles = netsh wlan show profiles
# For each line in the list of profiles, extract the profile name.
# Then, for each profile name, get the profile information, which includes the password.
# Finally, create a custom object with the SSID and password for each profile.
$wifiProfiles = $profiles |
Select-String -Pattern '\:(.+)$' |
ForEach-Object {
@ConnerWill
ConnerWill / bash_progress_bar.sh
Created September 3, 2022 02:29
Bash Progress Bar
#!/bin/env bash
### FUNCTION ###{{{
function bash_progress_bar(){
## Localize Variables ##{{{
local \
@ConnerWill
ConnerWill / bash_traps.md
Created September 3, 2022 00:30
Bash trap command explained

Bash Traps

Bash trap Options

The trap command accepts the following options:

-p : Displays signal commands.

-l

@ConnerWill
ConnerWill / gen-reponames-figlet.md
Created July 29, 2022 21:56
repo name in figlet fonts generator
gh repo list --visibility public  |grep ConnerWill/ | cut -f1 | cut -d/ -f2 |  xargs -I{} figlet -f wideterm {} | sort

AutoHotKey-Script-Pack

CAPshift

ConnerWill

CopyAddVPNCommand

@ConnerWill
ConnerWill / gh-gist-clone-pretty.md
Last active July 19, 2022 00:00
Clone GitHub Gists to folders named after the gist ... NOT THE HASH OF THE GIST ! :):(

Cloning this script with this script

  [dampsock@localhost] $ gh-gist-clone-pretty "e9e3a3902474ff4938c95a9c0c3d5bf1"
    Cloning into 'gh-gist-clone-pretty.sh'...
    remote: Enumerating objects: 3, done.
    remote: Counting objects: 100% (3/3), done.
    remote: Compressing objects: 100% (3/3), done.
    remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
    Receiving objects: 100% (3/3), done.
@ConnerWill
ConnerWill / yay-search-pkg-array.sh
Last active July 18, 2022 23:34
Search for packages and return formatted names and descriptions: to be used to feed into fzf :):(
#!/bin/bash
##############################################################################:
##############################################################################:
##:
##:
####: DEFINE_CHAR_VARIABLES
##: {{{ DEFINE_CHAR_VARIABLES
_thin_line_sep="---------------------------------------------------"
@ConnerWill
ConnerWill / pkg
Last active July 18, 2022 18:08
'pkg' package manager wrapper for both Debian and Arch distros. (now in color! and with fzf!!!)
#!/data/data/com.termux/files/usr/bin/bash
set -eu
# Setup TERMUX_APP_PACKAGE_MANAGER
source "/data/data/com.termux/files/usr/bin/termux-setup-package-manager" || exit 1
show_help() {
local cache_size
local cache_dir=""
if [ "$TERMUX_APP_PACKAGE_MANAGER" = "apt" ]; then
@ConnerWill
ConnerWill / entities.json
Last active July 21, 2022 02:14
Unicode symbols are Unicode characters which are not part of a script used to write a natural language, but is nonetheless available for use as part of a text.
{
"&AElig": { "codepoints": [198], "characters": "\u00C6" },
"Æ": { "codepoints": [198], "characters": "\u00C6" },
"&AMP": { "codepoints": [38], "characters": "\u0026" },
"&": { "codepoints": [38], "characters": "\u0026" },
"&Aacute": { "codepoints": [193], "characters": "\u00C1" },
"Á": { "codepoints": [193], "characters": "\u00C1" },
"Ă": { "codepoints": [258], "characters": "\u0102" },
"&Acirc": { "codepoints": [194], "characters": "\u00C2" },
"Â": { "codepoints": [194], "characters": "\u00C2" },