Skip to content

Instantly share code, notes, and snippets.

View alexandre1985's full-sized avatar
🛂
It's a Control System when Condition is required 2 get something in or out of it

Daniel Santos alexandre1985

🛂
It's a Control System when Condition is required 2 get something in or out of it
View GitHub Profile
#
# ~/.bashrc
#
[[ $- != *i* ]] && return
parse_git_branch() {
/usr/bin/git branch 2> /dev/null | /usr/bin/sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
# Sexy Bash Prompt, inspired by "Extravagant Zsh Prompt"
# Screenshot: http://cloud.gf3.ca/M5rG
# A big thanks to \amethyst on Freenode
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM=gnome-256color
elif [[ $TERM != dumb ]] && infocmp xterm-256color >/dev/null 2>&1; then
export TERM=xterm-256color
fi
# Sexy Bash Prompt, inspired by "Extravagant Zsh Prompt"
# Screenshot: http://cloud.gf3.ca/M5rG
# A big thanks to \amethyst on Freenode
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM=gnome-256color
elif [[ $TERM != dumb ]] && infocmp xterm-256color >/dev/null 2>&1; then export TERM=xterm-256color
fi
if tput setaf 1 &> /dev/null; then
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
## XDG
### User Directories
export XDG_CONFIG_HOME=$HOME/.config
export XDG_CACHE_HOME=$HOME/.cache
export XDG_DATA_HOME=$HOME/.local/share
### System Directories
export XDG_DATA_DIRS="$HOME/.local/share:/usr/local/share:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share"
export XDG_CONFIG_DIRS=/etc/xdg
" ---------------------- USABILITY CONFIGURATION ----------------------
" Basic and pretty much needed settings to provide a solid base for
" source code editting
" don't make vim compatible with vi
set nocompatible
" turn on syntax highlighting
syntax on
" and show line numbers
# Sexy Bash Prompt, inspired by "Extravagant Zsh Prompt"
# Screenshot: http://cloud.gf3.ca/M5rG
# A big thanks to \amethyst on Freenode
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM=gnome-256color
elif [[ $TERM != dumb ]] && infocmp xterm-256color >/dev/null 2>&1; then
export TERM=xterm-256color
fi
http://www.youtube.com/watch?v=0j7mEsakUHQ&list=PLGYGe2PKknX2kydiv28aq8dBXBWeJfxgg&index=18
http://www.youtube.com/watch?v=zZnHD88e3HQ&list=PLGYGe2PKknX2kydiv28aq8dBXBWeJfxgg&index=19
http://www.youtube.com/watch?v=CF-c1K3WWg4&list=PLGYGe2PKknX2kydiv28aq8dBXBWeJfxgg&index=1
http://www.youtube.com/watch?v=ZB2KmOAK_E0&list=PLGYGe2PKknX2kydiv28aq8dBXBWeJfxgg&index=3
http://www.youtube.com/watch?v=xOz2cvHDDJc&list=PLGYGe2PKknX2kydiv28aq8dBXBWeJfxgg&index=4
http://www.youtube.com/watch?v=yUioIn8rPPM&list=PLGYGe2PKknX2kydiv28aq8dBXBWeJfxgg&index=9
http://www.youtube.com/watch?v=U-JRJPwDRNY&list=PLGYGe2PKknX2kydiv28aq8dBXBWeJfxgg&index=10
http://www.youtube.com/watch?v=I82PFHKgY2c&list=PLGYGe2PKknX2kydiv28aq8dBXBWeJfxgg&index=11
http://www.youtube.com/watch?v=0_USvdbYS1g&list=PLGYGe2PKknX2kydiv28aq8dBXBWeJfxgg&index=12
http://www.youtube.com/watch?v=dZjgk2J2vFw&list=PLGYGe2PKknX2kydiv28aq8dBXBWeJfxgg&index=13
@alexandre1985
alexandre1985 / user.js
Last active July 28, 2022 15:17
Firefox configurations file for good security (with my personal modification not to compromise user experience)
/******
* name: ghacks user.js
* date: 26 June 2019
* version 68-alpha: Knock on Pants
* "It's like thunder, lightning... the way you wear me is frightening"
* authors: v52+ github | v51- www.ghacks.net
* url: https://github.com/ghacksuserjs/ghacks-user.js
* license: MIT: https://github.com/ghacksuserjs/ghacks-user.js/blob/master/LICENSE.txt
* releases: These are end-of-stable-life-cycle legacy archives.
@alexandre1985
alexandre1985 / protonvpn.service
Last active August 20, 2019 21:31
My ProtonVPN service unit file (for Linux)
[Unit]
Description=ProtonVPN
After=syslog.target network-online.target
Wants=network-online.target
[Service]
Type=forking
ExecStart=/usr/bin/sudo /home/daniel/bin/protonvpn-cli -f
ExecStop=/usr/bin/sudo /home/daniel/bin/protonvpn-cli -d
ExecReload=/usr/bin/sudo /home/daniel/bin/protonvpn-cli -f