Create a new Laravel project with composer:
$ composer create-project Laravel/Laravel myproject
Create the database for the project:
$ mysql -uroot
| ############################################################################### | |
| # Helpful Docker commands and code snippets | |
| ############################################################################### | |
| ### CONTAINERS ### | |
| docker stop $(docker ps -a -q) #stop ALL containers | |
| docker rm -f $(docker ps -a -q) # remove ALL containers | |
| docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter | |
| # exec into container |
| input { | |
| file { | |
| #if you are reading files that syslog-ng has written to. | |
| path => ["/var/log/syslog-ng.log"] | |
| type => "syslog" | |
| tags => [ "network" ] | |
| } | |
| tcp { | |
| #if syslog-ng is relaying to logstash on TCP/514 | |
| port => 514 |
| function drips(){ | |
| docker ps -q | xargs -n 1 docker inspect --format '{{ .NetworkSettings.IPAddress }} {{ .Name }}' | sed 's/ \// /' | |
| } |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| #!/usr/bin/env python | |
| # -*- coding:utf-8 -*- | |
| # | |
| # Now this lib is on her own full repository and pypi page: | |
| # http://github.com/Christophe31/screenutils | |
| # http://pypi.python.org/pypi/screenutils | |
| # | |
| # This may not work with bpython, use python 2.6 or upper | |
| # | |
| # This program is free software. It comes without any warranty, to |