Skip to content

Instantly share code, notes, and snippets.

View onxssis's full-sized avatar
🏠
Working from home

Onassis Osunwa onxssis

🏠
Working from home
View GitHub Profile
@onxssis
onxssis / sendmail_setup.md
Created April 15, 2021 22:21 — forked from kany/sendmail_setup.md
Setup SENDMAIL on Mac OSX Yosemite
@onxssis
onxssis / private_fork.md
Created August 7, 2020 12:01 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@onxssis
onxssis / docker-cleanup-resources.md
Created July 24, 2019 22:03 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

// add this to hooks.js in hooks.after.providersBooted fn
View.global('absoluteUrl', function (path) {
const req = this.resolve('request')
let baseUrl = req.secure() ? 'https://' : 'http://'
baseUrl += req.headers().host + '/'
if (typeof path !== 'undefined') {
path = (path.substring(0, 1) === '/')
? path.substring(1)
: path