Skip to content

Instantly share code, notes, and snippets.

View hgomez's full-sized avatar

Henri Gomez hgomez

View GitHub Profile
@hgomez
hgomez / NotSoOldChapNeverDie.MD
Created March 17, 2024 19:11
MacBookPro 10.1 / OSX Sonoma (thanks to OpenCore Legacy Patcher)

MacBookPro 10.1 - CPU i7 3740QM

$ sysctl -n machdep.cpu.brand_string
Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz

OSX Sonoma

@hgomez
hgomez / OldChapNeverDie.MD
Last active March 10, 2024 17:40
MacBookPro 5.3 / OSX Monterey (thanks to OpenCore Legacy Patcher)

MacBookPro 5.3 - CPU Core2Duo 2.66Ghz

henri@OldMBP-Henri Downloads % sysctl -n machdep.cpu.brand_string
Intel(R) Core(TM)2 Duo CPU     T9600  @ 2.80GHz

OSX Montery

henri@OldMBP-Henri ~ % sw_vers
@hgomez
hgomez / mint17to171.md
Last active February 17, 2024 16:57
Update Mint 17 Cinnamon to 17.1 (RC)

Mint 17.1 (Rebecca), is still based on 14.04 LTS release (14.04.1 LTS, Trusty Tahr) so update process only concern Mint own packages.

Backup source (Qiana)

sudo cp /etc/apt/sources.list.d/official-package-repositories.list  /etc/apt/sources.list.d/official-package-repositories.list.bak

Change Mint source to Rebecca

sudo sed -i 's/qiana/rebecca/' /etc/apt/sources.list.d/official-package-repositories.list
@hgomez
hgomez / jenkins-plugins-batch-install.md
Last active December 11, 2023 07:47
Mass install/update of Jenkins Plugins

Scripted Jenkins Plugins install

Jenkins has a very rich catalog of plugins and it's quite easy to install and update them via UI. BTW, when you want to add tons of plugin via UI, it's a fairly long and boring procedure.

Hopefully, mass installation (or update) could be easy using a simple bash script (curl/python required) :

Create a file containing plugins to be installed (or updated), ie iplugins :

@hgomez
hgomez / download-java8.sh
Created March 19, 2014 20:39
wget to download Java 8
wget --continue --no-check-certificate -O jdk-8-linux-x64.tar.gz --header Cookie: oraclelicense=a http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz
@hgomez
hgomez / howto-openstack-zed-rocky-linux-9.1.md
Last active March 10, 2023 16:59
How to install OpenStack Zed on RockyLinux 9.1 - Using DevStack

OpenStack Zed on Rocky Linux 9.1 - Using DevStack

Let see how to deploy OpenStack Zen on Rocky Linux 9.1

This time, I will try to use DevStack

Rocky Linux 9.1

Install Rocky Linux 9.1, minimal setup, using DVD ISO

@hgomez
hgomez / gencert.sh
Created February 28, 2014 12:22 — forked from bradland/gencert.sh
#!/bin/bash
# Bash shell script for generating self-signed certs. Run this in a folder, as it
# generates a few files. Large portions of this script were taken from the
# following artcile:
#
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html
#
# Additional alterations by: Brad Landers
# Date: 2012-01-27
@hgomez
hgomez / Fix AC9560 on Fedora 32.md
Last active November 17, 2022 22:31
How to fix unstable Intel Wireless-AC 9560 on Fedora 32

Problem

I have a Dell Inspiron 15 7586 with Fedora 32. Wifi AC is provided by an Intel AC 9560.

dmesg | grep iwlwifi
...
[   16.978385] iwlwifi 0000:00:14.3: Detected Intel(R) Wireless-AC 9560, REV=0x318
...
@hgomez
hgomez / jenkins-set-credis.groovy
Last active November 8, 2021 12:01
Jenkins Groovy script to set CredentialsId
import hudson.model.*
import hudson.maven.*
import hudson.tasks.*
import hudson.scm.*
def match_url = "http://svn.mycorp.com/svn/devops"
for(item in Hudson.instance.items) {
hasClaim = false;
if (item.scm instanceof SubversionSCM)
@hgomez
hgomez / oracledownload
Last active October 6, 2021 09:58
Oracle JVM download using curl/wget
# Downloading Oracle JVM without browser
Oracle requires you to accept its licence agreement before downloading its JVM.
It's a pain for those of us who do automation, native packages, Jenkins JVM deployment on slave...
I used Firefox and Firebug to sniff network exchanges.
## HTTP Request :
GET /otn-pub/java/jdk/6u39-b04/jdk-6u39-linux-i586.bin?AuthParam=1359814101_9685f919f8b3113a89574ec4570d47b2 HTTP/1.1