Skip to content

Content classified under "Tutorial"

Page 3 of 12

Run a Rundeck Command as a Different User

September 6, 2018Categories: Software, Tutorial
TL;DR: Add the rundeck user to the sudoers and then use sudo Installing rundeck on Ubuntu usually results in creating a rundeck user. We had a bunch of issues creating a rundeck job because we needed to execute a command as a specific user (only that user had access to some resources…

Build a Django Docker Image with Cx-Oracle

July 17, 2018Categories: Software, Tutorial
TL;DR: Don't use alpine images. There's a glibc issue . We added a cx-oracle dependency to one of our django apps. As the previous image was just an alpine basic (python) image we needed to put in place a process to build the new image. Initially, I've tried to use the same alpine image (oh…

Execute a Command in Every Directory with Bash

July 13, 2018Categories: Software, Tutorial
TL;DR : Use a find-based loop The other day I was wondering how to execute a command in each sub-directory of a project. In python , you have os.walk . In C , I would've probably written myself something just for fun etc. In shell , I know you have find which is capable of finding all…

Build Update Statements with Oracle SQL Developer and Python

June 18, 2018Categories: Software, Tutorial
By default, SQL Developer can only export INSERT statements. This is quite unfortunate when one needs to build UPDATE statements because their syntax is different. I've tried to use regexp to convert the statements but I didn't find it not straight forward at all. So, I cam up with the following…

Run Restricted Groovy API in Jenkins

March 16, 2018Categories: IT, Tutorial
The more recent versions of Jenkins have improved on security. Unfortunately, a side-effect is that scripts which were running before would fail now. An example is: ... which would list the projects defined in Jenkins. Fortunately, you can have access to theis API via the In-process Script Approval…

Fix Missing In-process Script Approval in Jenkins

March 16, 2018Categories: IT, Tutorial
Normally, when you have a script or a method to be approved, you should see the In-process Script Approval entry in your Jenkins' configuration: Unfortunately, the In-process Script Approval entry in Jenkins' configuration is not always shown, even though we have items to be approved. I found…

Bulk Change the Date on Photos

March 13, 2018Categories: Random, Tutorial
I've got a new camera and I forgot to update the date. Consequently, the first photos are taken on 01/01/2017 instead of 04/03/2018. Given that more than 100 photos were taken, it would be a pain to change them one by one. So, here are the steps I did update the date: Download exiv2 . Just search…

Fix Jenkins Ignored Plugin "Check Now"

March 13, 2018Categories: IT, Tutorial
TL;DR: Check if a browser extension is blocking your request when you click Check Now While playing more with jenkins, I've encountered an error while requesting Check Now for plugin updates: it seemed that my request got ignored. I've tried different URLs (with and without HTTPS, stable or not…

Fade colors in Corona using Transitions

March 11, 2018Categories: Software, Tutorial
Corona provides transitions. According to this post , a transitionTo(...) would suffice: The user can also cancel the transition if needed (which is waht I would need to do later in the code). In case you're into custom stuff and the easing functions are not enough, you can create your own . A…

Fade Colors on a Polygon using the Game Loop

March 11, 2018Categories: Software, Tutorial
One of the features I need to implement is to smoothly change the fill/stroke color of a polygon, like this: A manual approach In order to better understand the mechanics, I built my own fading PoC. First, one would need to build the polygon: In this particular case, I have a text field and a…

All categories