Skip to content

Instantly share code, notes, and snippets.

View mikebronner's full-sized avatar
🖥️
Scrum of the earth.

Mike Bronner mikebronner

🖥️
Scrum of the earth.
View GitHub Profile
# Generated by Powerlevel10k configuration wizard on 2024-05-11 at 06:01 MST.
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 4242.
# Wizard options: nerdfont-complete + powerline, small icons, unicode, lean, 24h time,
# 2 lines, dotted, full frame, darkest-ornaments, sparse, many icons, fluent,
# instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with lean prompt style. Type `p10k configure` to generate
# your own config based on it.
#
@mikebronner
mikebronner / custom.css
Last active September 18, 2024 15:14
Custom CSS for to style VSCode for Laravel.
* {
outline: none !important;
}
/* find widget */
.editor-widget {
border-radius: 6px !important;
box-shadow: 0 0px 8px rgba(var(--vscode-widget-shadow), .45) !important;
}
@mikebronner
mikebronner / unifi-ap-setup.md
Last active December 31, 2021 18:52
Ubiquity Unifi Wifi / AP Settings

Classic Console

Devices

Hardwired Main AP

Config

Radios
2Ghz
  • Channel Width: VHT20
  • Channel: (choose channel with least interference, one of 1, 6 11)
  • Transmit Power: Custom 10dBm
  • Enable Minimum RSSI: Off
@mikebronner
mikebronner / checkHaveIBeenPwned.sh
Last active March 25, 2019 20:51
Check a file with a list of email addresses (one email address per line) to see if you have been owned, and save the results in a file.
#!/bin/bash
while read
do
addy=$(tr -d '\r' <<< "$REPLY")
response=$(curl --silent https://haveibeenpwned.com/api/v2/breachedaccount/$addy?$
echo "$addy,'$response'"
sleep 2
done < membership.log
@mikebronner
mikebronner / check_cron.sh
Created February 27, 2019 21:22
Check long-running cron jobs.
#!/bin/bash
grep ' [0-9][0-9]:[0-9][0-9]:[1-9][0-9] web-1 .* END ' syslog | nano -
@mikebronner
mikebronner / install_imagick.sh
Last active May 28, 2019 19:46
Install Imagick in PHP 7.x
#!/bin/bash
apt update -y
apt install php-imagick -y
echo extension=imagick.so >> /etc/php/7.2/cli/php.ini
echo extension=imagick.so >> /etc/php/7.2/fpm/php.ini
service php7.2-fpm reload
@mikebronner
mikebronner / update_php_timeouts.sh
Created February 25, 2019 22:38
Fix PHP process_control_timeout and max_execution_time settings.
#!/bin/bash
set -e
MET_PATTERN='[[:space:]]*max_execution_time[[:space:]]*=[[:space:]]*'
PCT_PATTERN='[[:space:]]*process_control_timeout[[:space:]]*=[[:space:]]*'
VALUE=30
reload=0
@mikebronner
mikebronner / install_amplify.sh
Created February 21, 2019 00:28
Nginx Amplify Scripts
#!/bin/bash
if [ `id -u` -ne 0 ]
then
echo "You must be root!" >&2
exit 1
fi
amplify_api_key="$AMPLIFY_KEY"
db_password="$DATABASE_PASSWORD"
@mikebronner
mikebronner / cloudSettings
Last active November 8, 2018 20:18
Mike Bronner's VSCode Settings
{"lastUpload":"2018-11-08T20:18:00.502Z","extensionVersion":"v3.2.0"}