Skip to content

Instantly share code, notes, and snippets.

View herbertUG's full-sized avatar
:octocat:
Javascript!

Herbert Bruno Oketa Yot herbertUG

:octocat:
Javascript!
View GitHub Profile
@herbertUG
herbertUG / Python.md
Last active September 8, 2019 14:59 — forked from nrollr/Python.md
Python environments in macOS

Python environments in macOS

The latest version of macOS 10.13.3 has Python 2.7.10 installed by default, yet Python has been available on macOS and previously OS X for quite a while now.

Consult the Apple's Open Source Reference Library, and browse through the various releases of the OS to find out which Python version was included). But what if you have a project which requires Python 3 ?

The following instructions will guide you through the process of:

  • installing Python 3 using Homebrew
  • running multiple Python verions as sandboxed environments
@herbertUG
herbertUG / Step 1: Create API User.MD
Created January 27, 2021 11:45 — forked from chaiwa-berian/Step 1: Create API User.MD
Testing MTN MoMo Collection API in Sandbox using Postman

A. Checklist

  • To create an API User, you need the following things in place: X-Reference-Id and Ocp-Apim-Subscription-Key

1. X-Reference-Id

  • This is used as User ID since the Sandbox is a Mock Environment so we kinda create our own ids and send them over to the sandbox so it can uniquely identify the user
  • Get the value for this here: https://www.uuidgenerator.net/api/version4
  • Remember to keep this safely as we will use it when configuring our POST request
  • Lets say you have your X-Reference-Id as: 9f92971b-cd2e-4feb-9053-0b14d53ac4f5

2. Ocp-Apim-Subscription-Key

  • Get this from the Primary or Secondary Key of your Collections | Enable remote collection of bills, fees or taxes subscription.
@herbertUG
herbertUG / gist:27f7b93056bb2d93625332fa76130699
Created September 7, 2022 01:54
Set up macOS development env
# Install macOS Command Line Tools
xcode-select --install
sudo softwareupdate --install -aR
echo 'ZSH_DISABLE_COMPFIX="true"' >> ~/.zshenv
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Configure and cleanup Homebrew installation
@herbertUG
herbertUG / docker-compose.yml
Created March 18, 2024 04:01
Set up docker with bookstack and nginx_proxy_manager
---
version: "2"
services:
bookstack:
image: lscr.io/linuxserver/bookstack
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- APP_URL=http://<yoururl>:6875
@herbertUG
herbertUG / yaml
Created March 19, 2024 07:14
Setting up docker containers having bookstack, nginx proxy manager and gitlab
version: "2"
services:
bookstack:
image: lscr.io/linuxserver/bookstack
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- APP_URL=<url_you_expect_to_call>
- DB_HOST=bookstack_db