title | date | category | tags | |||
---|---|---|---|---|---|---|
Let's talk terraform |
2021-04-26 21:39:00 +0200 |
general, terraform, devops |
|
I have used terraform almost daily for the past 5 years and during this time I have developed some ideas on how to use it.
const fs = require('fs'); | |
const htmlparser = require('htmlparser2'); | |
function Project(xmlConfigPath) { | |
var self = this; | |
this.xmlConfigPath = xmlConfigPath; | |
this.devices = {}; | |
this.groups = {}; | |
self.GroupAddressPrefix = []; |
.PHONY: compose from-code local staging production | |
compose = docker-compose -f compose.yaml -f | |
database: | |
${compose} local.yaml up postgres | |
from-code: | |
${compose} local.yaml up --build |
title | date | category | tags | |||
---|---|---|---|---|---|---|
Let's talk terraform |
2021-04-26 21:39:00 +0200 |
general, terraform, devops |
|
I have used terraform almost daily for the past 5 years and during this time I have developed some ideas on how to use it.
.PHONY: TEST ENV | |
ENV: Makefile | |
virtualenv --distribute ./env | |
CHECK_ENV: | |
ifndef VIRTUAL_ENV | |
$(error PLEASE ENTER THE VIRTUALENV BEFORE FUN THE COMMAND) | |
endif |
I hereby claim:
To claim this, I am signing this object:
function delay() { | |
var func = Array.prototype.shift.call(arguments); | |
var time = Array.prototype.shift.call(arguments); | |
var args = arguments; | |
var _delay = function () { | |
func.apply(null, args); | |
} | |
setTimeout(_delay, time); |
var moment = require('moment'); | |
var tomorrow = "", | |
nextweek = "", | |
nextmonth = ""; | |
tomorrow = moment().add('days', 1).format('\\H H D M *') | |
nextweek = moment().add('weeks', 1).format('\\H H D M *') | |
nextmonth = moment().add('months', 1).format('\\H H D M *') |
#!/usr/bin/env bash | |
chromium --new-window --allow-file-access-from-files $@ |
buf = new Buffer('SGVsbG8gV29ybGQhIQ==','base64') | |
fs.writeFile('file.bin', buf, function (err) { if (err) throw err;}) |
<html> | |
<head> | |
<script src="/javascripts/CryptoJS/rollups/aes.js"></script> | |
<script src="/javascripts/CryptoJS/components/mode-cfb-min.js"></script> | |
<script src="/javascripts/encrypt.js"></script> | |
</head> | |
<body> | |
</body> | |
</html> |