Skip to content

Instantly share code, notes, and snippets.

View Erreur32's full-sized avatar
💭

Erreur32 Erreur32

💭
View GitHub Profile
@Erreur32
Erreur32 / Bash-color-16.sh
Last active March 13, 2018 21:48
Bash-color-16.sh
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
@Erreur32
Erreur32 / Bash-color-256-code.sh
Created March 13, 2018 21:37
Bash-color-256-code.sh
for code in {0..255}
do echo -e "\e[38;5;${code}m"'\\e[38;5;'"$code"m"\e[0m"
done
@Erreur32
Erreur32 / 256-colors.sh
Created March 13, 2018 21:17 — forked from atomize/256-colors.sh
Bash terminal 256 colors escape sequences. The following script display the 256 colors available on some terminals and terminals emulators like XTerm and GNOME Terminal.
#!/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
@Erreur32
Erreur32 / prompt.sh
Created March 13, 2018 12:35 — forked from jc00ke/prompt.sh
bash prompt
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/'
@Erreur32
Erreur32 / .bash_prompt
Created March 13, 2018 10:03 — forked from DavidEGx/.bash_prompt
Bash prompt
################################################################################
# -------------------------
# BASH PROMPT CONFIGURATION
# -------------------------
# Description:
# Shows a nicer bash prompt:
# ▶ 🖳 mypc ▶ documents ▶ ⎇ master ▶ 𝍠 ✔
# -------- --------- ---------- --- -----
# | | | | |
# hostname folder git branch jobs last command result
@Erreur32
Erreur32 / link-ls.sh
Last active March 11, 2018 02:45
Trouver les liens symbolics
@Erreur32
Erreur32 / check-file-top10.sh
Last active March 11, 2018 02:44
## Debian check des 10 plus gros fichier
## check des 10 plus gros fichier
find /var/log -type f -exec du -hs {} \; | sort -n | tail -n 10
@Erreur32
Erreur32 / debian-init.sh
Created February 24, 2018 21:33 — forked from andsens/debian-init.sh
This is a generic init-script, easily modifiable to suit your needs. It uses quite a lot of lsb init-functions and adheres to the lsb standards.
#!/bin/sh
### BEGIN INIT INFO
# Provides: generic-prog
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Generic Program
# Description: Generic Program is a generic program to do generic things with
### END INIT INFO
@Erreur32
Erreur32 / emoji.md
Last active March 11, 2018 02:47 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: