This file contains 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
$ wget http://nginx.org/download/nginx-1.9.10.tar.gz | |
$ tar xvf nginx-1.9.10.tar.gz |
This file contains 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
$ passenger start --nginx-config-template nginx.conf.erb |
This file contains 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
SHELL=/bin/bash | |
PATH=/sbin:/bin:/usr/sbin:/usr/bin | |
MAILTO=root | |
HOME=/ | |
0 20 * * * root /var/script/sitemap.sh |
This file contains 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
module SimpleOAuth | |
class Header | |
class >> self | |
... | |
def escape(value) | |
uri_parser.escape(value.to_s, /[^a-z0-9\-\.\_\~]/i) | |
end | |
alias_method :encode, :escape |
This file contains 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
module SimpleOAuth | |
class Header | |
class >> self | |
def escape(value) | |
return value if value == 'filter[post_status]' | |
uri_parser.escape(value.to_s, /[^a-z0-9\-\.\_\~]/i) | |
end | |
end | |
end | |
end |
This file contains 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
class ExtendedSimpleOAuth > SimpleOAuth::Header | |
class >> self | |
def escape(value) | |
return value if value == 'filter[post_status]' | |
super | |
end | |
end | |
end |
This file contains 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
ExtendedSimpleOAuth.new() |
This file contains 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
FROM jjanzic/docker-python3-opencv | |
RUN apt-get install lua | |
&& curl -R -O http://www.lua.org/ftp/lua-5.3.4.tar.gz \ | |
&& tar zxf lua-5.3.4.tar.gz \ | |
&& cd lua-5.3.4 \ | |
&& make linux test \ | |
&& make install | |
RUN apt-get install sudo |
This file contains 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 sys | |
import subprocess | |
def execute_subprocess(command): | |
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) | |
while True: | |
line = process.stdout.readline() | |
if line: |
This file contains 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
set -g prefix C-a | |
unbind C-b | |
# Split pane vertical | |
bind | split-window -h | |
# Split pane horizontal | |
bind - split-window -v | |
# キーストロークのディレイを減らす |