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
const AWS = require('aws-sdk'); | |
const route53 = new AWS.Route53(); | |
await route53.changeResourceRecordSets({ | |
ChangeBatch: { | |
Changes: [ | |
{ | |
Action: "UPSERT", | |
ResourceRecordSet: { | |
Name: domain, | |
ResourceRecords: [ |
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
//npm install hash.js | |
const hash = require('hash.js') | |
hash.sha256().update(foo).digest('hex') |
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
${file(config.${self:provider.stage}.yml):foo} |
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
sls create --template aws-nodejs --path <path> |
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
https://<host>/<path>?i=<ipaddr>&l=<username>&p=<pass>&h=<domain> |
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
#!/bin/bash | |
# Pre cond: | |
# | |
# EC2 IAM role with this IAM policy: | |
# { | |
# "Version": "2012-10-17", | |
# "Statement": [ | |
# { | |
# "Effect": "Allow", |
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
require 'nokogiri' | |
require 'net/http' | |
ARTIFACTORY_URL = "http://localhost:8081/artifactory/libs-release-local" | |
ARTIFACTORY_USER = "admin" | |
ARTIFACTORY_PASS = "password" | |
TARGET_FOLDER = "target" | |
def open_pom |
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
docker run -d --name artifactory-oss -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss:4.16.0 | |
curl -uadmin:password -T target/backup-0.0.2.jar "http://localhost:8081/artifactory/libs-release-local/ch/furthermore/backup/0.0.2/backup-0.0.2.jar" | |
curl -uadmin:password -T pom.xml "http://localhost:8081/artifactory/libs-release-local/ch/furthermore/backup/0.0.2/backup-0.0.2.pom" |
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
require 'nokogiri' | |
def open_pom | |
File.open("pom.xml") { |f| Nokogiri::XML(f) } | |
end | |
def save_pom(pom) | |
File.open('pom.xml','w') {|f| pom.write_xml_to f} | |
end |
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
require 'nokogiri' | |
def open_pom | |
File.open("pom.xml") { |f| Nokogiri::XML(f) } | |
end | |
def save_pom(pom) | |
File.open('pom.xml','w') {|f| pom.write_xml_to f} | |
end |
NewerOlder