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 / 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 / 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 / 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 / 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.net
Created November 6, 2022 13:52
/etc/issue.net warning messege to be shown when attempting to connect over SSH
┌────────────────────────────────────────────────────────────────────────┐
│ ██ ██ ██ ███████ ████ ██ ██ ████ ██ ████████ │
│░██ ░██ ████ ░██░░░░██ ░██░██ ░██░██░██░██ ░██ ██░░░░░░██│
│░██ █ ░██ ██░░██ ░██ ░██ ░██░░██ ░██░██░██░░██ ░██ ██ ░░ │
│░██ ███ ░██ ██ ░░██ ░███████ ░██ ░░██ ░██░██░██ ░░██ ░██░██ │
│░██ ██░██░██ ██████████░██░░░██ ░██ ░░██░██░██░██ ░░██░██░██ █████│
│░████ ░░████░██░░░░░░██░██ ░░██ ░██ ░░████░██░██ ░░████░░██ ░░░░██│
│░██░ ░░░██░██ ░██░██ ░░██░██ ░░███░██░██ ░░███ ░░████████ │
│░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░░ ░░ ░░ ░░░ ░░░░░░░░ │
┌──────────────────────┴────────────────────────────────────────────────────────────────────────┴──────────────────────────────┐
@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 / 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 / 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 / rsync-remote-server.sh
Last active March 6, 2023 21:58
bash function to backup a remote server with rsync
#!/bin/env bash
###
#
# Here's what the function does:
#
# Defines variables for the remote server's username, hostname, directory to be backed up, and the local directory where the backup will be stored.
#
# It also defines a variable for the path to a file containing any files or directories to be excluded from the backup.
#
@ConnerWill
ConnerWill / Jira-Dark-Theme.user.js
Created April 13, 2023 20:49
Dark Mode Theme For Jira/Bitbucket
// ==UserScript==
// @name Jira Dark Theme
// @version 1.0.0
// @description Dark Theme For Jira
// @author @ConnerWill
// @include *ENTER-URL-HERE*
// @icon https://www.google.com/s2/favicons?sz=64&domain=atlassian.net
// @grant GM_addStyle
// @run-at document-start
// ==/UserScript==