This file contains hidden or 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
| # 1° sudo apt-get install git-core | |
| # 2° dans .bashrc ajouter $(__git_ps1) dans le prompt, et setter quelques variables | |
| export GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWSTASHSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 | |
| export GIT_PS1_SHOWUPSTREAM=verbose GIT_PS1_DESCRIBE_STYLE=branch GIT_PS1_SHOWCOLORHINTS=1 | |
| if [ "$color_prompt" = yes ]; then | |
| PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w$(__git_ps1) \[\033[00m\]\$ ' | |
| else | |
| PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1) \$ ' |
This file contains hidden or 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
| ## Rename file | |
| j=1;for i in `ls`; do prt=$(printf '%04d' $j);j=$((j + 1));echo "mv $i $prt.JPG"; mv $i "$prt.JPG"; done | |
| ## crop | |
| mogrify -crop 1920x1080+362+628 *.jpg | |
| ## or resize | |
| mogrify resize 1920x1080 *.jpg | |
| ## morph if necessary !!! takes time | |
| convert *.jpg -delay 10 -morph 10 %05d.morph.jpg | |
| ## create movie | |
| ffmpeg -r 25 -i %05d.morph.jpg output.mp4 |
This file contains hidden or 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
| <?php | |
| for ($i=0;$i<1000000;$i++) {preg_replace('/\-/','','test-test');} |
This file contains hidden or 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
| {exec} = require 'child_process' | |
| task 'sbuild', 'Build project from *.coffee to *.js', -> | |
| cwd = process.cwd() | |
| process.chdir 'public/static/' | |
| exec 'coffee -b -m --output js/ coffee/', (err, stdout, stderr) -> | |
| throw err if err | |
| console.log stdout + stderr | |
| process.chdir cwd |
This file contains hidden or 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
| require.config({ | |
| baseUrl: 'js/lib', | |
| paths: { | |
| application: '../application' | |
| } | |
| }); | |
| requirejs(['../app']); |
NewerOlder