- Install
- Create a role and add CloudwatchFullAccess to it
- Assign to the EC2 Instance
- Edit configs and add the template above
- Change Namespace
- Pull configs
- Start
- See status
This file contains 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
{ | |
// Most code lines should be 40~80 column long after 150 col is not acceptable. | |
// And the reader have to scroll to the right | |
"editor.rulers": [ | |
40, | |
80, | |
150 | |
], | |
} |
This file contains 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
class Counter { | |
static instance; | |
static getInstance(){ | |
if(!Counter.instance) Counter.instance = new Counter(); | |
return Counter.instance; | |
} | |
counter = 0; | |
getCount() { |
This file contains 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
echo pass | sudo openconnect c9.serverkm.xyz:443 --user=user --passwd-on-stdin --script=/etc/vpnc/vpnc-script |
This file contains 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
const {performance} = require('perf_hooks'); | |
const start = performance.now(); | |
//Your Code Lays Here :) | |
const end = performance.now(); | |
/* | |
cte : Constant to make 0 < (end-start) < 1 when there is no code | |
* it's just for better understanding ( if you dont want it leave it to be ) |
This file contains 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 generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |