Skip to content

Instantly share code, notes, and snippets.

@pokev25
pokev25 / Settings.json
Last active June 11, 2020 05:13
Windows Terminal Settings
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@pokev25
pokev25 / Microsoft.PowerShell_profile.ps1
Last active July 3, 2020 01:37
PowerShell docker-compose alias from oh-my-zsh
# docker-compose Set-Alias
function DockerComposeUp {
docker-compose up $args
}
function DockeComposeBuild {
docker-compose build
}
function DockeComposeExec {
docker-compose exec $args
}
@pokev25
pokev25 / varnish.tokyo.vcl
Created February 23, 2018 00:49 — forked from kimlindholm/varnish.tokyo.vcl
Varnish configuration example
# VCL configuration file for Varnish
# Define which IP addresses or hosts have access to files that are
# blocked from the public internet
acl internal {
"localhost";
}
# Define origin servers
backend web { .host = "1.2.3.4"; .port = "80"; }
@pokev25
pokev25 / key1.conf
Last active May 2, 2017 11:23
logstash 설정
input {
redis {
host => "192.168.0.20"
data_type => "list"
key => "key1"
codec => "json"
db => 3
type => "key1"
}
}
@pokev25
pokev25 / rolling_resatrt.sh
Created March 29, 2017 01:00
elasticearch rolling restart
#!/bin/bash
#
# perform a rolling restart of all data/master nodes in a stable cluster
#
# args: [elasticsearch-host:port]
#
set -e
@pokev25
pokev25 / OffAladinFile.py
Last active June 7, 2019 06:52
텔레그램 봇으로 알라딘 중고매장 검색 결과 전달 받기
# -*- coding: utf-8 -*-
import sys
import re
import mechanize
import urllib2
import cookielib
from bs4 import BeautifulSoup
import telepot
@pokev25
pokev25 / shellcommand.sh
Created December 21, 2016 04:51 — forked from jeff1326/shellcommand.sh
script to parse PHP short open tags and convert ones to normal
find project/dir/ -type f -iname "*.php" -exec php -d short_open_tag=On the_script.php {} \;
@pokev25
pokev25 / ocp.php
Created November 28, 2016 00:51 — forked from ck-on/ocp.php
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)#ocp #php #opcache #opcode #cache #zend #optimizerplus #optimizer+
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.7
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.7 2015-09-01 regex fix for PHP7 phpinfo
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
@pokev25
pokev25 / addYoutubeInMarkdown.md
Created November 7, 2016 02:07 — forked from ikaruce/addYoutubeInMarkdown.md
Add youtube link with screenshot in markdown.

마크다운 문서에 유튜브 링크 추가하기.

표준 마크다운 문법을 따르는 문서에서는 유튜브에서 제공하는 iframe 태그는 차단됩니다. 그래서 약간의 트릭이 필요합니다. 스크린샷 이미지에 링크를 다는 것이지요.

아래와 같은 방식으로

[![이미지 텍스트](스크린샷 이미지)](유투브링크)

깃헙의 LFS를 설명해 놓은 동영상을 링크를 걸면