Install the OpenSSL on Debian based systems
sudo apt-get install openssl| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "os" | |
| "os/signal" | |
| "syscall" |
| FROM php:7-fpm | |
| RUN apt-get update && \ | |
| apt-get install -y \ | |
| zlib1g-dev \ | |
| libfreetype6-dev \ | |
| libjpeg62-turbo-dev \ | |
| libmcrypt-dev \ | |
| libpng12-dev |
If you work across many computers (and even otherwise!), it's a good idea to keep a copy of your setup on the cloud, preferably in a git repository, and clone it on another machine when you need.
Thus, you should keep the .vim directory along with your .vimrc version-controlled.
But when you have plugins installed inside .vim/bundle (if you use pathogen), or inside .vim/pack (if you use Vim 8's packages), keeping a copy where you want to be able to update the plugins (individual git repositories), as well as your vim-configuration as a whole, requires you to use git submodules.
Initialize a git repository inside your .vim directory, add everything (including the vimrc), commit and push to a GitHub/BitBucket/GitLab repository:
cd ~/.vim
Translations: Korean (by Yongwoo Lee)
Laravel has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentation doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based on Laravel 5.4.26 - other versions may vary.
I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to read What is Dependency Injection? by Fabien Potencier (creator of the Symfony framework).
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)To remove a submodule you need to:
| Modify /etc/sysctl.conf and add | |
| vm.overcommit_memory=1 | |
| Then restart sysctl by: | |
| $ sudo sysctl -p /etc/sysctl.conf |
| mysql -uroot -p --local-infile | |
| LOAD DATA LOCAL INFILE "file.csv" | |
| INTO TABLE db.table | |
| FIELDS TERMINATED BY ',' | |
| ENCLOSED BY '\"' | |
| LINES TERMINATED BY '\n' |
| shell$ sudo mysql -u root | |
| [mysql] use mysql; | |
| [mysql] update user set plugin='' where User='root'; | |
| [mysql] flush privileges; | |
| [mysql] \q |