Updated 24-05-2020
NAME=$1
mkdir $NAME
cd $NAME
# Generate private key| #!/bin/sh | |
| # Check if an IP address is listed on one of the following blacklists | |
| # The format is chosen to make it easy to add or delete | |
| # The shell will strip multiple whitespace | |
| BLISTS=" | |
| b.barracudacentral.org | |
| bb.barracudacentral.org | |
| bl.deadbeef.com | |
| bl.mailspike.net |
| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ | |
| 'default' => 'single_space', | |
| 'operators' => ['=>' => null], |
| # UPDATED 17 February 2019 | |
| # Redirect all HTTP traffic to HTTPS | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name www.domain.com domain.com; | |
| return 301 https://$host$request_uri; | |
| } | |
| # SSL configuration |
下面介绍 podman、podman-compose 安装及使用。
文中只列出了 Ubuntu 20.04 系统的安装过程。
| server { | |
| listen 80 default_server; | |
| server_name example.com www.example.com; | |
| access_log /srv/www/example.com/logs/access.log; | |
| error_log /srv/www/example.com/logs/error.log; | |
| root /srv/www/example.com/public; | |
| index index.php index.html; |
| const req = require.context('./components/', true, /\.(js|vue)$/i); | |
| req.keys().map(key => { | |
| const name = key.match(/\w+/)[0]; | |
| return Vue.component(name, req(key)) | |
| }); |
| /* | |
| * Handling Errors using async/await | |
| * Has to be used inside an async function | |
| */ | |
| try { | |
| const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
| // Success 🎉 | |
| console.log(response); | |
| } catch (error) { | |
| // Error 😨 |