Skip to content

Instantly share code, notes, and snippets.

View MGMAdvance's full-sized avatar
🇧🇷

Matheus Gonçalves MGMAdvance

🇧🇷
View GitHub Profile
#!/bin/bash
## Removendo travas eventuais do apt ##
sudo rm /var/lib/dpkg/lock-frontend ; sudo rm /var/cache/apt/archives/lock ;
## Atualizando o repositório ##
sudo apt update && sudo apt upgrade -y ;
@MGMAdvance
MGMAdvance / cpu_gov.sh
Created May 5, 2020 22:55
CPU Governor Control
#!/bin/bash
if cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor | grep powersave
then
((indexG=0))
for indexGov in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
do
echo performance > "/sys/devices/system/cpu/cpu${indexG}/cpufreq/scaling_governor";
((indexG++))
done
@MGMAdvance
MGMAdvance / startMountDrive.sh
Last active March 18, 2020 00:46
Rclone start script
echo "Inicializando Google Drive..."
notify-send "Inicializando Google Drive..."
rclone mount gdrive: ./gdrive/mydrive --daemon --vfs-cache-max-size 15000M --vfs-cache-mode full
echo "Google Drive montado!"
notify-send "Google Drive montado!"
echo "\nInicializando Google Drive (Shared with me)..."
notify-send "Inicializando Google Drive (Shared with me)..."
@MGMAdvance
MGMAdvance / COMPILE.sh
Last active February 26, 2020 12:30
A Shell script for compile my C++ files and save in outputs
#!/bin/bash
while true;
do
clear
for i in ./*/*.cpp; do \
if [ -f ./output/`basename $i .cpp` ]
then
g++ $i -o ./output/`basename $i .cpp`; \
@MGMAdvance
MGMAdvance / cloudSettings
Last active May 2, 2020 17:00
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-05-02T17:00:27.428Z","extensionVersion":"v3.4.3"}
@MGMAdvance
MGMAdvance / Package Control.sublime-settings
Last active October 27, 2017 00:12
Plugins para Sublime Text 3
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"AutoFileName",
"Autoprefixer",
"Better CoffeeScript",