Tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IMAGE = n8nio/n8n | |
| NAME = n8n | |
| run: | |
| docker run -it --rm --name ${NAME} -p 5678:5678 \ | |
| -e GENERIC_TIMEZONE="America/New_York" -e TZ="America/New_York" \ | |
| -v /Users/venkat/dev/n8n/data:/home/node/.n8n ${IMAGE} | |
| pull: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat Makefile | |
| net: | |
| docker network create --driver overlay --attachable mynet | |
| n1: | |
| docker run -d --net mynet --name green nginx | |
| n2: | |
| docker run -d --net mynet --name blue nginx | |
| n3: | |
| docker run -d --net mynet --name red nginx | |
| h: |
On several occations, I have spin up my test host in AWS and left if running for months without using it. I wanted this instance to shutdown on timer. I can always start it up anytime - that does not bother me.
Here is sample code;
[root@ip-172-30-0-62 ~]# crontab -l
* * * * * date >> /var/log/cron-date
* * * * * /root/shutdown-timer >> /var/log/shutdown.log 2>&1
[root@ip-172-30-0-62 ~]# cat shutdown-timer
அ அறம் செய விரும்பு ஆ ஆறுவது சினம் இ இயல்வது கரவேல் ஈ ஈவது விலக்கேல் உ உடையது விளம்பேல் ஊ ஊக்கமது கைவிடேல் எ எண் எழுத்து இகழேல் ஏ ஏற்பது இகழ்ச்சி ஐ ஐயமிட்டு உண் ஒ ஒப்புர வொழுகு
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| socat - UNIX-CLIENT:/tmp/.newrelic.sock | |
| nc -U /tmp/.newrelic.sock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To hide all commented line: | |
| ``` | |
| :g!/^ *#/p | |
| :g!/^[ \t]*#/p | |
| #:g!/^[ \t]*#\|/^[ \t]$/p | |
| ``` | |
| Reference: |
# sudo ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
# sudo cat /etc/sysconfig/clock
ZONE="America/New_York"
UTC=true
# sudo reboot
NewerOlder