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 / zsh-list-keybindings.zsh
Created November 26, 2022 22:56
List all current ZSH keybindings
# shellcheck disable=2148,2296,2154
zsh-list-keybindings(){
typeset -A Zcolors
# Regular Colors
Zcolors[Color_Off]=''
Zcolors[Black]=''
Zcolors[Red]=''
Zcolors[Green]=''
@ConnerWill
ConnerWill / Ctrl+Alt+Del_over_RDP.md
Created November 10, 2022 17:38
How to trigger a 'CTR + ALT + DEL' in an Windows Remote Desktop Protocol (RDP) session.

Press CTRL+ALT+DELETE in an RDP session

There are multiple ways to trigger CTR+ALT+DEL over an RDP session.


@ConnerWill
ConnerWill / issue.net
Created November 6, 2022 13:52
/etc/issue.net warning messege to be shown when attempting to connect over SSH
┌────────────────────────────────────────────────────────────────────────┐
│ ██ ██ ██ ███████ ████ ██ ██ ████ ██ ████████ │
│░██ ░██ ████ ░██░░░░██ ░██░██ ░██░██░██░██ ░██ ██░░░░░░██│
│░██ █ ░██ ██░░██ ░██ ░██ ░██░░██ ░██░██░██░░██ ░██ ██ ░░ │
│░██ ███ ░██ ██ ░░██ ░███████ ░██ ░░██ ░██░██░██ ░░██ ░██░██ │
│░██ ██░██░██ ██████████░██░░░██ ░██ ░░██░██░██░██ ░░██░██░██ █████│
│░████ ░░████░██░░░░░░██░██ ░░██ ░██ ░░████░██░██ ░░████░░██ ░░░░██│
│░██░ ░░░██░██ ░██░██ ░░██░██ ░░███░██░██ ░░███ ░░████████ │
│░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░░ ░░ ░░ ░░░ ░░░░░░░░ │
┌──────────────────────┴────────────────────────────────────────────────────────────────────────┴──────────────────────────────┐
@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 / 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 / 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" },
@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.