Skip to content

Instantly share code, notes, and snippets.

View CodeFreezr's full-sized avatar

CodeFreezr CodeFreezr

View GitHub Profile
@CodeFreezr
CodeFreezr / extendvscode.groovy
Last active September 20, 2017 15:00
Download and install 23 #vscode Extensions for DevOps and CI/CD at once.
/* DevOps CI/CD */
def extensions = [
1: [name:'code-runner', version: '0.6.15', publisher: 'formulahendry'],
2: [name:'jenkins-status', version: '0.3.0', publisher: 'alefragnani'],
3: [name:'jenkinsfile-support', version: '0.1.0', publisher: 'secanis'],
4: [name:'vscode-yaml-validation', version: '0.0.1', publisher: 'djabraham'],
5: [name:'code-settings-sync', version: '2.6.1', publisher: 'Shan'],
6: [name:'scala', version: '0.0.4', publisher: 'daltonjorge'],
7: [name:'google-search-ext', version: '0.1.2', publisher: 'adelphes'],
8: [name:'java', version: '0.0.13', publisher: 'redhat'],
@CodeFreezr
CodeFreezr / deployment-tool-ansible-puppet-chef-salt.md
Created August 17, 2017 02:53 — forked from jaceklaskowski/deployment-tool-ansible-puppet-chef-salt.md
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution

[{"type":"marker","latLng":{"lat":52.333216,"lng":5.221867},"color":"#a24ac3"},{"type":"marker","latLng":{"lat":51.5212411667077,"lng":7.760295867919922},"color":"#514ac3"},{"type":"marker","latLng":{"lat":51.532134678095346,"lng":7.946033477783204},"color":"#514ac3"},{"type":"marker","latLng":{"lat":51.89856843187084,"lng":6.616945266723633},"color":"#514ac3"},{"type":"marker","latLng":{"lat":51.918702833674864,"lng":6.737022399902344},"color":"#514ac3"},{"type":"polygon","latLngs":[{"lat":51.90361280788357,"lng":6.62200927734375},{"lat":51.5189980614127,"lng":7.764587402343749},{"lat":51.53950234032649,"lng":7.96783447265625},{"lat":51.93071827931289,"lng":6.74835205078125}],"color":"#514ac3"},{"type":"polyline","latLngs":[{"lat":52.31636,"lng":5.249553},{"lat":51.291954,"lng":8.59055}],"color":"#bbbbbb"},{"type":"polyline","latLngs":[{"lat":52.336393,"lng":5.217786},{"lat":51.29492,"lng":8.613158}],"color":"#bbbbbb"},{"type":"polyline","latLngs":[{"lat":52.31636,"lng":5.249553},{"lat":49.98063,"lng":7.0052
@CodeFreezr
CodeFreezr / jenkins_plugins_dependencies_dot.groovy
Last active September 20, 2017 15:00
Simple Jenkins Inline script to generate dot graph of plugin dependencies
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins()
println "digraph test {"
println "rankdir=LR;"
println "node [shape = box,height=.1,fontsize=48,fontname=Helvetica,fillcolor=yellow,style=filled];"
plugins.each {
def plugin = it.getShortName()
println "\"${plugin}\";"
def deps = it.getDependencies()
deps.each {
def s = it.shortName
@CodeFreezr
CodeFreezr / jenkins_plugins_dependencies_canonical__dot.groovy
Created September 20, 2017 21:36
Simple Jenkins Inline script to generate dot graph of plugin dependencies in a canonical oneliner.
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins()
print "digraph test {"
print "rankdir=LR;"
print "node [shape = box,height=.1,fontsize=48,fontname=Helvetica,fillcolor=yellow,style=filled];"
plugins.each {
def plugin = it.getShortName()
print "\"${plugin}\";"
def deps = it.getDependencies()
deps.each {
def s = it.shortName
@CodeFreezr
CodeFreezr / jenkins_plugins_dependencies_html.groovy
Created September 20, 2017 22:30
Simple Jenkins Inline script to generate html with dot graph of plugin dependencies.
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins()
def html_prefix = '''
<!DOCTYPE html><meta charset="utf-8"><html>
<head>
<script src="http://d3js.org/d3.v4.min.js"></script>
<script src="http://viz-js.com/bower_components/viz.js/viz-lite.js"></script>
<script src="https://github.com/magjac/d3-graphviz/releases/download/v0.1.2/d3-graphviz.min.js"></script>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<style>div {text-align: center;width:100%;}</style>
</head>
@CodeFreezr
CodeFreezr / docker-compose.yml
Created December 6, 2017 17:12 — forked from vcastellm/docker-compose.yml
docker compose for ecs-cli
version: '2'
services:
memcached:
image: memcached
app:
image: user/app
environment:
RAILS_ENV: development
@CodeFreezr
CodeFreezr / emojis.json
Created January 5, 2018 23:35 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128103;", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128102;", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "&#128105;&zwj;&#128105;&zwj;&#128102;&zwj;&#128102;", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "&#128104;&zwj;&#128105;&zwj;&#128103;&zwj;&#128103;", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👦", "name": "family_children", "shortname": "", "unicode": "", "html": "&#128104;&zwj;&#128105;&zwj;&#128103;&zwj;&#128102;", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👦‍👦", "name": "family_two_boys", "shortname": "", "unicode": "", "html": "&#128104;&zw
@CodeFreezr
CodeFreezr / list-all-yamls.groovy
Created March 14, 2018 19:02
Simply list all yamls recursive inside one directory
new File("d:\\svn").eachDirRecurse() { dir ->
dir.eachFileMatch(~/.*.yml/) { file ->
println file.getPath()
}
}