Skip to content

Instantly share code, notes, and snippets.

View chipulaja's full-sized avatar

Syaiful Arifin chipulaja

  • Surabaya, East Java, ID
View GitHub Profile
@chipulaja
chipulaja / commoncli.sh
Last active November 2, 2023 02:06
Common CLI
```bash
grep -i "keyword" . -RL --exclude-dir=kecuali
```
contoh
```bash
grep --include="*.php" -i "isSalable" . -Rl --exclude-dir="dev" --exclude-dir="tests" --exclude-dir="generated" --exclude-dir="Test" --exclude-dir="Api" --exclude-dir="pub" --exclude-dir="var"
```
@chipulaja
chipulaja / docker-readme-in-aja.md
Last active September 29, 2021 15:30
catatan seputar docker

how to disable auto start container

docker update --restart=no my-container

how to remove none image docker

docker rmi $(docker images --filter "dangling=true" -q --no-trunc)

how to run docker container with another user (not root)

@chipulaja
chipulaja / how-to-use-docker-compose-with-python.md
Created April 26, 2019 10:13
Catatan GJ cara menggunakan docker-compose dengan python
from compose.config.environment import Environment
from compose.cli.command import get_project as compose_get_project, get_config_path_from_options

path = "./cobaya"
environment = Environment.from_env_file(path)
config_path = get_config_path_from_options(path, dict(), environment)
project = compose_get_project(path, config_path)
project.up()
@chipulaja
chipulaja / catatan-pribadi-penggunaan-git-untuk-kerja-tim.md
Last active July 26, 2022 17:31
catatan pribadi penggunaan git untuk kerja tim

Catatan Pribadi Seputar GIT Untuk Kerja Tim

1. Biasakan kalo buat branch baru di ambil dari branch origin/master

git checkout -b myFeature origin/master

alasan kenapa menggunakan cara ini biar tidak menyulitkan yang bagian marge di sisi server

2. Jika mendapati notif fast-forward karena ke duluan tim lain pull request dan di marge

pastikan titik saat ini sama dengan origin/master

@chipulaja
chipulaja / how-to-running-docker-on-android.md
Last active February 3, 2024 19:30
how to running docker on android [termux]

Sesuaikan kode binary dengan arsistektur Android anda, kebetulah arsistektur HP android saya adalah aarch64 (s9 plus) untuk memilih kode binari anda bisa lihat di https://download.docker.com/linux/static/stable/

Berikut adalah cara installnya

$ curl https://download.docker.com/linux/static/stable/aarch64/docker-18.03.1-ce.tgz | tar -xz
$ mv docker/* ~/../usr/bin/
@chipulaja
chipulaja / gist:86ecda356c5b30202b9e057a033fce97
Last active May 12, 2020 09:30
read file .md or markdown github offline
$sudo apt install python-pip
$pip install grip
$cd /path/project && sudo python -m grip . 0.0.0.0:80