This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
Only do this if you understand the consequences: all node programs will be able to bind on ports < 1024
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
Important: your node location may vary. Use which node
to find it, or use it directly in the command:
[Unit] | |
Description=Redis Datastore Server | |
After=network.target | |
[Service] | |
Type=forking | |
PIDFile=/var/run/redis/redis.pid | |
ExecStartPre=/bin/mkdir -p /var/run/redis | |
ExecStartPre=/bin/chown redis:redis /var/run/redis |
Following this guide will set up a local Elasticsearch with Kibana and Marvel using Homebrew and Homebrew Cask
If you already have Java
installed on your system, skip steps Install Cask and Install Java
If you already have Java
and Homebrew
installed on your system, skip steps Prerequisites, start at Install Elasticsearch and Kibana after running $ brew update
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
I tried to delete a cluster: | |
"The Cluster cannot be deleted while Services are active." | |
I tried to delete the service called 'nginx': | |
"The service cannot be stopped while the primary deployment is scaled above 0" | |
Select service, click 'Update' - set 'Number of tasks' to 0 | |
This changed the number of 'Desired Tasks' to 0 | |
Or I guess: | |
aws ecs update-service --service nginx --desired-count 0 --cluster ecscluster1 --profile devops |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
// Promise returning functions to execute | |
function doFirstThing(){ return Promise.resolve(1); } | |
function doSecondThing(res){ return Promise.resolve(res + 1); } | |
function doThirdThing(res){ return Promise.resolve(res + 2); } | |
function lastThing(res){ console.log("result:", res); } | |
var fnlist = [ doFirstThing, doSecondThing, doThirdThing, lastThing]; | |
// Execute a list of Promise return functions in series | |
function pseries(list) { |