gpg --full-gen-key
gpg --list-secret-keys --keyid-format LONG
/Users/hubot/.gnupg/secring.gpg
function log() { | |
echo "[$(date)]$1" | tee -a /var/log/jenkins_userdata.log | |
} | |
function waitForJenkins() { | |
log "Waiting jenkins to launch on 8080..." | |
while ! nc -z localhost 8080; do | |
sleep 0.1 # wait for 1/10 of the second before check again | |
done |
version: "3.4" | |
services: | |
elasticsearch: | |
# Remember to "sysctl -w vm.max_map_count=262144" on swarm nodes | |
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.5 | |
environment: | |
network.host: 0.0.0.0 | |
discovery.zen.ping.unicast.hosts: elasticsearch |
# To get this configuration down, | |
# curl url-to-raw-gist -o ~/.tmux.conf | |
# | |
# Commands are from blogpost, | |
# http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/ | |
# | |
# if TMUX ain't reading the config, exit and use | |
# tmux source-file ~/.tmux.conf | |
# switch panes using Alt-arrow without prefix (ESC is the meta key) |
require 'github_api' | |
contents = Github::Client::Repos::Contents.new(login: "username", password: "password") | |
file = contents.find('org-name', 'repo-name', '/file/path') | |
contents.update('conversation', 'tc-ops', '/file/path' | |
path: '/file/path', | |
message: 'a commit message', | |
content: 'new file contents', | |
sha: file.sha) |
Veewee::Session.declare({ | |
:cpu_count => '1', :memory_size=> '512', | |
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', | |
:os_type_id => 'RedHat_64', | |
:iso_file => "rhel-server-6.3-x86_64-dvd.iso", | |
:iso_md5 => "d717af33dd258945e6304f9955487017", :iso_download_timeout => 1000, | |
:boot_wait => "10", :boot_cmd_sequence => [ | |
'<Tab> text ks=http://%IP%:%PORT%/ks.cfg<Enter>' | |
], | |
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg", |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
# A sample sonar-runner.properties file to test Groovy and Javascript in a Grails project | |
# Note that the blank projectBaseDir properties are necessary otherwise Sonar infers | |
# the directory name from the module name, which doesn't apply here. | |
# | |
# Author: Ryan Brooks (ryan.brooks@ndm.ox.ac.uk) | |
# required metadata | |
sonar.projectKey=com.example | |
sonar.projectName=My Project | |
sonar.projectVersion=0.1 |
pool: | |
vmImage: 'Ubuntu 16.04' | |
steps: | |
- script: | | |
npm install | |
displayName: "npm install" | |
- task: ArchiveFiles@2 | |
displayName: "Archive files" | |
inputs: |
- task: PublishBuildArtifacts@1 | |
inputs: | |
PathtoPublish: '$(System.DefaultWorkingDirectory)' | |
name: 'drop' |