Skip to content

Instantly share code, notes, and snippets.

View oseme-techguy's full-sized avatar
🙂
The Infinite Improbability Drive!

Odigie Oseme oseme-techguy

🙂
The Infinite Improbability Drive!
View GitHub Profile
@oseme-techguy
oseme-techguy / install-comodo-ssl-cert-for-nginx.rst
Created November 21, 2020 13:15 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@oseme-techguy
oseme-techguy / Knex-Setup.md
Created January 11, 2021 15:45 — forked from NigelEarle/Knex-Setup.md
Setup Knex with Node.js

Knex Setup Guide

Create your project directory

Create and initialize your a directory for your Express application.

$ mkdir node-knex-demo
$ cd node-knex-demo
$ npm init
@oseme-techguy
oseme-techguy / rsa.java
Created May 14, 2021 19:27 — forked from jbrown17/rsa.java
Quick, simple implementation of RSA encryption algorithm without external libraries
import java.awt.EventQueue;
import java.io.*;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Random;
import java.util.Scanner;
/**
* Quick and dirty implementation of the RSA algorithm
$ cat /etc/systemd/system/jenkins.service
[Unit]
Description=Jenkins - open source automation server
Before=multi-user.target
After=network-online.target
[Service]
ExecStart=/etc/init.d/jenkins start
ExecStop=/etc/init.d/jenkins stop
CapabilityBoundingSet=~CAP_SYS_PTRACE
@oseme-techguy
oseme-techguy / gist:459c6d7978ee122145d629e960a7e021
Created May 19, 2021 16:12 — forked from mgedmin/gist:9547214
Setting up a Jenkins slave on Linux
# This is how you add a Jenkins slave
# On master:
sudo -u jenkins -H ssh-keygen
# On slave
adduser --system --group --home=/var/lib/jenkins-slave --no-create-home --disabled-password --quiet --shell /bin/bash jenkins-slave
install -d -o jenkins-slave -g jenkins-slave /var/lib/jenkins-slave