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
awk '{ print $1 } ' apache_log | sort | uniq |
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
<?php | |
add_action( 'admin_init', 'myplugin_admin_init' ); | |
function myplugin_admin_init() { | |
//register settings | |
register_setting( 'myplugin_options_group1', 'myplugin_option_1' ); | |
} | |
// create custom plugin settings menu |
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
elebescond@elebescond:~$ screen bash | |
press CTRL+A followed by d to detach the screen. | |
[detached from 5883.pts-1.elebescond] | |
elebescond@elebescond:~$ screen -ls | |
There is a screen on: | |
5883.pts-1.elebescond (29/11/2011 10:23:02) (Detached) | |
1 Socket in /var/run/screen/S-elebescond. | |
elebescond@elebescond:~$ screen -r 5883.pts-1.elebescond | |
elebescond@elebescond:~$ screen -d 5883.pts-1.elebescond |
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
Par fichier: | |
svn revert path/to/file ==> git checkout path/to/file | |
Working copy | |
git reset --hard |
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
find . -iname "*.php" > /tmp/my_theme_file_list.txt | |
# new template | |
xgettext --from-code=utf-8 -d my_theme -f /tmp/my_theme_file_list.txt --keyword=__ -o languages/my_theme.pot | |
# update template | |
xgettext --from-code=utf-8 -d my_theme -j -f /tmp/my_theme_file_list.txt --keyword=__ -o languages/my_theme.pot |
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 submodule add git://github.com/xxx/yyy.git yyy |
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
majewan@majewan:/tmp$ wget http://www.les-horaires.fr/go/130 | |
–2012-01-02 12:17:30– http://www.les-horaires.fr/go/130 | |
Résolution de www.les-horaires.fr… 91.121.110.157 | |
Connexion vers www.les-horaires.fr|91.121.110.157|:80… connecté. | |
requête HTTP transmise, en attente de la réponse… 302 Moved Temporarily | |
Emplacement: http://ad.zanox.com/ppc/?13566869C1968578671T [suivant] | |
–2012-01-02 12:17:30– http://ad.zanox.com/ppc/?13566869C1968578671T | |
Résolution de ad.zanox.com… 217.110.110.231 | |
Connexion vers ad.zanox.com|217.110.110.231|:80… connecté. | |
requête HTTP transmise, en attente de la réponse… 302 Moved Temporarily |
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
*.iws | |
*Db.properties | |
*Db.script | |
.settings | |
eclipse | |
grails-app/conf/DataSource.groovy | |
stacktrace.log | |
target | |
target-eclipse | |
/plugins |
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
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://oldlink.com', 'http://newlink.com'); |
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 remote show origin | |
git checkout --track -b branch_name origin/branch_name | |
or | |
git checkout -t origin/branch_name | |
git remote show origin |
OlderNewer