Skip to content

Instantly share code, notes, and snippets.

@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 / 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를 설명해 놓은 동영상을 링크를 걸면

@pokev25
pokev25 / Svn2Git.md
Created November 7, 2016 02:06 — forked from ikaruce/Svn2Git.md
SVN에서 Git으로 전환하기(브랜치와 태그 보전하면서)
@pokev25
pokev25 / tmux-cheatsheet.markdown
Created October 19, 2016 04:26 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@pokev25
pokev25 / ALTERNATIVES.adoc
Created October 12, 2016 00:24 — forked from mbbx6spp/ALTERNATIVES.adoc
Super quick list of alternatives to Jira and/or Confluence, Stash, Crucible, etc.
@pokev25
pokev25 / install-tmux.sh
Last active February 8, 2024 07:22 — forked from rothgar/install-tmux
Install tmux 2.8 on centos 7
# Install tmux 2.8 on Centos
# install deps
yum install gcc kernel-devel make ncurses-devel
# cd src
cd /usr/local/src
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -LO https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
@pokev25
pokev25 / download-functions.php
Created April 21, 2016 08:51 — forked from mytory/download-functions.php
Download file with specific name in all browser.
/**
* Download file from path and mimetype.
*
* @param $path
* @param $mimetype
* @param null $filename
*/
function download_file ($path, $mimetype, $filename = NULL) {
if (empty($filename)) {
$filename = pathinfo($path, PATHINFO_BASENAME);
#include <boost/log/common.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/log/sinks/text_ostream_backend.hpp>
#include <boost/log/utility/empty_deleter.hpp>
#include <boost/log/sinks.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/utility/record_ordering.hpp>
#include <boost/log/support/date_time.hpp>