Skip to content

Instantly share code, notes, and snippets.

View wvides's full-sized avatar
:octocat:
Immutable is the way

Walter Vides wvides

:octocat:
Immutable is the way
  • Berlin, Germany
View GitHub Profile
@wvides
wvides / setup-mysql.sh
Created August 17, 2018 21:42 — forked from sheikhwaqas/setup-mysql.sh
Install MySQL Server on Ubuntu (Non-Interactive Installation)
# Download and Install the Latest Updates for the OS
apt-get update && apt-get upgrade -y
# Set the Server Timezone to CST
echo "America/Chicago" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
# Enable Ubuntu Firewall and allow SSH & MySQL Ports
ufw enable
ufw allow 22
@wvides
wvides / crockford_object_creation_pattern.js
Created August 8, 2018 02:45 — forked from stonehippo/crockford_object_creation_pattern.js
Douglas Crockford's preferred Javascript object constructor pattern, from https://www.youtube.com/watch?v=bo36MrBfTk4 (starting at 35:45)
// The pattern Crockford uses these days.
function constructor(spec) {
var that = other_constructor(spec),
member,
method = function () {
// spec, member, method
}
that.method = method;
return that;
}
println "Running plugin enumerator"
println ""
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins()
plugins.each {println "${it.getShortName()}:${it.getVersion()}"}
println ""
println "Total number of plugins: ${plugins.size()}"