Skip to content

Posts...

Page 4 of 42

Remove Large Files in Git

September 6, 2018Categories: Software, Tutorial
TL;DR: BFG is your friend. java -jar bfg.jar -b 50M myrepo-bfg.git for example The other day I've committed a rather large file by mistake (generated movie of the git commit history). This was a bit annoying because all other developers would have suddenly to check out a 1G file :( with no LFS…

Fix 418 Unused Error on Dreamhost

September 6, 2018Category: IT
TL;DR: Have a look at the error log and then to the violated rule. Suddenly, I started to get 418 errors on one of my sites. I'd just get 418 from the source and as they say: that was that . Normally, I don't even notice such errors, but this one broke a bunch of pages. The 418 errors look in…

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…

Fix Not Found Package Errors with .staging Warnings on Npm Install

September 5, 2018Category: Software
TL;DR : Clean the npm cache and the package-lock.json The other day I started to get ENOENT warning when running npm install like: only to have the compilation failing with something like: I've looked into it and the conclusion was that the error occurred because I've updated my node/npm…

Fix TS1144 for e.g. flex-layout

September 5, 2018Category: Software
TL;DR: Update your typescript version dependency. These days we're updating some angular apps to the most recent version (6 at the time of writing this entry). Everything is nice, with the exception of various errors we get because of the other dependencies. The most recent one was a TS114…

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…

How to Develop Pipelines - Some Best Practices

May 30, 2018Categories: IT, Software
These days I'm developing a bunch of pipelines to automatise the build/deployment process. Here are some things I've learned: How to develop Initially, I've started developing the pipeline as any other program: Create a repository, fire my editor, write a Jenkinsfile and use the Pipeline script…

Sending HTTP requests with Jenkins Pipelines

May 24, 2018Category: IT
As part of the CI/CD process, we might need to communicate with some external services' APIs (e.g. notifying elastic search of a new index alias). I found an easy way to do it: Using a jenkins plugin. Jenkins plugin Jenkins has a HTTP request plugin . If you install it (or have it installed), you…
PreviousNext

All tags