Skip to content

Instantly share code, notes, and snippets.

View Ujang360's full-sized avatar
💻

Aditya Kresna Ujang360

💻
View GitHub Profile
@Ujang360
Ujang360 / odyssey.conf
Last active January 19, 2025 10:04
PG Odyssey - Development Config
pid_file "/tmp/odyssey.pid"
daemonize yes
unix_socket_dir "/tmp"
unix_socket_mode "0644"
log_format "%p %t %l [%i %s] (%c) %m\n"
log_syslog yes
log_syslog_ident "odyssey"
log_syslog_facility "daemon"
log_debug no
log_config yes
@Ujang360
Ujang360 / bank-codes-indonesian.csv
Created September 10, 2024 09:13
Indonesian Bank Codes
No Name Code
1 Allo Bank (Bank Harda) 567
2 American Express Bank LTD 30
3 Anglomas Internasional Bank 531
4 Bank ABN AMRO 52
5 Bank Agris (Bank Finconesia) 945
6 Bank Akita 525
7 Bank Aladin Syariah (Bank Maybank Indocorp) 947
8 Bank AntarDaerah 88
9 Bank ANZ Indonesia 61
@Ujang360
Ujang360 / .gitignore
Last active February 3, 2023 08:49
.gitignore for all of my projects
# Created by https://www.toptal.com/developers/gitignore/api/visualstudio,visualstudiocode,vim,monodevelop,dotnetcore,aspnetcore,node,unity,rust,jetbrains+all,python,pycharm+all
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudio,visualstudiocode,vim,monodevelop,dotnetcore,aspnetcore,node,unity,rust,jetbrains+all,python,pycharm+all
### ASPNETCore ###
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
@Ujang360
Ujang360 / Cargo.toml
Created March 8, 2020 04:04
Rust build optimization template
[workspace]
members = [
"app0",
"lib0",
]
[profile.dev]
opt-level = 0
debug = true
rpath = false
@Ujang360
Ujang360 / install_protobuf_v3.11.4_ubuntu18.04.md
Last active November 12, 2021 13:23
Install Protobuf 3.11.4 in Ubuntu 18.04
sudo apt update && sudo apt install autoconf automake libtool curl make g++ unzip -y
git clone --recursive [email protected]:protocolbuffers/protobuf.git
cd protobuf
git checkout v3.11.4 && git checkout -b release/v3.11.4
./autogen.sh
./configure
make
make check
sudo make install
@Ujang360
Ujang360 / git-clean-recursively
Created February 20, 2020 12:16
Restore repo and its submodules state into clean-current-head with `git clean-recursively`
#!/usr/bin/env bash
git clean -ffdx && git submodule foreach --recursive git clean -ffdx
@Ujang360
Ujang360 / config
Created January 29, 2020 06:53
Cargo Config - Static Linking LTO
[target.'cfg(any(unix, windows))']
rustflags = [
"-C", "lto=fat",
"-C", "link-args=-s",
"--emit=asm",
]
[target.'cfg(target_os = macos)']
rustflags = [
"-C", "link-arg=-undefined",
@Ujang360
Ujang360 / mp_fucker.py
Created December 15, 2019 10:51
Python Multiprocess Fucker
#!/usr/bin/env python3.7
import signal
import sys
import json
import logging
import time
import multiprocessing as mp
import multiprocessing.connection as mp_conn
@Ujang360
Ujang360 / Dockerfile
Created December 5, 2019 02:41 — forked from yogeek/Dockerfile
Gosu usage in Docker
FROM ubuntu
RUN apt-get install ...
# grab gosu for easy step-down from root
ENV GOSU_VERSION 1.10
RUN set -x \
&& curl -sSLo /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
&& curl -sSLo /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
&& export GNUPGHOME="$(mktemp -d)" \