Skip to content

Instantly share code, notes, and snippets.

View uchilaka's full-sized avatar

Uchenna Chilaka uchilaka

View GitHub Profile
@uchilaka
uchilaka / uninstalling_from_m1_mac.md
Last active December 8, 2021 13:51
Notes on Uninstalling Homebrew

Notes on Uninstalling Homebrew

from macOS Monterey on M1

You might get this console message when uninstalling homebrew

~ sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
Password:
Warning: This script will remove:
@uchilaka
uchilaka / cloudbuild.yaml
Created November 27, 2020 09:48 — forked from tam7t/cloudbuild.yaml
Access Google Secret Manager from Cloud Build step
# Usage: gcloud builds submit --no-source
#
# Remember to first grant the cloud build service account permissions to access
# secret 'foo'
#
# gcloud beta secrets add-iam-policy-binding foo \
# --member=serviceAccount:<project-number>@cloudbuild.gserviceaccount.com \
# --role=roles/secretmanager.secretAccessor
steps:
# fetch the secret and write to a volume
@uchilaka
uchilaka / mock_dialogs.js
Created November 13, 2020 17:05 — forked from apeckham/mock_dialogs.js
mock javascript alert, confirm, prompt
var MockPrompt = {
install: function() {
MockPrompt.message = undefined;
MockPrompt.value = undefined;
MockPrompt.returnValue = undefined;
MockPrompt.originalPrompt = window.prompt;
window.prompt = function(message, value) {
MockPrompt.message = message;
MockPrompt.value = value;
@uchilaka
uchilaka / README.md
Last active September 27, 2020 15:04
Jupyter Base Notebook with Docker for Mac
@uchilaka
uchilaka / example.code-workspace
Created August 30, 2020 14:59
Workspace / Settings examples for VSCode IDE
{
"folders": [
{
"name": "Health Worker Logger",
"path": ".",
}
],
"extensions": {
"recommendations": [
"msjsdiag.debugger-for-chrome",
{
"folders": [
{
"path": "packages/libs/js-lib",
"name": "JS Lib"
},
{
"path": "packages/apps/admin",
"name": "Admin"
},
@uchilaka
uchilaka / .gitconfig
Created June 9, 2020 13:51 — forked from rambabusaravanan/.gitconfig
Git Diff and Merge Tool - IntelliJ IDEA
# Linux
# add the following to "~/.gitconfig" file
[merge]
tool = intellij
[mergetool "intellij"]
cmd = /usr/local/bin/idea merge $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE") $(cd $(dirname "$BASE") && pwd)/$(basename "$BASE") $(cd $(dirname "$MERGED") && pwd)/$(basename "$MERGED")
trustExitCode = true
[diff]
@uchilaka
uchilaka / brakeman-report.sh
Last active November 14, 2019 17:04
Brakeman Report Script
#!/bin/bash
#
## Run Brakeman Report
#
# IMPORTANT!!!
# 1. Make sure you have `realpath` from the coreutils package installed (via brew). To
# check this, run `which realpath`. To install, run `brew install coreutils`
#
# 2. Make sure you have the brakeman gem installed on your machine. If not,
# run `gem install brakeman` from your machine $HOME to do so.
@uchilaka
uchilaka / docker-compose.yml
Created October 7, 2019 14:18 — forked from pantsel/docker-compose.yml
example docker-compose.yml for kong, postgres and konga
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong
@uchilaka
uchilaka / cloudberry_notes_fedora.md
Last active February 20, 2019 09:32
Getting Started with CloudBerry Backup for Linux

Setting up CloudBerry backup on Fedora 26

v26 happens to be what I have installed as I go through this process

Installation

Steps to install the cbb and other utilities on the candidate machine you would like to backup. still need to figure out if this machine is able to serve as an on-network resource to configure others. More to come on that. Also, worth mentioning is that this tool comes with a web interface for easier management of your backup configs. I intend to explore that and reporting back.

Step 1: Download the file