Skip to content

Instantly share code, notes, and snippets.

@jedi4ever
jedi4ever / gist:898114
Created April 1, 2011 13:06
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
@jedi4ever
jedi4ever / patrick-unomaly.md
Last active February 22, 2019 09:40
Impression of 1 week exchange

I had a long overdue holiday planned. For many people this would mean going somewhere and relax. Turns out I'm not the sight-seeing person , I'm more of a people-seeing person: talking to people and exchanging new ideas is what makes me tick. Having been a consultant for several years, you learn the most from new environments. Interns would have that opportunity to apply , but why can't people with more experience?

So I launched on twitter the idea of what company is willing to do an exchange. After receiving several replies I got invited by Ramon Van Alteren from Unomaly and deciced to take a leap of faith.

It felt like the excitement of starting a new job. Scary , because you don't know what to expect.

@jedi4ever
jedi4ever / feedback.md
Last active October 8, 2018 14:04
Datadog logging feedback

Some feedback on datadog log explorer:

07 Oct 2018:

  • the pricing is per event , all usual log saas are per GB , it is hard for me to guess how much it would cost

  • it is not 100% clear that when I use exclusion that it will count as an event or not

  • it wasn't clear that I needed the latest of the version 6 , I had latest of 5 dd-agent (took me an hour to realize)

  • in log explorer headers should stay on top (like a freeze row in google docs) + sidebar stays visible

  • in log explorer I'd like to change the column order , not just last added at the end

  • if I specify a metric that is in ms, why show 1 ms as 1000ns

@jedi4ever
jedi4ever / redis_sentinel.sh
Created May 19, 2015 11:52
Redis - Redis Sentinel - Docker
#!/bin/bash
DOCKER_IP=$(ip addr show docker0|grep "inet "|sed -e 's/^[ ]*//g'| cut -d ' ' -f 2| cut -d '/' -f 1)
docker stop redis_0
docker stop redis_1
docker stop sentinel_0
docker stop sentinel_1
docker stop sentinel_2
@jedi4ever
jedi4ever / puppet-demo.rb
Created December 4, 2011 12:20
using puppet inside ruby
require 'puppet'
require 'pp'
prefix="demo-puppet"
Puppet[:modulepath]=File.join(prefix,"modules")
Puppet[:manifestdir]=File.join(prefix,"manifests")
Puppet[:manifest]=File.join(prefix,"manifests","roles","logger.pp")
#Puppet[:manifest]=File.join(prefix,"manifests","site.pp")
code="import '#{Puppet[:manifest]}'\n"
@jedi4ever
jedi4ever / index.js
Created December 6, 2015 18:07 — forked from joshhunt/index.js
Socket.io live reload for Apple TV TVML app
import 'babel-polyfill';
import firstView from 'views/first';
import * as liveReload from 'lib/liveReload';
App.onLaunch((launchOptions) => {
firstView();
liveReload.connect(launchOptions);
});
@jedi4ever
jedi4ever / pom.xml
Created April 13, 2011 08:30
using fat-32 lib: create a new floppy img from all files in a directory (non recursive)
package be.jedi.dir2floppy;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import de.waldheinz.fs.FileSystem;
import de.waldheinz.fs.FsDirectoryEntry;
@jedi4ever
jedi4ever / talk description.md
Last active February 8, 2018 07:19
Fronteers BE Talk Description 22 February

Deep Dive - Puppeteer a Headless Chrome Node API

Ah! the joys of writing real browser tests ... Selenium and it's derived saas services are pretty slow or expensive. Not ideal for your snappy feedback loop while developing.

headless browsers like Phantomjs, Casperjs , Slimerjs fill in some gap trading speed for some compatibility. Puppeteer is the new kid on the block for automating a Chrome headless browser.

In this talk I'll:

  • walk you through the API using real world scenario's we used for our Platform Zender.tv
  • explain how to integrate it with react/jest and do parallel testing