Skip to content

Instantly share code, notes, and snippets.


Peter Kitonga peterkitonga

View GitHub Profile
ricardo-dlc /
Last active Jan 9, 2023
Update Jenkins Inside a Docker Container

First identify your image.

$ docker ps --format "{{.ID}}: {{.Image}} {{.Names}}"
3d2fb2ab2ca5: jenkins-docker jenkins-docker_1

Then login into the image as root.

$ docker container exec -u 0 -it jenkins-docker_1 /bin/bash
silver-xu /
Last active Jan 26, 2023
Setup a Node.js project with Typescript, ESLint, Prettier, Husky

Setup a Node.js project with Typescript, ESLint, Prettier, Husky


Starting a personal node project could be easy; starting a team node project could be challenging.

I am a developer currently working in SEEK Australia.

In my experience, common mistakes developer make when starting a projects are:

  • No Linting
monkishtypist / hosts
Last active Dec 27, 2022
Nginx virtual host example for Windows Subsystem for Linux (WSL)
View hosts
# Location: /mnt/c/windows/system32/drivers/etc/hosts virtualhost.local www.virtualhost.local
amitbend / nodemailer with Zoho
Last active Oct 17, 2022
nodemailer with Zoho
View nodemailer with Zoho
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
host: '',
port: 465,
secure: true, //ssl
auth: {
user: '',
pass: 'yourpassword'
xameeramir / default nginx configuration file
Last active Jan 27, 2023
The default nginx configuration file inside /etc/nginx/sites-available/default
View default nginx configuration file
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
h1kkan / nginx.conf
Created Mar 3, 2016 — forked from denys281/nginx.conf
phpmyadmin nginx virtual host (php-fpm)
View nginx.conf
server {
# Listen on port 81
listen 81;
# Server name being used (exact name, wildcards or regular expression)
# server_name;
root /usr/share/phpmyadmin;