Skip to content

Instantly share code, notes, and snippets.

View oviniciusfeitosa's full-sized avatar
🧛

Vinícius Feitosa da Silva oviniciusfeitosa

🧛
View GitHub Profile
@oviniciusfeitosa
oviniciusfeitosa / Install bluez-firmware.sh
Last active March 13, 2021 13:23
Install bluez-firmware
# if you canno't install bluez-firmware
#
# Add the line below to ```/etc/apt/sources.list```
#
# deb http://ftp.de.debian.org/debian jessie main non-free
#sudo add-apt-repository ppa:snappy-dev/image
#sudo apt-get update
#sudo apt-get install bluez-firmware
@oviniciusfeitosa
oviniciusfeitosa / Equalizer for linux.sh
Created August 11, 2017 15:51
Equalizer for linux
sudo add-apt-repository ppa:nilarimogard/webupd8 -y && sudo apt-get update && sudo apt-get install pulseaudio-equalizer
@oviniciusfeitosa
oviniciusfeitosa / Utilizar VPN Somente para IPs definidos na lista de rotas de IP.md
Last active August 16, 2017 18:12
Utilizar VPN Somente para IPs definidos na lista de rotas de IP

Utilizar VPN Somente para IPs definidos na lista de rotas de IP

Configure a VPN :

  • Seleciona as configurações da sua VPN
  • Acesse o item IPv4
  • Selecione o item "Usar esta conexão apenas para recursos neta rede"

Verifique as rotas atualmente definidas

ip route show all
@oviniciusfeitosa
oviniciusfeitosa / Docker - Replacing Apache DocumentRoot using `sed`.md
Created September 12, 2017 22:02
Docker - Replacing Apache DocumentRoot using `sed`.
   ENV APACHE_DOCUMENT_ROOT /var/www/mapasculturais/src

   RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
   RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
@oviniciusfeitosa
oviniciusfeitosa / ubuntu_agnoster_install.md
Created September 17, 2017 05:38 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

@oviniciusfeitosa
oviniciusfeitosa / GIT fix commits without author old commits.sh
Last active October 18, 2017 19:02
GIT fix commits without author old commits
# Verificando commits errados sem e-mail e autor
$ git log
$ git filter-branch -f --env-filter '
WRONG_EMAIL="xxxxx"
WRONG_NAME="xxxxxxxxxx"
NEW_NAME="Vinícius Feitosa da Silva"
NEW_EMAIL="[email protected]"
if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ]
then

Commands

Exibir menu lateral: F3
Selecionar : v
Selecionar e Copiar : v + (selecionar texto) + y
Recortar : dd
Colar : p
Colar para Esquerda : P
Desfazer : u
Refazer : Ctrl + r
@oviniciusfeitosa
oviniciusfeitosa / GIT - merge project-a into project-b:
Created October 30, 2017 13:36
GIT - project-a into project-b:
If you want to merge project-a into project-b:
cd path/to/project-b
git remote add project-a path/to/project-a
git fetch project-a
git merge --allow-unrelated-histories project-a/master # or whichever branch you want to merge
git remote remove project-a
@oviniciusfeitosa
oviniciusfeitosa / check smtp port
Created October 30, 2017 17:13
check smtp port
Type the following command:
telnet example.com 25
If Port 25 is not blocked, you will get a successful 220 response (text may vary).
Trying 64.13.192.208...
Connected to example.com.
Escape character is '^]'.
220 cl34.gs01.gridserver.com ESMTP Exim 4.63 Tue, 24 Jun 2008 13:45:04 -0700
If Port 25 is blocked, you will get a connection error or no response at all.
Trying 64.13.192.208...
docker run --rm -v $(pwd):/app composer:1.5.1 install