Skip to content

Instantly share code, notes, and snippets.

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

Edi Septriyanto joglomedia

🏠
Working from home
View GitHub Profile
@joglomedia
joglomedia / .editorconfig
Last active July 26, 2021 06:43
Example of EditorConfig file for VSCode Editor
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
@joglomedia
joglomedia / script.sh
Created August 11, 2021 16:40 — forked from rafael-neri/script.sh
Git Rename Tag Local and Remote
# Create new from old
git tag new old
# Remove old tag
git tag -d old
# Sync changes from old tag to remote
git push origin :refs/tags/old
@joglomedia
joglomedia / kvm_minikube.md
Created August 28, 2021 14:57 — forked from alexellis/kvm_minikube.md
Run multiple minikube Kubernetes clusters on Ubuntu Linux with KVM

Ramp up your Kubernetes development, CI-tooling or testing workflow by running multiple Kubernetes clusters on Ubuntu Linux with KVM and minikube.

In this tutorial we will combine the popular minikube tool with Linux's Kernel-based Virtual Machine (KVM) support. It is a great way to re-purpose an old machine that you found on eBay or have gathering gust under your desk. An Intel NUC would also make a great host for this tutorial if you want to buy some new hardware. Another popular angle is to use a bare metal host in the cloud and I've provided some details on that below.

We'll set up all the tooling so that you can build one or many single-node Kubernetes clusters and then deploy applications to them such as OpenFaaS using familiar tooling like helm. I'll then show you how to access the Kubernetes clusters from a remote machine such as your laptop.

Pre-reqs

  • This tutorial uses Ubuntu 16.04 as a base installation, but other distributions are supported by KVM. You'll need to find out how to install
@joglomedia
joglomedia / recording_application_and_microphone.md
Created November 14, 2021 14:10 — forked from varqox/recording_application_and_microphone.md
How to record multiple applications and microphone into one audio file on Linux using PulseAudio

How to record multiple applications and microphone into one audio file on Linux

Step 0. Terminology

Sinks are for output, sources are for input. To stream source to sink a loopback must be created. More shall you find there.

Step 1. Create output sink that will be recorded

Our output sink will be named recording.

pacmd load-module module-null-sink sink_name=recording sink_properties=device.description=recording
@joglomedia
joglomedia / amazon-ses.sh
Created October 25, 2024 13:27 — forked from johnnydecimal/amazon-ses.sh
Amazon SES mail sending script
#!/bin/bash
## ** UPDATE PER-MESSAGE **
message_body=$(<message.txt)
subject="The Quarterly, 1st ed. 2024-06 [D85.23.13]"
# sender
sender="Johnny ‘Decimal’ Noble <[email protected]>"
body="$message_body"
<style type="text/css">
.kontak-form .row .kontak-info {
color: #fff;
background-color: #3498db;
}
.kontak-form .row .kontak-pesan {
background-color: #c1ebe7;
}
.kontak-form .kontak-content {
margin-bottom: 1.5rem;
@joglomedia
joglomedia / gist:e5fd46354949f6556af57317bdd4b189
Last active January 29, 2025 10:39
Building Static PHP Application
### Tools
- https://github.com/crazywhalecc/static-php-cli
- https://laravel-zero.com/docs/installation
### Guide
- https://static-php.dev/en/guide/
### Reading
- https://www.bosunegberinde.com/articles/building-php-binary