項目 | 表記 |
---|---|
改行を検索 | \n |
タブ文字を検索 | \t |
半角カナを検索 | [ア-ンァ-ョッー゚゙・] |
全角ひらがなを検索 | [あ-んが-ぼぁ-ょゎっー] |
全角カタカナを検索 | [ア-ンガ-ボァ-ョヮッー] |
半角英字を検索 | [a-zA-Z] |
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
BrowserMatch "^DoCoMo/[1-2]\.0" Browser_FP=1 | |
BrowserMatch "^UP\.Browser/[1-9]\.[0-9]" Browser_FP=1 | |
BrowserMatch "^KDDI-[A-Z0-9]+ UP\.Browser/[1-9]\.[0-9]" Browser_FP=1 | |
BrowserMatch "^J-PHONE/1\.0" Browser_FP=1 | |
BrowserMatch "^Vodafone/[1-2]\.0" Browser_FP=1 | |
BrowserMatch "^SoftBank/[1-9]\.0" Browser_FP=1 | |
<If Browser_FP> | |
RewriteEngine On | |
RewriteRule /* /unsupported.html [L] | |
</If> |
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
#!/usr/bin/env ruby | |
# iOS App Store Crawler by Nowa <[email protected]> | |
# 2010-08-04 | |
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
USERAGENT = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4' | |
LETTERS = %w{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z *} |
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
server { | |
set $browse_os ""; | |
if ($uri !~ ^/support_for_windows_xp_has_ended){ | |
set $browse_os "X"; | |
} | |
if ($http_user_agent ~ "Windows NT 5\.[12]") { | |
set $browse_os "${browse_os}P"; | |
} | |
if ($browse_os = "XP"){ | |
return 302 /support_for_windows_xp_has_ended; |
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
function randomString(length,numNumeric,numLCase,numUCase,numSymbols){ | |
length=length||16;numNumeric=numNumeric||3,numLCase=numLCase||3,numUCase=numUCase||3,numSymbols=numSymbols||3; | |
var charsList = [ | |
'0123456789', | |
'abcdefghijklmnopqrstuvwxyz', | |
'ABCDEFGHIJKLMNOPQRSTUVWXYZ', | |
'!"#$%&\'()*+,-./\\:;<=>?@[]^_`{|}~' | |
], | |
charLength = [numNumeric,numLCase,numUCase,numSymbols], | |
str="",i=0; |
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
var keyword = /(?:正規表現|頑張(?:って|る)|書(?:いてみよ|こ)う)/ | |
var device = '<[email protected]>'; | |
var screen_name = 'your_screen_name'; | |
var PushBullet = require('pushbullet'); | |
var pusher = new PushBullet('PUSH_BULLET_API_KEY'); | |
var twitter = require('ntwitter'); | |
var twit = new twitter({ | |
consumer_key: 'YOUR_CONSUMER_KEY', | |
consumer_secret: 'YOUR_CONSUMER_SECRET', | |
access_token_key: 'ACCESS_TOKEN_KEY', |
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
ssl_session_cache shared:SSL:10m; | |
ssl_session_timeout 10m; | |
ssl_dhparam dhparam.pem; | |
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"; | |
add_header X-Frame-Options DENY; | |
add_header X-Content-Type-Options nosniff; | |
add_header Cache-Control "public, must-revalidate"; | |
## TLS Session Tickets setting | |
ssl_session_tickets off; # Requires nginx >= 1.5.9 | |
ssl_session_ticket_key ssl_session_ticket.key; |
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
server { | |
listen 443 ssl http2; | |
server_name example.com; | |
error_log /var/log/nginx/error.log; | |
access_log /var/log/nginx/access.log main; | |
root /var/www/example.com/public; | |
index index.html; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006"> | |
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a"> | |
<Account> | |
<AccountType>email</AccountType> | |
<Action>settings</Action> | |
<Protocol> | |
<Type>IMAP</Type> | |
<Server>imap.gmail.com</Server> |
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
<?php | |
/** | |
* 前方一致 | |
* $haystackが$needleから始まるか判定します。 | |
* @param string $haystack | |
* @param string $needle | |
* @return boolean | |
*/ | |
function startsWith($haystack, $needle) | |
{ |