Skip to content

Instantly share code, notes, and snippets.

View CenoX's full-sized avatar

CenoX CenoX

View GitHub Profile
@CenoX
CenoX / start-vpn-focal.sh
Last active May 20, 2020 05:11 — forked from kordless/start-vpn.sh
VPN Server for Google Cloud
#!/bin/bash
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 4 | head -n 1)
SERVER_NAME=vpn-$NEW_UUID
gcloud compute instances create $SERVER_NAME \
--machine-type "e2-micro" \
--image-family ubuntu-2004-lts \
--image-project "ubuntu-os-cloud" \
--boot-disk-size "10" \
--boot-disk-type "pd-ssd" \
--boot-disk-device-name "$NEW_UUID" \
@CenoX
CenoX / nanum-font-install.sh
Created November 2, 2019 22:10 — forked from lesstif/nanum-font-install.sh
JAVA_HOME 의 fonts/fallback 디렉터리에 나눔 폰트 설치. Confluence 의 편집 macro 에서 한글 깨짐 방지
#!/bin/sh
if [ "$#" -lt 1 ]; then
echo -e "$# is Illegal number of parameters.\n"
echo -e "Usage: $0 confluence-installed-dir\n"
echo "Example: $0 /var/atlassian/atlassian-confluence-6.7.0"
exit 1
fi
CONF_DIR=$1