Skip to content

Instantly share code, notes, and snippets.

TheNotary

  • The Internet
Block or report user

Report or block TheNotary

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View netpol.yml
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: "allow-nodeport-my-shell"
spec:
podSelector:
matchLabels:
run: "my-shell"
View hello-world.app.json
{
"title": "Hello World",
"tagline": "A hello world app",
"description": "Your example for installing web apps into kano as 'apps'.",
"slug": "hello",
"icon": "secrets",
"colour": "#f8584b",
"categories": ["media"],
@TheNotary
TheNotary / install_plugins.init.groovy
Created Apr 11, 2019
Someone posted this to a forum... as an attachment...
View install_plugins.init.groovy
import jenkins.model.*
import java.util.logging.Logger
def logger = Logger.getLogger("02_installPlugins.groovy")
def installed = false
def initialized = false
def fileSeperator=File.separator;
println("Plugins Count Before Installation: "+Jenkins.instance.pluginManager.plugins.size())
def filepath="/home/lvadmin/.jenkins/init.groovy.d"+fileSeperator+"pluginslist.cfg";
println "pluginslist.cfg FilePath : $filepath"
def pluginslist = []
@TheNotary
TheNotary / setup-users.groovy
Created Apr 10, 2019 — forked from wiz4host/setup-users.groovy
jenkins init.groovy.d script for configuring users
View setup-users.groovy
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.*
View Vagrantfile
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?
View gist:df4fb4dc012640ee47700ae904697e29
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" } ]
View gist:ee2bf65c378214b6713f420c28b579d6
$ 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+
View gist:388a0ca9b421850046393363cc95a7cf
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..............
View gist:c3d796ae327e107cf02903fec313c7b1
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
You can’t perform that action at this time.