This manual is about setting up an automatic deploy workflow using nodejs, PM2, nginx and GitLab CI. It is tested on:
- Target server: Ubuntu 16.04 x64. This is suitable for Ubuntu 14.x.
- Windows 10 on my PC to work.
Reference: RFC 2616 - HTTP Status Code Definitions
$deviceManager = new-object -ComObject WIA.DeviceManager | |
$device = $deviceManager.DeviceInfos.Item(1).Connect() | |
$wiaFormatPNG = "{B96B3CAF-0728-11D3-9D7B-0000F81EF32E}" | |
foreach ($item in $device.Items) { | |
$image = $item.Transfer($wiaFormatPNG) | |
} | |
if($image.FormatID -ne $wiaFormatPNG) | |
{ |
ln -s /usr/local/opt/readline/lib/libreadline.7.0.dylib /usr/local/opt/readline/lib/libreadline.6.dylib |
FROM php:7.1-apache | |
ADD . /var/www | |
ADD ./site.conf /etc/apache2/sites-enabled/000-default.conf | |
RUN apt-get update && apt-get install -y libmcrypt-dev mysql-client && \ | |
docker-php-ext-install mcrypt pdo_mysql opcache && \ | |
pecl install redis-3.1.2 && docker-php-ext-enable redis && \ | |
a2enmod rewrite |
https://golangbot.com/learn-golang-series/ | |
https://gist.github.com/ivangabriele/1c552aadc247c0a2f256292c1e49de15 | |
https://github.com/golang-standards/project-layout | |
https://github.com/gin-gonic/gin | |
http://cgrant.io/tutorials/go/simple-crud-api-with-go-gin-and-gorm/ |
# Put this in your ~/.gitconfig or ~/.config/git/config | |
# Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName> | |
[user] | |
name = Your Full Name | |
email = [email protected] | |
[color] | |
# Enable colors in color-supporting terminals | |
ui = auto | |
[alias] | |
st = status |
#!/bin/bash | |
# To run locally: ` curl -s https://gist.githubusercontent.com/jeefy/7fed19a335d5caae24639e7ee7be1b71/raw/install-rancher-compose.sh | sh ` | |
VERSION_NUM="0.9.2" | |
wget https://github.com/rancher/rancher-compose/releases/download/v${VERSION_NUM}/rancher-compose-linux-amd64-v${VERSION_NUM}.tar.gz | |
tar zxf rancher-compose-linux-amd64-v${VERSION_NUM}.tar.gz | |
rm rancher-compose-linux-amd64-v${VERSION_NUM}.tar.gz | |
sudo mv rancher-compose-v${VERSION_NUM}/rancher-compose /usr/local/bin/rancher-compose |
#!/bin/bash | |
#title :wildfly-install.sh | |
#description :The script to install Wildfly 10.x | |
#more :http://sukharevd.net/wildfly-8-installation.html | |
#author :Dmitriy Sukharev | |
#date :2015-10-24T17:14-0700 | |
#usage :/bin/bash wildfly-install.sh | |
#tested-version :10.0.0.CR3 | |
#tested-distros :Debian 7,8; Ubuntu 15.10; CentOS 7; Fedora 22 |