Skip to content

Instantly share code, notes, and snippets.


CHANN channprj

View GitHub Profile
channprj /
Created Apr 13, 2021
Turn off macbook (linux) screen
echo 0 > /sys/class/backlight/nv_backlight/brightness
channprj /
Last active Feb 18, 2021
Remove dangling container images safely
# naive way
docker system prune -a -f
# ... or
# simple way
if [ $(echo -n $(docker images -f "dangling=true" -q) | wc -m) -gt 0 ]; then docker rmi -f $(docker images -f "dangling=true" -q); else echo "No Dangling container images"; fi
View simple-react-nginx.conf
server {
listen 80;
root /home/app/html;
index index.html;
access_log /var/log/nginx/;
error_log /var/log/nginx/;
location / {
View postmanTest.js
// csrftoken 쿠키 설정
const csrftoken = pm.cookies.get('csrftoken')
pm.environment.set('csrftoken', csrftoken);
// jwt 토큰 환경변수 설정
const responseData = pm.response.json();
pm.environment.set('access', responseData.access);
pm.environment.set('refresh', responseData.refresh);
# 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
channprj / django-admin-toggle-filter-panel.js
Created Nov 10, 2020
Toggle Django Admin Filter Panel
View django-admin-toggle-filter-panel.js
(function($) {
$(document).ready(function($) {
$("tr input.action-select").actions();
$('<div id="show-filters" style="float: right;"><a href="#">&larr; 필터 보기</a></p>').prependTo('div.actions');
$('#changelist-filter h2').html('<a style="color: white;" id="hide-filters" href="#">필터 &rarr;</a>');
$('#show-filters').click(function() {
channprj /
Created Nov 5, 2020
Read html file and make pdf with pyppeteer
import asyncio
from pyppeteer import launch
async def main():
browser = await launch(
'headless': True,
'args': [
channprj /
Created Sep 24, 2020
NPM Proxy Setting
# Required
npm config set proxy http://<HOSTNAME>:<PORT>
npm config set https-proxy http://<HOSTNAME>:<PORT>
# Optional
npm config set strict-ssl false
channprj /
Created Aug 12, 2020 — forked from serithemage/
AWS 보안 관련 자료 모음집

AWS 학습 링크집 시리즈

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

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

channprj /
Last active Aug 5, 2020
실행중인 파이썬 프로세스 모니터링하기

실행중인 파이썬 프로세스 모니터링하기


pip install pyrasite urwid meliae