Skip to content

Instantly share code, notes, and snippets.

View GussRw's full-sized avatar
🚜
Working from office

Guss Rw GussRw

🚜
Working from office
View GitHub Profile
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Search /v BingSearchEnabled /t REG_DWORD /d 0
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Search /v CortanaConsent /t REG_DWORD /d 0
[boot]
systemd=true
[user]
default=guss
[interop]
appendWindowsPath = false
[wsl2]
localhostForwarding=true
@GussRw
GussRw / main.dart
Last active July 21, 2023 00:31
primal-branch-3015
abstract class Model {
}
class ServicioBase<T extends Model> {
String base_url = 'https://cceo.io';
String uri;
ServicioBase(this.uri);
void post() {
@GussRw
GussRw / install-all-on-debian.sh
Last active October 10, 2022 20:48
Install all on Debian
sudo apt install -f
sudo add-apt-repository -y ppa:ondrej/php
sudo apt -y install fonts-liberation libappindicator3-1
sudo apt -y install libc++1 ibpng-dev
sudo apt -y install php7.4 composer
sudo apt -y install php7.4-curl php7.4-zip php7.4-mysql php7.4-mbstring php7.4-xml php7.4-gd php7.4-curl php7.4-intl php7.4-dom php7.4-xml
sudo apt -y install php8.1 libapache2-mod-php8.1 composer
sudo apt -y install php8.1-curl php8.1-zip php8.1-mysql php8.1-mbstring php8.1-xml php8.1-gd php8.1-curl php8.1-intl php8.1-dom php8.1-xml
sudo apt -y install mysql-server
@GussRw
GussRw / install-all-on-debian.sh
Created October 10, 2022 19:43
Install all on Debian
sudo apt install -f
sudo add-apt-repository -y ppa:ondrej/php
sudo apt -y install fonts-liberation libappindicator3-1
sudo apt -y install libc++1
sudo apt -y install php7.4 composer
sudo apt -y install php7.4-curl php7.4-zip php7.4-mysql php7.4-mbstring php7.4-xml php7.4-gd php7.4-curl php7.4-intl php7.4-dom php7.4-xml
sudo apt -y install php8.1 libapache2-mod-php8.1 composer
sudo apt -y install php8.1-curl php8.1-zip php8.1-mysql php8.1-mbstring php8.1-xml php8.1-gd php8.1-curl php8.1-intl php8.1-dom php8.1-xml
sudo apt -y install mysql-server
@GussRw
GussRw / project-permissions.sh
Last active April 17, 2024 17:39
Project Permissions
if [ -z "$1" ]
then
echo "No group argument supplied"
exit
fi
if [ -z "$2" ]
then
echo "No project folder argument supplied"
exit
fi
@GussRw
GussRw / help-commands.md
Last active December 21, 2021 14:50
Help commands
Check port 25 for send emails to gmail

traceroute -n -T -p 25 gmail-smtp-in.l.google.com

Memory usage

df -h

Folder size

du -sh /var

CPU usage
@GussRw
GussRw / update-firewall.sh
Last active October 17, 2023 20:57
Update Firewall With Log
# shellcheck disable=SC2006
# shellcheck disable=SC2013
warning=`tput setaf 1`
success=`tput setaf 2`
default=`tput sgr0`
grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' /var/log/auth.log | sort -u > /tmp/failed-unique-ips.log
current_ips=$(ufw status);
@GussRw
GussRw / MyFedoraSetup.md
Last active January 25, 2021 18:16
My Fedora Setup

My Fedora Setup

Google Chrome

Download

sudo dnf install liberation-fonts
sudo rpm -i google-chrome-stable_current_x86_64.rpm 

Discord

@GussRw
GussRw / MyDebianSetup.md
Last active May 25, 2024 00:54
My Debian Setup

My Debian Setup

Google Chrome

sudo apt install fonts-liberation libappindicator3-1
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt install -f