200 – OK – Eyerything is working
201 – OK – New resource has been created
204 – OK – The resource was successfully deleted
304 – Not Modified – The client can use cached data
<?php | |
$input = '[Hoten: Tran văn A -tuổi: 20-địa chỉ: Cần Thơ][Hoten: Tran văn c-tuổi: 40-địa chỉ: Hậu Giang][Hoten: Tran văn g-tuổi: 80-địa chỉ: An Giang]'; | |
$regex = '/\[Hoten:\s([^-]+)-tuổi:\s(\d+)-địa chỉ:\s([^\]]+)/i'; | |
preg_match_all($regex, $input, $matches); | |
$len = count($matches[1]); | |
$output = []; | |
for ($i = 0; $i < $len; $i++) { | |
$output[] = array( | |
'Hoten' => $matches[1][$i], |
# required: ffmpeg (e.g. from homebrew), terminal-notifier from https://github.com/alloy/terminal-notifier | |
# you can schedule this with launchd to run e.g. weekly | |
# Specify in seconds how long the script should record (default here is 1 hour). | |
seconds=3600 | |
# Date format for the recording file name | |
DATE=`date "+%d-%m-%y_%H-%M"` | |
# start ffmpeg recording |
========================================== ========================================== | |
TMUX COMMAND WINDOW (TAB) | |
========================================== ========================================== | |
List tmux ls List ^b w | |
New -s <session> Create ^b c | |
Attach att -t <session> Rename ^b , <name> | |
Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
Kill kill-session -t <session> Close ^b & |
global | |
log 127.0.0.1 local1 notice | |
maxconn 4096 | |
user haproxy | |
group haproxy | |
daemon | |
defaults | |
log global | |
maxconn 4096 |
#!/bin/sh | |
# | |
# Init Script to run HaProxy in daemon mode at boot time. | |
# | |
# Author: Riccardo Riva - RPM S.r.l. | |
# Revision 1.0 - 2011 November, 18</pre> | |
#==================================================================== | |
# Run level information: | |
# |
from TorCtl import TorCtl | |
import urllib2 | |
user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7' | |
headers={'User-Agent':user_agent} | |
def request(url): | |
def _set_urlproxy(): | |
proxy_support = urllib2.ProxyHandler({"http" : "127.0.0.1:8118"}) | |
opener = urllib2.build_opener(proxy_support) |
func UploadHandler(w http.ResponseWriter, r *http.Request) { | |
file, _, err := r.FormFile("file") | |
if err != nil { | |
log.Println(err) | |
http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest) | |
return | |
} | |
img, _, err := image.Decode(file) |
200 – OK – Eyerything is working
201 – OK – New resource has been created
204 – OK – The resource was successfully deleted
304 – Not Modified – The client can use cached data
[XDebug] | |
zend_extension = xdebug.so | |
; ?XDEBUG_PROFILE=1 | |
xdebug.remote_host = 127.0.0.1 | |
xdebug.remote_enable = 1 | |
xdebug.remote_port = 9000 | |
xdebug.remote_handler = dbgp | |
xdebug.remote_mode = req | |
xdebug.profiler_enable=0 |
Licensed to The Apache Software Foundation, http://www.apache Licensed to The Apache Software Foundation, http://www.apache | |
Benchmarking auth.tts.dev (be patient) Benchmarking auth.tts.dev (be patient) | |
Server Software: nginx Server Software: nginx | |
Server Hostname: auth.tts.dev Server Hostname: auth.tts.dev | |
Server Port: 80 Server Port: 80 | |
Document Path: /test/auth/rpc | Document Path: /test/auth/restful |