Skip to content

Instantly share code, notes, and snippets.

View jespada's full-sized avatar

jespada jespada

View GitHub Profile
@jespada
jespada / once-per-jenkins-slave.groovy
Created April 24, 2018 10:11 — forked from tomnomnom/once-per-jenkins-slave.groovy
Run a command once on each Jenkins slave using the CloudBees Workflow / Jenkins Pipeline plugin
// The ArrayList of slaves is not serializable, so fetching them should be marked as @NonCPS so that
// no attempt is made to serialize and save the local state of the function. See here for details:
// https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#serializing-local-variables
@NonCPS
def getSlaves() {
def slaves = []
hudson.model.Hudson.instance.slaves.each {
slaves << it.name
}
return slaves
@jespada
jespada / .editorconfig
Created February 16, 2018 11:39
editorconfig general
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_size = 2
; Use tabs for indentation (Makefiles require tabs)
[{Makefile,**.mk}]
@jespada
jespada / git.config
Created February 25, 2014 06:59
git nice log
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
set -g prefix C-a
unbind %
bind | split-window -h
bind - split-window -v
bind-key k select-pane -U
bind-key j select-pane -D
bind-key h select-pane -L
bind-key l select-pane -R
# status bar
@jespada
jespada / sensu-riemann
Created December 17, 2012 14:02
sensu + riemann
* Sensu
- As a nagios replacement basically, plus the extra goodies tha sensu has itself
(mutators, events filters , handlers, API, etc).
* Riemann
- When state tracking is needed, cause of the powerful stream processing language,
I'm planning to aggregate events from client agents running on riak nodes,
erlang queue size grow, cassandra, others, to track trends and report
on events, the idea is to report posible problems before they became critical.
@jespada
jespada / pub-keys
Created August 25, 2016 14:12
jespada pub keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDHkf7Pnw1swrjJL/m9emEBUzMByLMmLYSCvZn1fZXkc0jwtxV0evHYgbtO3TsZnHr8kMjbWkNHkFHhfnS2yZJ3aWbsIhAuZdqfK8em5JhNfO3xj/wVErC92s6rGiaFNuG3VGOi8iN5hTW3BSJNmUSDSLXVdfmxOvft44T403/cRRtzlYVmBq52rzUvp0KEcPjXLWr3wLOsisnnFOajggfVbeps3gp99DathXvF2PNvr+8NQvfcLfLj6cS7gDcua72Ngig5zXoVX4Wd0yFYNkoR9bpadxfGO53721emxu5x6O1XgiHVWRJcRj+x+zZDx6DQ65Es6LXhNFA77zhxJK5nqX1NPS1BxMxl2ddStOU9W/q9//Hsq/bI8/8ECf2H8CiQU1oS8aL3vxTpOu0ZW5o12Q8xM7G8P62TgnkZccVJ/92POW9LkmXfIYxOg/wmEVtoLGJHAwNe9RCnT1eb1Mh1ge+718H/uB6Xf4l8Blrz8Mv0LKpTN0xN0l9MOGbCt4PNH4fLPuYP2pQyGS48lNOrT2QZ1rraiMyt9+mLaqXbR9x4wk56miH66LLUtgUHENQ1DO/9s8IaES/fXc4KN3dxC8+6yOo0njF4D8aMO4NmkqKenYkuq6DbaeckwUHtH4L33AZHYVS4TCcHTL1pZkXjWitMExLh9y3eD2xXALmpGw== jorge@thor
@jespada
jespada / mate.py
Created December 21, 2013 18:22
test robot
import rg
class Robot:
def act(self, game):
# if we're in the center, stay put
if self.location == rg.CENTER_POINT:
return ['guard']
# if there are enemies around, attack them
for loc, bot in game.robots.iteritems():
@jespada
jespada / xmonad.hs
Created August 6, 2013 13:21
my xmonad conf
--
-- xmonad example config file.
-- https://github.com/ckoch786/Xmonad
-- A template showing all available configuration hooks,
-- and how to override the defaults in your own xmonad.hs conf file.
--
-- Normally, you'd only override those defaults you care about.
--
@jespada
jespada / haproxy.cfg
Created March 9, 2013 21:03
haproxy(1.5) + ssl + websockets (see comments on how to create a .pem file)
defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
timeout connect 5s
timeout client 50s
timeout server 50s
@jespada
jespada / onename
Created October 24, 2015 13:56
Verifying that +jespada is my blockchain ID. https://onename.com/jespada
Verifying that +jespada is my blockchain ID. https://onename.com/jespada