This file contains 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
## chercher les LS sur le serv | |
ls -Rl | grep ^- | wc -l | |
ls -l | grep ^- | wc -l | |
ls --file-type|grep @ | |
symlinks -v dossier | |
This file contains 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
################################################################################ | |
# ------------------------- | |
# BASH PROMPT CONFIGURATION | |
# ------------------------- | |
# Description: | |
# Shows a nicer bash prompt: | |
# ▶ 🖳 mypc ▶ documents ▶ ⎇ master ▶ 𝍠 ✔ | |
# -------- --------- ---------- --- ----- | |
# | | | | | | |
# hostname folder git branch jobs last command result |
This file contains 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
txtwht="\[\e[00m\]" # White | |
txtred="\[\e[0;31m\]" # Red | |
txtgrn="\[\e[0;32m\]" # Green | |
txtpur="\[\e[0;35m\]" # Purple | |
txtblu="\[\e[0;34m\]" # Blue | |
bldgrn="\[\e[1;32m\]" # Green | |
bldcyn="\[\e[1;36m\]" # Cyan | |
function parse_git_this_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' |
This file contains 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 | |
# This program is free software. It comes without any warranty, to | |
# the extent permitted by applicable law. You can redistribute it | |
# and/or modify it under the terms of the Do What The Fuck You Want | |
# To Public License, Version 2, as published by Sam Hocevar. See | |
# http://sam.zoy.org/wtfpl/COPYING for more details. | |
for fgbg in 38 48 ; do #Foreground/Background | |
for color in {0..256} ; do #Colors |
This file contains 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
for code in {0..255} | |
do echo -e "\e[38;5;${code}m"'\\e[38;5;'"$code"m"\e[0m" | |
done |
This file contains 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
for code in {30..37}; do \ | |
echo -en "\e[${code}m"'\\e['"$code"'m'"\e[0m"; \ | |
echo -en " \e[$code;1m"'\\e['"$code"';1m'"\e[0m"; \ | |
echo -en " \e[$code;3m"'\\e['"$code"';3m'"\e[0m"; \ | |
echo -en " \e[$code;4m"'\\e['"$code"';4m'"\e[0m"; \ | |
echo -e " \e[$((code+60))m"'\\e['"$((code+60))"'m'"\e[0m"; \ | |
done | |
## http://jafrog.com/2013/11/23/colors-in-terminal.html |
This file contains 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
<h1 class="alpha "> | |
Echo'system' | |
</h1> | |
<img class="mars" src="https://www.nasa.gov/sites/default/files/thumbnails/image/christmas2015fullmoon.jpg" alt="" /> |
This file contains 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 | |
##### | |
# | |
# This Script will update Plex Media Server to the latest version for Ubuntu | |
# | |
# To automatically check & update plex, run "crontab -e" and add the following lines | |
# | |
# # Check for Plex Media Server Updates every day @6:00 am | |
# 0 6 * * * /path/you/want/update-plexmediaserver.sh |