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
| ==START == | |
| G21;(metric values) | |
| G90;(absolute positioning) | |
| M82;(set extruder to absolute mode) | |
| M107;(start with the fan off) | |
| G28;(Home the printer) | |
| G1 Z0.2 F1200 ; raise nozzle 0.2mm | |
| G92 E0 ; reset extrusion distance | |
| G1 Y20 ; move Y-Axis (bed) 20mm to prep for purge | |
| G1 X100 E12 F600 ; move X-carriage 100mm while purging 12mm of filament |
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 | |
| /* | |
| Instructions: | |
| 1) Save data when adding to cart | |
| When adding an item to your cart, use ld_woo_set_item_data. The best action for this to occur is | |
| "woocommerce_add_to_cart". The first parameter for this action contains the "cart_item_key", | |
| which is required for the function. |
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
| # %05 pour avoir 5 digit (-00001.jpg, -00002.jpg ...) | |
| # -r 1 = time frame | |
| ffmpeg -i videoplayback.mp4 -f image2 -r 1 nom-de-la-serie-%05d.jpg |
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
| ffprobe -v quiet -print_format json -show_format -show_streams video.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
| var swipeDir; | |
| jQuery(function() { | |
| function qselect_confirm(direction) { | |
| //... | |
| } | |
| jQuery('.fotorama__stage, #theImage').swipe({ | |
| threshold: 0, |
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
| { | |
| "apps" : [{ | |
| "name" : "yo-api", | |
| "script" : "app.js", | |
| "args" : [], | |
| "cwd" : "/home/yovideo/api", | |
| "env" : { | |
| "NODE_ENV": "prod" | |
| }, | |
| "log_file" : "/home/yovideo/.log/api-acc.log", |
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
| # DEV | |
| .idea | |
| .DS_Store | |
| # Added by wordpress online | |
| /data/uploads/ | |
| /data/plugins/ | |
| /data/themes/* | |
| !/data/themes/nom-du-theme/ | |
| /data/themes/nom-du-theme/node_modules/ |
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 | |
| // Detecter le site de DEV (bdd de dev) | |
| if($_SERVER['HTTP_HOST'] == 'dev.monsite.fr'){ | |
| define('DB_NAME', ''); | |
| define('DB_USER', ''); | |
| define('DB_PASSWORD', ''); | |
| define('DB_HOST', ''); | |
| define('WP_HOME', 'http://dev.monsite.fr'); |
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
| #!/bin/bash | |
| cd /tmp | |
| host=$(hostname) | |
| echo "Kappuccino web server install: $host"; | |
| # REPO ######################################################################### | |
| echo "deb http://packages.dotdeb.org wheezy all" > /etc/apt/sources.list.d/dotdeb.list | |
| echo "deb-src http://packages.dotdeb.org wheezy all" >> /etc/apt/sources.list.d/dotdeb.list | |
| wget http://www.dotdeb.org/dotdeb.gpg; apt-key add dotdeb.gpg; rm -rf dotdeb.gpg | |
| apt-get update |
NewerOlder