# Forked from https://gist.github.com/gguerini
# Syntax edits by Sick Codes (GPLv3+)
# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Show remaining battery time; hide percentage
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt update | |
| sudo apt install certbot python3-certbot-apache | |
| sudo vim /etc/apache2/sites-available/your_domain.com.conf | |
| sudo apache2ctl configtest | |
| sudo systemctl reload apache2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Database Backup Script | |
| # This script performs MySQL database backups and uploads them to AWS S3 | |
| # Created: 2024 | |
| # | |
| # Prerequisites: | |
| # - MySQL/MariaDB installed | |
| # - AWS CLI configured with appropriate credentials | |
| # - Sufficient permissions on the backup directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "s3:ListBucket", | |
| "s3:GetObject", | |
| "s3:ListBucket", | |
| "s3:PutObject", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # | |
| # Nokia/Alcatel-Lucent router backup configuration tool | |
| # G2425 support added by rajkosto on 20/11/2022 | |
| # XS-2426G-B support added by rajkosto on 28/02/2023 | |
| # | |
| # Features: | |
| # - Unpack/repack .cfg files generated from the backup and restore functionnality |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Illuminate\Support\ServiceProvider; | |
| use Illuminate\Database\Eloquent\Builder; | |
| use Illuminate\Support\Arr; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| // ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This to be used when you need to implement SSL | |
| # Make sure that apache mod_ssl is on | |
| # You can generate self signed certificates for development | |
| # http://www.selfsignedcertificate.com/ | |
| <VirtualHost *:443> | |
| ServerName yourapp.test | |
| #ServerAlias www.yourapp.test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # !/bin/bash | |
| # shell script text colors | |
| BLACK='\033[0;30m' | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| BROWN='\033[0;33m' | |
| BLUE='\033[0;34m' | |
| PURPLE='\033[0;35m' | |
| CYAN='\033[0;36m' |
NewerOlder