Skip to content

Instantly share code, notes, and snippets.

@TheNotary
TheNotary / setup-users.groovy
Created April 10, 2019 14:31 — forked from wiz4host/setup-users.groovy
jenkins init.groovy.d script for configuring users
import jenkins.*
import hudson.*
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*
import hudson.plugins.sshslaves.*;
import hudson.model.*
import jenkins.model.*
import hudson.security.*
require 'json'
require 'yaml'
# Make sure the vagrant-ignition plugin is installed
required_plugins = %w(vagrant-ignition) # vagrant-persistent-storage
plugins_to_install = required_plugins.select { |plugin| not Vagrant.has_plugin? plugin }
if not plugins_to_install.empty?
config_data = JSON.parse( File.read("variables.json") )
debian_vms = [
{ name: "it-workhorse-vm", ip: "48" },
{ name: "storage-host-vm", ip: "139" },
{ name: "rock", ip: "54" },
{ name: "backups-dark-vm", ip: "128" },
{ name: "ubuntu-vm", ip: "127" },
{ name: "jenkins-vm", ip: "126" } ]
$ gpg -vv
gpg: Go ahead and type your message ...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJXWz8jAAoJEFfFec8qXSuDILkQAJ8z03FyfLZpwaQPRKPEGRyz
pkdOeHm6BDEbxB4VLeSrzUgzI2EcTMuTuFbev6EyAbpP+qnAKCjQU71GpBkpBipF
wEwmQfl1+/mLmkt2y8jdmpTndmvaaQ+hfNsp1H674vGWLx8GwVUwrdeDFUuqxk0m
ueaGQI296ClNgUIVeqx+gIIkZqyluilnZqLJnWosrIz9kRl3GhhL+yeP8bLCa+t8
SHyktvjwJ6QKGE9GkoHuM7j1ehSZ8irWZcTHnmUyxeRj6UN182Uj6RUFTAY3syH+
00d2910: 4350 5520 7469 6d65 206c 696d 6974 2065 CPU time limit e
00d2920: 7863 6565 6465 6400 0000 0000 0000 0000 xceeded.........
00d2930: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00d2940: 5029 4d00 0000 0000 1100 0000 0000 0000 P)M.............
00d2950: 4845 4c4c 4f20 4845 4c4c 4f20 6865 6c6c HELLO HELLO hell
00d2960: 6f00 0000 0000 0000 0000 0000 0000 0000 o...............
00d2970: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00d2980: 9029 4d00 0000 0000 1200 0000 0000 0000 .)M.............
00d2990: 5246 5320 7370 6563 6966 6963 2065 7272 RFS specific err
00d29a0: 6f72 0000 0000 0000 0000 0000 0000 0000 or..............
.hero {
background: ".."
&__overlay {
background: ".."
}
}
Here the concrete Game we play on IRC is defined???
https://github.com/bazzinotti/ayumi/blob/master/lib/cinch/plugins/word_game.rb#L12
Notice the Game class is created here... it inherits from a game class for the WordGames module
https://github.com/bazzinotti/ayumi/blob/master/lib/cinch/plugins/word_game.rb#L179
And then we have what I believe to be the abstract class here:
https://github.com/bazzinotti/ayumi/blob/master/lib/cinch/plugins/wordgames/game.rb#L7-L8
match(/guess (\S+)/, method: :guess)
def guess(m, guessed_word)
result = @game.guess(guessed_word)
reply = case result
when :missed_north
"My word comes after #{guessed_word}."
when :missed_south
"My word comes before #{guessed_word}."
when :correct
/*
* Styles defined here are loaded by the action center iframe embed.
*/
html {
margin-left: auto;
margin-right: auto; }
body {
font-size: 21px; }
html {
width: 70%;
margin-left: auto;
margin-right: auto;
}
h2.tool-title {
display:none;