Skip to content

Instantly share code, notes, and snippets.

View ziozzang's full-sized avatar

Jioh L. Jung ziozzang

View GitHub Profile
@ziozzang
ziozzang / README.txt
Created April 29, 2024 07:33
Delta Merge
Code from : https://github.com/StableFluffy/EasyLLMFeaturePorter/blob/main/1-Click.ipynb
- Just converted into CLI
Run Like this.
```
python convert.py [informative_model_path] [base_model_path] [target_model_path] [output_path]
```
Params:
@ziozzang
ziozzang / README.md
Last active July 30, 2021 10:01
코로나 잔량 백신 검색 스크립트

코로나 백신 잔량 검색 스크립트

  • 네이버 맵 API를 사용 합니다.

  • 언제든지 동작 하지 않을수 있습니다.

  • 그냥 가져가서 쓰세요

  • 지정된 좌표 주변으로 최대 100개의 의료기관을 검색해서 잔량 백신을 검색해서 수량을 알려줍니다.

사용법

  • 파이썬 3 + requests에서 동작 합니다.
# RUN with
# curl -L https://gist.githubusercontent.com/ziozzang/30485cd1bb9eaf6334ef7a219bc0ac34/raw/0d73991d9c86f8a32387e37734d6d46eccb7532e/centos8-docker.sh | bash
systemctl disable --now firewalld
dnf install -y --nobest docker-ce
systemctl enable --now docker
curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose
FROM kong:alpine
ENV KONG_PLUGINS=bundled,kong-spec-expose,kong-oidc,kong-oidc-auth
RUN luarocks install kong-oidc-auth kong-oidc
find . -maxdepth 1 -mindepth 1 -type d -exec tar czvf {}.tgz {} \;
@ziozzang
ziozzang / README.md
Created October 24, 2019 08:33 — forked from detiber/README.md
Using CFSSL as an external CA for kubeadm

CFSSL as an external CA for non-ha kubeadm intialized clusters

Using cfssl to Create an External CA Infrastructure

Install cfssl

# This requires an existing Go environment with GOPATH set
go get -u github.com/cloudflare/cfssl/cmd/...
@ziozzang
ziozzang / README.md
Created October 24, 2019 08:33 — forked from detiber/README.md
Using CFSSL as an external CA for kubeadm

CFSSL as an external CA for non-ha kubeadm intialized clusters

Using cfssl to Create an External CA Infrastructure

Install cfssl

# This requires an existing Go environment with GOPATH set
go get -u github.com/cloudflare/cfssl/cmd/...
systemctl stop firewalld
systemctl disable firewalld
systemctl unmask firewalld
yum install -y iptables-services
systemctl enable iptables
systemctl start iptables
sleep 3
# kubectl create -f https://gist.githubusercontent.com/ziozzang/6fbed3913f12fae26ed85104286be919/raw/80a31373b4cf81a6103e8621119a0b90105e6211/k8s-test-pod.yml
apiVersion: v1
kind: ReplicationController
metadata:
name: test
spec:
replicas: 1
selector:
name: test
@ziozzang
ziozzang / ldap
Last active October 16, 2019 02:32
LDAP initialize
DATA_PATH=`pwd`
docker run \
-d --name=ldap \
-p 389:389 -p 636:636 \
-e LDAP_DOMAIN="foo.com" \
-e LDAP_ADMIN_PASSWORD="admin0" \
-e LDAP_ORGANISATION="myorg" \
-e LDAP_READONLY_USER="true" \
-e LDAP_READONLY_USER_USERNAME="search" \