Skip to content

Instantly share code, notes, and snippets.

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

Chuma Umenze chumaumenze

🏠
Working from home
View GitHub Profile
@chumaumenze
chumaumenze / private_fork.md
Created December 24, 2022 21:38 — forked from 0xjac/private_fork.md
Create a private fork of a public repository
View private_fork.md

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 git@github.com:usi-systems/easytrace.git

@chumaumenze
chumaumenze / go.mod
Created February 23, 2022 21:21
Mongo Change Stream in Golang
View go.mod
module mongo-changestream
go 1.17
require (
github.com/icrowley/fake v0.0.0-20180203215853-4178557ae428
go.mongodb.org/mongo-driver v1.8.3
)
@chumaumenze
chumaumenze / envoy-schema.json
Created February 5, 2022 20:22 — forked from linux-china/envoy-schema.json
Envoy configuration json schema for Json and Yaml
View envoy-schema.json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Envoy Proxy config schema",
"description": "JSON Schema for Envoy Proxy config",
"type": "object",
"properties": {
"admin": {
"type": "object",
"description": "Configuration for the local administration HTTP server",
"properties": {
View Setup Automatic Deployment with Git with a VPS.txt
#server side:
#server live directory: /var/www/domain.com
#server repository: /var/repo/site.git
1. clone project from git/bitbucket into /var/www/domain.com or init the folder by "git init".
2. go to /var/repo/site.git and init the folder as git bare
$git init --bare
--bare means that our folder will have no source files, just the version control.
@chumaumenze
chumaumenze / defauts.duti
Created September 13, 2021 12:18 — forked from apfelchips/defauts.duti
set file-associations on macOS: ~ 🥖.config 🥖duti 🥖defauts.duti
View defauts.duti
# duti settings file
# src: https://gist.github.com/apfelchips/0073cb3e8d186115f590d318998c1025
# mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/duti/" && curl -L "https://git.io/JRtzH" -o "${XDG_CONFIG_HOME:-$HOME/.config}/duti/default.duti"
# duti-apply wrapper: alias duti-apply='duti -v "${XDG_CONFIG_HOME:-$HOME/.config}/duti"'
## duti documentation https://web.archive.org/web/20180901095433/http://duti.org/documentation.html
## see also: https://github.com/Lord-Kamina/SwiftDefaultApps#readme
# List of MIME Types:
@chumaumenze
chumaumenze / vmware.txt
Created January 7, 2021 10:06 — forked from rkennesson/vmware.txt
VMWare - hide the fact that you are running in a VM
View vmware.txt
#https://www.google.com/search?q=smbios.reflecthost&oq=smbios.r&aqs=chrome.0.0j69i57j0l4.2850j0j7&sourceid=chrome&ie=UTF-8 | smbios.reflecthost - Google Search
#http://www.bitcon.be/how-to-install-an-hp-branded-windows-os-as-a-virtual-server/ | How to install an HP branded Windows OS as a virtual server | BITCON - IT consultants
#https://communities.vmware.com/thread/162241?tstart=0 | This system is not supported platform |VMware Communities
#https://superuser.com/questions/199906/how-to-edit-bios-information-for-a-virtual-machine-in-vmware | How to edit BIOS information for a virtual machine in VMWare? - Super User
#http://www.insanelymac.com/forum/topic/292170-how-to-spoof-real-mac-in-vmware/ | How to spoof real Mac in VMware - Multi-booting and Virtualisation - InsanelyMac Forum
Method 1: edit VMX file for the specific VM
#add this line
SMBIOS.reflectHost = TRUE
View install_app.sh
#!/bin/bash -xe
export DEBIAN_FRONTEND=noninteractive
apt-get -y update
# Install Apache and PHP
apt install -y apache2 php libapache2-mod-php
mv /var/www/html/index.html /var/www/html/index.orig.html
echo "<h1>Azure Resource Deployment confirmed.</h1>
@chumaumenze
chumaumenze / List of Countries
Last active March 25, 2023 14:35
Full list of countries with official state name, aplha-2 and aplha-3 code, and ccTLD.
View List of Countries
Full list of countries with official state name, aplha-2 and aplha-3 code, and ccTLD.
@chumaumenze
chumaumenze / HTML2PDF
Last active May 18, 2021 00:00
Generate PDF from Pug, HTML && URLs using RelaxedJS & Puppeteer. Quick deployment to AWS Lambda.
View HTML2PDF
Generate PDF from Pug, HTML && URLs using RelaxedJS & Puppeteer. Quick deployment to AWS Lambda.
@chumaumenze
chumaumenze / .vimrc
Created June 9, 2020 15:13 — forked from miguelgrinberg/.vimrc
My .vimrc configuration for working in Python with vim
View .vimrc
" plugins
let need_to_install_plugins = 0
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
"autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
let need_to_install_plugins = 1
endif
call plug#begin()