Skip to content

Instantly share code, notes, and snippets.

View okere-prince's full-sized avatar

okere-prince

  • Paris
View GitHub Profile
@okere-prince
okere-prince / setup-users.groovy
Created May 6, 2021 19:50 — forked from wiz4host/setup-users.groovy
jenkins init.groovy.d script for configuring users
import jenkins.*
import hudson.*
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*
import hudson.plugins.sshslaves.*;
import hudson.model.*
import jenkins.model.*
import hudson.security.*
@okere-prince
okere-prince / golang_job_queue.md
Created May 11, 2021 10:21 — forked from harlow/golang_job_queue.md
Job queues in Golang
@okere-prince
okere-prince / README.md
Created October 17, 2021 12:35 — forked from obfusk/README.md
building chromium (on ubuntu 12.04) w/ extra ffmpeg codecs

VM

$ mkdir -p ~/tmp/build/chromium-vagrant && cd ~/tmp/build/chromium-vagrant
$ vim Vagrantfile

$ vagrant up && vagrant halt
# use virtualbox to add 20GB swap (/dev/sdb)

$ vagrant up && vagrant ssh
@okere-prince
okere-prince / Jenkinsfile
Created April 5, 2022 22:01 — forked from JCotton1123/Jenkinsfile
Sample Jenkinsfile for Python project
pipeline {
options {
buildDiscarder(logRotator(numToKeepStr: '10')) // Retain history on the last 10 builds
ansiColor('xterm') // Enable colors in terminal
timestamps() // Append timestamps to each line
timeout(time: 20, unit: 'MINUTES') // Set a timeout on the total execution time of the job
}
agent {
// Run this job within a Docker container built using Dockerfile.build
// contained within your projects repository. This image should include
@okere-prince
okere-prince / sftp.yaml
Created May 3, 2022 18:11 — forked from jujhars13/sftp.yaml
kubernetes pod example for atmoz/sftp
apiVersion: v1
kind: Namespace
metadata:
name: sftp
---
kind: Service
apiVersion: v1
metadata: