VirtualTam's bookmarks
165 bookmarks found
-
Jenkins - Display Information About Nodes
2016-04-12 1for (agent in hudson.model.Hudson.instance.slaves) { 2 println('===================='); 3 println('Name: ' + agent.name); 4 println('getLabelString: ' + agent.getLabelString()); 5 println('getNumExectutors: ' + agent.getNumExecutors()); 6 println('getRemoteFS: ' + agent.getRemoteFS()); 7 println('getMode: ' + agent.getMode()); 8 println('getRootPath: ' + agent.getRootPath()); 9 println('getDescriptor: ' + agent.getDescriptor()); 10 println('getComputer: ' + agent.getComputer()); 11 println('\tcomputer.isAcceptingTasks: ' + agent.getComputer().isAcceptingTasks()); 12 println('\tcomputer.isLaunchSupported: ' + agent.getComputer().isLaunchSupported()); 13 println('\tcomputer.getConnectTime: ' + agent.getComputer().getConnectTime()); 14 println('\tcomputer.getDemandStartMilliseconds: ' + agent.getComputer().getDemandStartMilliseconds()); 15 println('\tcomputer.isOffline: ' + agent.getComputer().isOffline()); 16 println('\tcomputer.countBusy: ' + agent.getComputer().countBusy()); 17 //if (agent.name == 'NAME OF NODE TO DELETE') { 18 // println('Shutting down node!!!!'); 19 // agent.getComputer().setTemporarilyOffline(true,null); 20 // agent.getComputer().doDoDelete(); 21 //} 22 println('\tcomputer.getLog: ' + agent.getComputer().getLog()); 23 println('\tcomputer.getBuilds: ' + agent.getComputer().getBuilds()); 24}
-
item = Jenkins.instance.getItemByFullName("your-job-name-here") // THIS WILL REMOVE ALL BUILD HISTORY item.builds.each() { build -> build.delete() } item.updateNextBuildNumber(1)
-
URL handling in PHP
2015-08-14 -
Code review memes
2015-06-12 Why Jenkins don't love me? http://m.memegen.com/oqruus.jpg Much stable. Success. https://raw.githubusercontent.com/ahmednuaman/meme-says-jenkins/master/assets/img/build-blue.jpg A code review fail http://m.memegen.com/oojxsc.jpg No idea https://regmedia.co.uk/2015/01/28/dog_meme_.jpg We will invade http://www.mememaker.net/static/images/memes/3675436.jpg Your own code http://devopsreactions.tumblr.com/post/120682285491/reading-your-own-code I have done my code reviews http://cdn.meme.am/instances/500x/58587913.jpg Too complex? https://i.imgur.com/nXrYiub.jpg Ship it https://qph.ec.quoracdn.net/main-qimg-d656a4e5537062cd665afe7c9ff46c53
-
Unboxing Minitel 1
2015-05-26 Trve Minitel 1.0 build #3615
-
United Diversity - Library
2015-03-15 A collection of misc. resources: FLOSS, ecology, architecture...
-
Python unit testing frameworks: Nose, Pytest
2015-02-13 Python's built-in unittest module is quite cool, but a bit limited and way too verbose (read: it's quite not easy to incite developers to write unit tests)
I'm currently looking for more dev-friendly solutions, the key points being:
- writing test code should be easy and straight-forward -keep the focus on "what to test" instead of "how to transcribe a process to a test"
- parallelization! -we, spoiled developers, should make good use of our way-too-many-cores build machines...
- complete feature set!
- we don't want to just run tests...
- coverage reports (find dead/weak/untested code sections)
- output formatting (JUnit-XML seems to be quite a common format out there)
There seem to be 3 solutions in Python:
- stock unittest + project-dependent customizations / test helpers
- nosetests
- py.test
And 2 ways of gettings things done:
- keeping things stock: no external dependency, project-specific implementation...
- using a test framework: one more module in your (test) virtualenv, more concise tests, more features (// run, code coverage, etc.)
Some links:
-
Minetest Essentials
2014-09-18 [Core]
[Mapper]
[Mods:Trivia] (this is going to be an incremental section, I guess)
- Pop ones: http://www.minetest.net/mods
- Carbone (mod collection): https://forum.minetest.net/viewtopic.php?id=9033
- ZOMG! There's a (non-sonic) screwdriver in the default game \o/
[Mods:Biomes]
- Snow Biomes: https://forum.minetest.net/viewtopic.php?f=11&t=2290
- Snow Drift: https://forum.minetest.net/viewtopic.php?pid=104580
[Mods:Blocks]
- Torches: https://forum.minetest.net/viewtopic.php?f=11&t=6099
- Beds: https://forum.minetest.net/viewtopic.php?f=11&t=2625
- More Ores: https://forum.minetest.net/viewtopic.php?f=13&t=549
- Castles+: https://forum.minetest.net/viewtopic.php?f=11&t=7159
[Mods:Gameplay]
- SimpleMobs: https://forum.minetest.net/viewtopic.php?id=3063
- Animals: https://forum.minetest.net/viewtopic.php?f=11&t=629
- Creatures: https://forum.minetest.net/viewtopic.php?f=11&t=9240
- Peaceful NPC: https://forum.minetest.net/viewtopic.php?f=11&t=4167
- Item features: https://forum.minetest.net/viewtopic.php?f=11&t=3188
- Advanced NPC https://github.com/hkzorman/advanced_npc
- Mobs Redo https://github.com/tenplus1/mobs_redo
- MG Villages https://github.com/Sokomine/mg_villages
[Mods:Misc]
- Achievements: https://forum.minetest.net/viewtopic.php?id=4870
- Player stats: https://forum.minetest.net/viewtopic.php?f=11&t=8127
[Mods:Nature]
- Farming Plus: https://forum.minetest.net/viewtopic.php?id=2787
- Food: https://forum.minetest.net/viewtopic.php?id=2960
- More Trees: https://forum.minetest.net/viewtopic.php?id=4394
- Plant Life Pack: https://forum.minetest.net/viewtopic.php?f=11&t=3898
[Mods:Tech]
- Carts: https://forum.minetest.net/viewtopic.php?f=11&t=2451
- Mesecons: https://forum.minetest.net/viewtopic.php?f=11&t=628
- Fence gate: https://forum.minetest.net/viewtopic.php?f=9&t=9932
[Mods:World]
- Nether: https://forum.minetest.net/viewtopic.php?f=11&t=5790
- Skyland: https://forum.minetest.net/viewtopic.php?f=11&t=9152
- Teleportation
[Textures]