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
#aliases | |
alias e='exit' | |
alias ll='ls -la' | |
alias lh='ls -lah' | |
alias rg='rgrep -n --color' | |
alias c='clear' | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias ....='cd ../../..' |
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
# Compiled source # | |
################### | |
*.com | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # | |
############ |
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
#Compress and copy via SSH using SCP and TAR | |
tar -czf - /some/file | ssh [email protected] tar -xzf - -C /destination | |
#Switch -c for tar creates an archive and -f which tells tar to send the new archive to stdout. | |
#The second tar command uses the -C switch which changes directory on the target host. It takes the input from stdin. The -x switch extracts the archive. | |
#The second way of doing the transfer over a network is with the -z option, which compresses the stream, decreasing time it will take to transfer over the network. | |
#Some people may ask why tar is used, this is great for large file trees, as it is just streaming the data from one host to another and not having to do intense operations with file trees. | |
#If using the -v (verbose) switch, be sure only to include it on the second tar command, otherwise you will see double output. | |
#Using tar and piping can also be a great way to transfer files locally to be sure that file permissions are kept correctly |
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
setxkbmap fr |
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
git clean -dfxn |
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/sh | |
for i in `find . -name "*.pdf"`; | |
do | |
filename=$(basename $i | sed 's/\.[^.]*$//') | |
$(convert $filename.pdf[0] -resize 150x203 $filename.jpeg) | |
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
Vanilla install from Download small CD installer, follow instructions for base box. | |
Hostname: vagrant-[os-name], e.g. vagrant-debian-squeeze64 | |
Domain: vagrantup.com | |
Root Password: vagrant | |
Main account login: vagrant | |
Main account password: vagrant | |
uncheck all software | |
Login in as vagrant. |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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 | |
cd .. | |
git fetch origin | |
git checkout origin/master | |
cd deploy/ | |
rm composer.phar | |
curl -sS https://getcomposer.org/installer | php | |
cd .. | |
php deploy/composer.phar install |
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 | |
CYAN = "\e[46m" | |
NORMAL = "\e[0m" | |
PS3 = "Installation Claroline. Cela va supprimer votre répertoire Claroline/. Êtes-vous sûr de vouloir continuer ?" | |
LISTE=("[y] yes" "[n] no") | |
select CHOIX in "${LISTE[@]}" ; do | |
case $REPLY in | |
1|y) | |
echo -e "$CYAN###### INSTALLATION COMPOSER $NORMAL " |
OlderNewer