<IfModule alias_module>
...
Alias /Project /Users/mulder/Project
</IfModule>
<Directory "/Users/mulder/Project">
AllowOverride None
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
def loadLines(path, rmSharp=False): | |
""" line by line reader : output : array """ | |
fp = open(path, "r") | |
alls = fp.read().split("\n")[:-1] | |
if (rmSharp): | |
lines = [] | |
for line in alls: | |
line = line.strip() | |
if line.startswith('#'): | |
continue |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>2point algebra</title> | |
<script src="https://code.jquery.com/jquery.min.js"></script> | |
<style> | |
#pan { position: relative; width: 1000px; height: 800px; } | |
.jum { position: absolute; background-color:blue; width: 5px; height: 5px; } |
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
vim | |
$ cat .vimrc | |
-------------------- | |
filetype plugin indent on | |
" show existing tab with 4 spaces width | |
set tabstop=2 | |
" when indenting with '>', use 4 spaces width | |
set shiftwidth=2 | |
" On pressing tab, insert 4 spaces |
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
import os | |
import numpy as np | |
import cv2 | |
from PIL import Image | |
from PIL import ImageDraw | |
from PIL import ImageFilter | |
''' | |
ref : http://pillow.readthedocs.io/en/3.4.x/index.html | |
ref : basic : https://www.youtube.com/watch?v=Fd_0ns8bmCY |
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
# reverse ssh tunneling | |
# simple way | |
# ref from : https://www.howtoforge.com/reverse-ssh-tunneling | |
# | |
# env-summary | |
# target : 192.168.5.10 (internal ip in firewall) | |
# ssh-gateway : 100.100.100.10 (static ip in public access) | |
# | |
# step 1) login to ssh-gateway from target(target is your final destination) | |
ssh -R 19999:localhost:22 [email protected] |
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
# locale setup | |
sudo locale-gen "en_US.UTF-8" | |
sudo locale-gen "ko_KR.UTF-8" | |
#.bashrc | |
export LANG="ko_KR.UTF-8" | |
export LC_ALL="ko_KR.UTF-8" | |
# multiple fname pattern find | |
find /home/mulder/Downloads/phone_0 -name "*.jpg" -o -name "*.png" |
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 | |
k=1 | |
input="t1" | |
while IFS= read -r var | |
do | |
echo "$k ]" | |
echo "$var" | |
cat "$var" | |
wc -l "$var" |
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 | |
# install CUDA Toolkit v8.0 | |
# instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network)) | |
CUDA_REPO_PKG="cuda-repo-ubuntu1604_8.0.61-1_amd64.deb" | |
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG} | |
sudo dpkg -i ${CUDA_REPO_PKG} | |
sudo apt-get update | |
sudo apt-get -y install cuda |
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
<?php | |
class Ath_DB | |
{ | |
protected static $table = null; | |
function __construct() | |
{ | |
global $wpdb; | |
$this->db = $wpdb; |
NewerOlder