Skip to content

Instantly share code, notes, and snippets.

View zeroc0d3's full-sized avatar
🎯
Building Awesome TFO (TelemetryFlow Observability)

Dwi Fahni Denni (dfdenni) zeroc0d3

🎯
Building Awesome TFO (TelemetryFlow Observability)
View GitHub Profile
@zeroc0d3
zeroc0d3 / frontend-ws-connection.ts
Created April 17, 2022 07:54 — forked from jsdevtom/frontend-ws-connection.ts
kubernetes-ingress websockets with nodejs
export const ws = webSocket<WebsocketMessage>(`wss://${location.hostname}:${location.protocol === 'https:' ? 443 : 80}/ws/`);
export const wsObserver = ws
.pipe(
retryWhen(errors =>
errors.pipe(
delay(1000)
)
)
);
@zeroc0d3
zeroc0d3 / Dockerfile-PHPFpm-7.4-Apache
Last active December 8, 2022 23:00
Docker PHP-FPM 7.4
FROM php:7.4-apache
ARG BUILD_DATE
ARG BUILD_VERSION
ARG GIT_COMMIT
ARG GIT_URL
ENV VENDOR="DevOpsCorner.id"
ENV AUTHOR="Dwi Fahni Denni <dfdenni@devopscorner.id>"
ENV IMG_NAME="phpfpm"
@zeroc0d3
zeroc0d3 / 00_etc-hosts.md
Created September 18, 2021 10:56 — forked from mul14/00_etc-hosts.md
/etc/hosts for Vimeo, Reddit, and Imgur.

Unblock Vimeo, Reddit, Imgur, dan NPM

Saya support Internet Positif untuk memblokir porn, situs judi, dan hal-hal ilegal lainnya. Tapi pemerintah dan ISP sangat konyol karena tidak mengizinkan akses ke Vimeo, Reddit, Imgur, Netflix--yang mana bukanlah situs dengan konten utama ilegal.

Linux / BSD / macOS

Tambahkan list di bawah ke /etc/hosts.

Windows

@zeroc0d3
zeroc0d3 / nsm.md
Created February 4, 2021 01:03 — forked from danielepolencic/nsm.md
Nginx Service Mesh — installation instructions

Nginx Service Mesh (NSM)

You will install the Nginx Service Mesh locally using minikube.

Launch a new cluster with:

minikube start \
  --extra-config=apiserver.service-account-signing-key-file=/var/lib/minikube/certs/sa.key \
 --extra-config=apiserver.service-account-key-file=/var/lib/minikube/certs/sa.pub \
@zeroc0d3
zeroc0d3 / locale_diff.rb
Created September 2, 2020 13:46 — forked from massive/locale_diff.rb
Compares two YAML locale files and displays the difference
# Run: curl https://gist.github.com/raw/719970/locale_diff.rb | ruby - en fi
require 'rubygems'
require 'yaml'
l1 = ARGV[0]
l2 = ARGV[1]
first = YAML.load_file(l1 + ".yml")
second = YAML.load_file(l2 + ".yml")
def diff(root, compared, structure = [])
@zeroc0d3
zeroc0d3 / mirror-repo.md
Created July 30, 2020 02:01
Mirroring Repository from GitHub to GitLab

Mirroring Repository from GitHub to GitLab

Step-by-Step

  • Open Terminal
  • Create new repository on gitlab cloud (as a target mirror)
  • Mirror clone your gitlab onpremise repository
    git clone --mirror [url_github_repo] [name_repo_mirror]
    
  • Go to cloned repository folder
@zeroc0d3
zeroc0d3 / bitbucket-pipeline.yml
Created July 15, 2020 07:54 — forked from juniorb2ss/bitbucket-pipeline.yml
Bitbucket Pipeline Deploy Laravel to Elasticbeanstalk using parallel steps
image: atlassian/default-image:2
definitions:
services:
redis:
image: redis:3.2
memory: 512
mysql:
image: mysql:5.7
environment:
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# You can specify a custom docker image from Docker Hub as your build environment.
# run composer check-platform-reqs for a list of required extensions.
image: php:7.2-fpm
pipelines:
default:
# Not needed unless you're doing feature tests.
# - step:
@zeroc0d3
zeroc0d3 / 0-README.md
Created July 8, 2020 03:22 — forked from abhijeetchopra/0-README.md
Creating automatic scheduled backup copies of your Google Sheets using Google Apps Script

How to "Schedule Automatic Backups" of your Google Sheets

This tutorial demonstrates how to use Google Apps Script to:

  • Create copies of the Google Sheet in the desired destination folder automatically at set intervals.

  • Append the time stamp with each backup file's name.

  • Adjust time trigger for backing up every day/hour/minute.

@zeroc0d3
zeroc0d3 / 0-README.md
Created July 8, 2020 03:22 — forked from abhijeetchopra/0-README.md
Creating automatic scheduled backup copies of your Google Sheets using Google Apps Script

How to "Schedule Automatic Backups" of your Google Sheets

This tutorial demonstrates how to use Google Apps Script to:

  • Create copies of the Google Sheet in the desired destination folder automatically at set intervals.

  • Append the time stamp with each backup file's name.

  • Adjust time trigger for backing up every day/hour/minute.