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.
| image: node:8.12.0-alpine | |
| cache: | |
| paths: | |
| - node_modules/ | |
| variables: | |
| AWS_DEFAULT_REGION: us-east-2 | |
| BUCKET_NAME: test55555 |
| --- | |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: Creates a Systems Manager Association with inline PowerShell. | |
| Resources: | |
| Association: | |
| Type: AWS::SSM::Association | |
| Properties: | |
| AssociationName: AssociationName | |
| Name: AWS-RunPowerShellScript | |
| Parameters: |
This gist aims to facilitate the switching from bash to zsh as our defaut shell.
We will be using oh-my-zsh with the powerful theme: Powerlevel9k. You will find all the links below.
This process applies mainly for Arch Linux, but can be setup for any other distro (in theory :)).
I'm also using Gnome Terminal and pacaur as package manager.
| import java.io.*; | |
| import java.math.*; | |
| import java.security.*; | |
| import java.text.*; | |
| import java.util.*; | |
| import java.util.concurrent.*; | |
| import java.util.function.*; | |
| import java.util.regex.*; | |
| import java.util.stream.*; | |
| import static java.util.stream.Collectors.joining; |
| # Global Docker image for the runner | |
| image: node:10 | |
| stages: | |
| - build | |
| - deploy | |
| cache: | |
| paths: | |
| - node_modules/ |
| cache: | |
| paths: | |
| - node_modules/ | |
| - .yarn | |
| stages: | |
| - build | |
| - test | |
| - deploy | |
| build: | |
| image: node:10 |
| # Source: https://gist.github.com/681a5f4455428379e00bc815450e12d8 | |
| ############################################# | |
| # eksctl # | |
| # How to Create and Manage AWS EKS clusters # | |
| # https://youtu.be/pNECqaxyewQ # | |
| ############################################# | |
| ######### | |
| # Setup # |
Those are the only instructions I need to run to have a fully working Pipewire setup that is compatible with PulseAudio, Jack and ALSA:
$ yay -Rcns pulseaudio-jack
# note that pipewire-jack-dropin is an AUR package
$ yay -S pipewire-{jack,jack-dropin,alsa,pulse}
$ systemctl --user enable pipewire pipewire-pulse pipewire-media-session
$ systemctl reboot
# done| ################################# | |
| # K3d # | |
| # How to run Kubernetes locally # | |
| # https://youtu.be/mCesuGk-Fks # | |
| ################################# | |
| # Referenced videos: | |
| # - How to run local multi-node Kubernetes clusters using kind: https://youtu.be/C0v5gJSWuSo | |
| # - Kaniko - Building Container Images In Kubernetes Without Docker: https://youtu.be/EgwVQN6GNJg |