Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
# NOTICE: This project has been moved to its own repository https://github.com/ConnerWill/Convert-ImageToASCIIArt | |
function Convert-ImageToAsciiArt { | |
<# | |
.SYNOPSIS | |
Function to convert an image to ascii art. | |
.DESCRIPTION | |
The function Convert-ImageToAsciiArt takes an image file path and converts the image to ASCII art. | |
The ASCII art is created by replacing each pixel in the image with an ASCII character based on the brightness of the pixel. |
##: ============================================== | |
##: [ SSHD_CONFIG ] | |
##: ============================================== | |
##: Title: hardened-sshd_config | |
##: Path: /etc/ssh/sshd_config | |
##: Author: github.com/ConnerWill | |
##: Date: 2022-07-16 | |
##: | |
##: https://man.openbsd.org/sshd_config.5 | |
##: https://linux.die.net/man/5/sshd_config |
#!/usr/bin/env bash | |
die() { | |
echo "[-] Error: $1" >&2 | |
exit 1 | |
} | |
PROGRAM="${0##*/}" | |
ARGS=( "$@" ) | |
SELF="${BASH_SOURCE[0]}" |
#!/usr/bin/env bash | |
die() { | |
echo "[-] Error: $1" >&2 | |
exit 1 | |
} | |
PROGRAM="${0##*/}" | |
ARGS=( "$@" ) | |
SELF="${BASH_SOURCE[0]}" |
#!/usr/bin/env bash | |
while IFS= read -r line; do | |
git clone "https://github.com/${line}" | |
done <<< "$(gh repo list | cut -f1)" |
#!/bin/bash | |
## Function to simply pipe nginx logs to goaccess | |
function _goaccessnginx(){ | |
user_input="${1}" | |
[[ "${user_input}" == "html" ]] | |
// ==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== |
#!/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. | |
# |
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 { |