Skip to content

Instantly share code, notes, and snippets.

View kudaliar032's full-sized avatar
🇮🇩

Aditya Rahman kudaliar032

🇮🇩
View GitHub Profile
@si458
si458 / virt-customize-ubuntu22
Last active September 19, 2024 19:17
virt-customize ubuntu22
#!/bin/sh
# install tools
apt update -y && apt install nano wget curl libguestfs-tools -y
# remove old image
rm -rfv ubuntu-22.04-server-cloudimg-amd64-disk-kvm.img
# remove old template container - WILL DESTROY COMPLETELY
qm destroy 9000 --destroy-unreferenced-disks 1 --purge 1
# download new image
wget http://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64-disk-kvm.img
# add agent to image
FROM node:12-alpine as build
# create app Directory
RUN mkdir /app
WORKDIR /app
ENV NUXT_TELEMETRY_DISABLED 1
ENV NODE_OPTIONS "--max_old_space_size=4096"
COPY . /app
@omaryoussef
omaryoussef / Create_Laravel_Pipeline.txt
Last active September 20, 2024 06:12
Creates a Filebeat pipeline to ingest Laravel Monolog/log lines.
PUT _ingest/pipeline/laravel
{
"description": "Parses Laravel log files.",
"processors": [
{
"rename": {
"field": "message",
"target_field": "event.original"
}
},
@toricls
toricls / Time-based-auto-scaling-on-fargate.md
Created August 5, 2019 01:49
Example: Time-based Auto Scaling on Amazon ECS + AWS Fargate

Set parameters

$ export ECS_CLUSTER_NAME={YOUR_ECS_CLUSTER_NAME}
$ export ECS_SERVICE_NAME={YOUR_ECS_SERVICE_NAME}

RegisterScalableTarget

@samsulmaarif
samsulmaarif / docker-lab.txt
Last active December 12, 2019 10:34
LAB Docker Class Malang, Sabtu-Minggu, 23-24 Maret 2019 @ DOT Malang
### Requirement ###
- buat akun di hub.docker.com
- What & Why Docker ?
- presentasi dengan salindia atau
- pinehead press
- Container Concept
- Linux Namespaces (s.id/pinehead)
SSID : DOT Hotspot
@bmaupin
bmaupin / free-database-hosting.md
Last active September 22, 2024 06:20
Free database hosting
@bzamecnik
bzamecnik / wordpress_com_nginx_proxy_to_subpath.md
Created June 21, 2018 12:48
Nginx proxy for Wordpress.com on custom domain with subpath.
@naumanbadar
naumanbadar / docker-compose-cassandra-cluster.yml
Created November 6, 2017 10:05
3 node cassandra cluster with docker-compose
version: "3.3"
# make sure that docker machine has enough memory to run the cluster.
# setting it up to 4GB seems to work.
services:
cassandra-seed:
image: cassandra:latest
# ports:
@mort3za
mort3za / git-auto-sign-commits.sh
Last active May 28, 2024 20:51
Auto sign your git commits
# Generate a new pgp key: (better to use gpg2 instead of gpg in all below commands)
gpg --gen-key
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null`
# check current keys:
gpg --list-secret-keys --keyid-format LONG
# See your gpg public key:
gpg --armor --export YOUR_KEY_ID
# YOUR_KEY_ID is the hash in front of `sec` in previous command. (for example sec 4096R/234FAA343232333 => key id is: 234FAA343232333)