Skip to content

Instantly share code, notes, and snippets.

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

chumaumenze

🏠
Working from home
View GitHub Profile
@chumaumenze
chumaumenze / 50-cloud-init.yaml
Last active July 23, 2024 21:18
WiFi Access Point Setup on Headless Raspberry Pi
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
wifis:
renderer: networkd
wlan0:
@chumaumenze
chumaumenze / Setup Automatic Deployment with Git with a VPS.txt
Last active June 23, 2024 01:13 — forked from ylem/Setup Automatic Deployment with Git with a VPS.txt
Setup Automatic Deployment with Git Post-Receive Hook
#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 / install_app.sh
Last active June 23, 2024 01:11
Azure Resource Deployment Ping Script
#!/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 / Bitwarden Export Parser
Created July 5, 2021 19:54
Parses and reorganise exported credentials from Bitwarden
## Bitwarden Export Parser
Parses and reorganise exported credentials from Bitwarden
@chumaumenze
chumaumenze / # Rounded Image - Golang
Created April 26, 2024 13:32
Make rounded images in Golang
Make rounded images in Golang
@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.
Full list of countries with official state name, aplha-2 and aplha-3 code, and ccTLD.
@chumaumenze
chumaumenze / go.mod
Created February 23, 2022 21:21
Mongo Change Stream in Golang
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
{
"$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": {
@chumaumenze
chumaumenze / defauts.duti
Created September 13, 2021 12:18 — forked from apfelchips/defaults.duti
set file-associations on macOS: ~ 🥖.config 🥖duti 🥖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 / HTML2PDF
Last active May 18, 2021 00:00
Generate PDF from Pug, HTML && URLs using RelaxedJS & Puppeteer. Quick deployment to AWS Lambda.
Generate PDF from Pug, HTML && URLs using RelaxedJS & Puppeteer. Quick deployment to AWS Lambda.