Skip to content

Instantly share code, notes, and snippets.


CHANN channprj

View GitHub Profile
channprj /
Created Aug 12, 2020 — forked from serithemage/
AWS 보안 관련 자료 모음집

AWS 학습 링크집 시리즈

AWS 보안 관련 컨텐츠 모음집(

AWS 공식문서 중 보안에 관련된 자료들을 한글 자료 중심으로 정리한 페이지 입니다.


키베이스로 깃 커밋 서명하는법

A. PGP 공개키-비공개키 키쌍 등록

갖고있는 PGP 키쌍이 없을경우 새로 만들어야한다. 이미 키 쌍이 keybase에 업로드되어있는 경우, 기존의 키를 컴퓨터에 다운로드하기만 하면 된다.

A.1. 새 키 만들어서 하는법

keybase login
channprj / docker-compose.yml
Created Jul 6, 2020 — forked from barnybug/docker-compose.yml
Docker compose for a Docker-in-docker gitlab runners setup
View docker-compose.yml
# Docker-in-Docker Gitlab runners setup taken from:
restart: always
privileged: true
- /var/lib/docker
image: docker:17.09.0-ce-dind
- --storage-driver=overlay2
channprj /
Created Mar 5, 2020 — forked from techniq/
Useful SQLAlchemy Mixins
from datetime import datetime
from sqlalchemy import Column, Integer, DateTime, ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declared_attr
from flask_security import current_user
class AuditMixin(object):
created_at = Column(DateTime,
updated_at = Column(DateTime,,
channprj /
Created Dec 18, 2019 — forked from heiswayi/
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
channprj /
Created Nov 5, 2019 — forked from petri/
Single-file Python digital signature maker and checker
"""digicheck - create and verify signatures for files
digicheck keys
digicheck public <keyfilename>
digicheck sign <filename> <keyfilename>
digicheck check <filename> <keyfilename> <signaturefilename>
digicheck (-h | --help)
digicheck --version
channprj / setup github issues
Created Jul 22, 2019 — forked from rentzsch/setup github issues
Shell script to set up a GitHub Project's Issues' Labels as described in <>. WARNING: script assumes a newish project that hasn't really used labels yet. It deletes all default labels, which means DATA LOSS if you've used them for anything.
View setup github issues
# Delete default labels
curl --user "$USER:$PASS" --include --request DELETE "$USER/$REPO/labels/bug"
curl --user "$USER:$PASS" --include --request DELETE "$USER/$REPO/labels/duplicate"
curl --user "$USER:$PASS" --include --request DELETE "$USER/$REPO/labels/enhancement"
curl --user "$USER:$PASS" --include --request DELETE "$USER/$REPO/labels/invalid"
curl --user "$USER:$PASS" --include --request DELETE "$USER/$REPO/labels/question"
View gist:fa6a42568872a777515eb666faaae2a9
/Applications/Google\\ Chrome --app=""
channprj / attributes.rb
Created Apr 22, 2019 — forked from lizthegrey/attributes.rb
Hardening SSH with 2fa
View attributes.rb
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
# Local
curl -L | bash
curl -L > ${HOME}/.iterm2/imgcat
# Remote server
sudo curl -o /usr/local/bin/imgcat -O && sudo chmod +x /usr/local/bin/imgcat
# sudo wget /usr/local/bin && sudo chmod +x /usr/local/bin/imgcat
# Enjoy it now! :-)
imgcat /tmp/sample.png