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
alias display_brightness='xrandr --output $(xrandr -q | grep " connected" | cut -d" " -f1) --brightness $1' |
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 bash | |
# Author: @11808s8 - Adriano | |
# Email: [email protected] | |
# Version: 1.1.0 - 07/04/2020 | |
# | |
# @TODO: Refactor this, breaking parts into modules | |
# and include more comments/User feedbacks | |
# | |
# @TODO: Remove hardcoded credentials |
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 | |
# | |
# Script for moving project generated files on the /tmp/ filesystem | |
# and put them into a web project folder in /var/www/ | |
# | |
# Its base usage grabs, recursively, files inside a | |
# /tmp/<type of project: api, crud, ...> folder and | |
# follows a structure of Controller, Model and Data Transfer Object, | |
# sending to the destiny folder maintaining the same structure | |
# |
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 | |
# Script to configure and the remote project updater | |
# Version 2.0.0 | |
# author: Adriano Gomes da Silva <[email protected]> | |
clear | |
_VERSIONING_FOLDER="remoteversions" | |
_PROJECT_FOLDER="<local web app folder>" |
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 | |
# Base script for remote project updating | |
# | |
# What it does? | |
# - Make a versioning folder, if you don't have one | |
# - Create a .txt file in the specified versioning folder with the current git HEAD | |
# that will be uploaded to the remote server | |
# - uses rsync to connect to the remote and update the files there | |
# |
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 | |
#Script to update a local GIT repo in case it isn't updated. | |
# | |
# Version 1.0.0 | |
# author: Adriano Gomes da Silva <[email protected]> | |
# | |
usage() { | |
cat << EOM |
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 | |
sudo kill $(sudo ss -lptn 'sport = :5432' | grep -o 'pid=[0-9]\+' | grep -o '[0-9]\+') |
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 | |
sudo rmmod i2c_hid && sudo modprobe i2c_hid |