# CentOS7
yum install -y \
git gcc wget make autoconf libtool automake perl o\
penssl-* zlib-* libssh2-devel libssh2
mkdir -p ~/src
cd ~/src
curl https://curl.haxx.se/download/curl-7.29.0.tar.gz | tar xzv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # CHANGE THESE | |
| auth_email="[email protected]" | |
| auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings | |
| zone_name="example.com" | |
| record_name="www.example.com" | |
| # MAYBE CHANGE THESE | |
| ip=$(curl -s http://ipv4.icanhazip.com) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ./tar-diff.sh dir_name_here 8 | |
| DIR_NAMES=${1:-"asdf"} | |
| DAYS=${2:-"8"} | |
| LASTDATE=`(date --date "${DAYS} days ago" --rfc-3339=seconds)` | |
| TIMESTMP=`date '+%Y-%m-%d'` | |
| tar -cvz --newer-mtime="${LASTDATE}" -f ${DIR_NAMES}-diff-${TIMESTMP}-${DAYS}d.tgz ${DIR_NAMES} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| MASTER_IP="10.1.2.96" | |
| HOSTNAME=`hostname` | |
| CA_FILE="/opt/k3s-master/output/ca-certificates.crt" | |
| TOKEN=`cat /opt/k3s-master/data/server/node-token` | |
| WORK_DIRS="/opt/${HOSTNAME}" | |
| mkdir -p ${WORK_DIRS} || true | |
| cp -f ${CA_FILE} ${WORK_DIRS}/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # For RHEL8 | |
| FROM registry.access.redhat.com/ubi8 | |
| # For RHEL7 | |
| FROM registry.access.redhat.com/rhel | |
| RUN subscription-manager register --username="id_here" --password="pass_here" --auto-attach && \ | |
| subscription-manager refresh && \ | |
| yum install -y yum-utils createrepo |
- Python3 에서 동작 가능
pip install elastic-apm
- 환경 변수 설정
pip install PySocks
import urllib2
import socks
from sockshandler import SocksiPyHandler
opener = urllib2.build_opener(SocksiPyHandler(socks.SOCKS5, "127.0.0.1", 1080))
opener.open("http://www.naver.com/").read()[:100]
- This code is over 4years. and works well in recent blocking issue. :)
- This is for testing only. about techincal issue.
- I masked URL from result. :)
- Testing Result via Simple SNI Proxy Server by me.
- This server is not intended to by-pass SNI censorship in korea. as you see, this code is 4 years old.