Skip to content

Instantly share code, notes, and snippets.

View SamLiu79's full-sized avatar

SamLiu SamLiu79

  • ActiveNetwork
  • Xi'an
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
@zhchbin
zhchbin / index.html
Created December 4, 2012 07:21
Node-webkit hotkey api proposal(Refactor)
<!DOCTYPE>
<html>
<head>
<title>Hotkey Demo</title>
<script type="text/javascript">
function log(msg) {
document.getElementById('log').textContent += msg + '\n';
}
function error(msg) {
@snobear
snobear / clone.py
Last active October 17, 2023 06:39
Clone VM from template with pyVmomi
#!/usr/bin/env python
"""
NOTE:
This gist has been moved to EZmomi:
https://github.com/snobear/ezmomi
Give it a star or fork. Contributions are more than welcome. I'm hoping it will become an easy cli tool for
common VMware tasks.