Skip to content

Instantly share code, notes, and snippets.

View jsrois's full-sized avatar

Javier Sánchez Rois jsrois

View GitHub Profile
@rowan-m
rowan-m / gist:1026918
Created June 15, 2011 11:34 — forked from jedi4ever/gist:898114
update jenkins Updatecenter from CLI
$ java -jar jenkins-cli.jar -s http://localhost:9000 install-plugin findbugs
findbugs is neither a valid file, URL, nor a plugin artifact name in the update center
No update center data is retrieved yet from: http://updates.jenkins-ci.org/update-center.json
findbugs looks like a short plugin name. Did you mean 'null'?
# Specifying a full URL works!
$ java -jar jenkins-cli.jar -s http://localhost:9020 install-plugin http://updates.jenkins-ci.org/download/plugins/AdaptivePlugin/0.1/AdaptivePlugin.hpi
# Get the update center ourself
#=Navigating=
visit('/projects')
visit(post_comments_path(post))
#=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click_on('Button Value')
@trikitrok
trikitrok / camels_snakes_pascals_and_kebab.md
Last active August 29, 2017 07:06
Camels, snakes, pascals and kebabs kata

Write a code that change keywords between different naming conventions.

Examples:

(format :hello-koko :using :camel-case) -> :helloKoko

(format :hello-koko :using :snake-case) -> :hello_koko

(format :hello-koko :using :pascal-case) -> :HelloKoko