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
| .PHONY: help | |
| ## === 🆘 HELP ================================================== | |
| help: ## Show this help. | |
| @echo "Laravel Makefile" | |
| @echo "---------------------------" | |
| @echo "Usage: make [target]" | |
| @echo "" | |
| @echo "Targets:" | |
| @grep -E '(^[a-zA-Z0-9_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}{printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/' | |
| #---------------------------------------------# |
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
| # Stop all containers | |
| docker stop `docker ps -qa` | |
| # Remove all containers | |
| docker rm `docker ps -qa` | |
| # Remove all images | |
| docker rmi -f `docker images -qa ` | |
| # Remove all volumes |
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
| version: "3" | |
| services: | |
| app: | |
| container_name: app-server | |
| image: owncloud/server | |
| stdin_open: true | |
| tty: true | |
| expose: | |
| - "80" | |
| - "8080" |
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 | |
| namespace App\Controller; | |
| use App\Controller\AppController; | |
| use App\Form\ContactForm; | |
| class ContactsController extends AppController | |
| { | |
| public function index() |
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 | |
| namespace App\Controller; | |
| use App\Controller\AppController; | |
| use App\Form\ContactForm; | |
| class ContactsController extends AppController | |
| { | |
| public function index() | |
| { |
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/sh | |
| # Script de sauvegarde incrementale du repertoire /original sur la machine serveur | |
| # Ce script utilise l'outil de synchronisation rsync pour faire une image | |
| # globale du repertoire /original de la machine serveur dans le repertoire | |
| # /copie/main/ de la machine client. | |
| # Les sauvegardes incrementales journalieres sont dans chacun | |
| # des repertoires identifies par la date dans le repertoire | |
| # /copie/old_data. Par exemple, le repertoire | |
| # 2004-11-25 contiendra les valeurs des fichiers a ce jour qui seront | |
| # recuperables. |
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: | |
| image: jprjr/php-fpm | |
| volumes: | |
| - www:/srv/http | |
| ports: | |
| - 9000:9000 | |
| links: | |
| - db:db | |
| - maildev:maildev | |
| nginx: |
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
| cd /home | |
| rm -f /home/vide.gif | |
| wget http://www.monsite.fr/pics/vide.gif --tries=1 --timeout=5 --quiet | |
| if [ ! -r /home/vide.gif ] ; then | |
| wget http://www.monsite.fr/pics/vide.gif --http-user=IDENTIFIANT --http-passwd=PASSWORD --tries=1 --quiet | |
| if [ ! -r /home/vide.gif ] ; then | |
| echo "Connection down!!" | |
| beep -f 4000 -l 250 -r 3 | |
| else | |
| echo "Connection relancee" |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| $(function() { | |
| $("body").delegate('img', 'dragstart', function(e){ e.preventDefault(); }); | |
| $("body").delegate('img', 'contextmenu', function(e){ e.preventDefault(); }); | |
| $("img").on('contextmenu',function(e){ e.preventDefault() }); | |
| $("img").on('dragstart',function(e){ e.preventDefault() }); | |
| }); |
NewerOlder