Skip to content

Instantly share code, notes, and snippets.

View RbkGh's full-sized avatar
🎯
Focusing

Ace Rbk RbkGh

🎯
Focusing
View GitHub Profile
@RbkGh
RbkGh / billable-api-server-backend-ingress.yaml
Created July 21, 2022 13:58
k8s deployment sample yaml file and ingress deployment
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: billable-api-server-backend-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
# nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/force-ssl-redirect: "false"
kubernetes.io/ingress.global-static-ip-name: "billable-api-public-ip-ca"
@RbkGh
RbkGh / rm_mysql.md
Created November 17, 2022 08:00 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql
    
@RbkGh
RbkGh / compress_video
Created September 2, 2024 03:44 — forked from trvswgnr/compress_video
portable shell script to compress videos with ffmpeg
#!/bin/sh
print_usage() {
echo "usage: compress_video <input_file>"
echo "supported formats: mp4, webm, mkv, mov, avi, flv"
}
get_extension() {
f="${1##*/}"
case "$f" in