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
import javaposse.jobdsl.dsl.DslScriptLoader | |
import javaposse.jobdsl.plugin.JenkinsJobManagement | |
def jobDslScript = new File('/tmp/seed-job.groovy') | |
def workspace = new File('.') | |
def jobManagement = new JenkinsJobManagement(System.out, [:], workspace) | |
new DslScriptLoader(jobManagement).runScript(jobDslScript.text) |
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
#!groovy | |
import jenkins.model.* | |
import java.util.logging.Logger | |
def log = Logger.getLogger("") | |
def instance = Jenkins.getInstance() | |
def updateCenter = instance.getUpdateCenter() | |
def pluginManager = instance.getPluginManager() | |
def plugins = "git pipeline-stage-view job-dsl github workflow-aggregator".split() |
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
# Update route53 record | |
localip=$(curl -fs http://169.254.169.254/latest/meta-data/local-ipv4) | |
hostedzoneid=$(aws route53 list-hosted-zones-by-name --dns-name ${Env}.${AWS::Region}.aws.example.com --query 'HostedZones[0].Id' | cut -d / -f 3 | tr -d '"') | |
file=/tmp/record.json | |
cat << EOF > $file | |
{ | |
"Comment": "Update the A record set", | |
"Changes": [ | |
{ | |
"Action": "UPSERT", |
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
/** | |
* A sample Lambda function that looks up the latest AMI ID for a given region and architecture. | |
**/ | |
// Map instance architectures to an AMI name pattern | |
var archToAMINamePattern = { | |
"PV64": "amzn-ami-pv*x86_64-ebs", | |
"HVM64": "amzn-ami-hvm*x86_64-gp2", | |
"HVMG2": "amzn-ami-graphics-hvm*x86_64-ebs*" | |
}; |
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
# funtion to log messages to the log file | |
function log | |
{ | |
echo "["`date +'%m/%d/%Y %H:%M:%S'`"] "$@ >> $LOGFILE | |
} |
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 AWS = require('aws-sdk'); | |
const YAML = require('yamljs'); | |
AWS.config.update({region: 'us-east-1'}); | |
const ec2 = new AWS.EC2(); | |
const mapping = { | |
RegionMap: {} | |
}; |
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
app.on('ready', function() { | |
mainWindow = new BrowserWindow({ | |
width: 350, height: 500, frame: true, transparent: false, | |
titleBarStyle: 'hidden-inset', | |
webPreferences: { | |
nodeIntegration: true, | |
webSecurity: false, | |
plugins: true | |
} | |
}); |
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
{ | |
"name": "my-electron-app", | |
"version": "0.1.0", | |
"main": "main.js", | |
"devDependencies": { | |
"babel": "^6.5.2", | |
"babel-core": "^6.7.7", | |
"babel-loader": "^6.2.4", | |
"css-loader": "^0.23.1", | |
"electron-packager": "^7.0.0", |
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
(setq web-mode-content-types-alist | |
'(("jsx" . "\\.js[x]?\\'"))) |
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
;;; Code: | |
(add-to-list 'default-frame-alist | |
'(font . "Source Code Pro Semibold")) | |
(require 'flycheck) | |
(add-hook 'js-mode-hook | |
(lambda () (flycheck-mode t))) | |
(setq org-agenda-files (list "~/git/org/tasks.org" |