http://nginx.org/en/docs/http/configuring_https_servers.html
http://nginx.org/ja/docs/http/configuring_https_servers.html
default_serverは対象のポートに対して有効だから
下記のようにポート毎にデフォルトサーバを指定できる。
server {
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'cgi' | |
require 'open-uri' | |
require 'rubygems' | |
require 'zipruby' | |
require 'rmagick' | |
SUPPORT_FORMAT = /\.(png|jpg)$/ |
javascript: | |
(function(){ | |
var l=location.href; | |
l=prompt('URL',l); | |
var u='http://megalodon.jp/?url='+escape(l); | |
with(window.open().document){ | |
location.href=u; | |
close(); | |
} | |
} |
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'cgi' | |
require 'open-uri' | |
require 'rubygems' | |
require 'zipruby' | |
require 'RMagick' | |
require 'kconv' | |
require 'logger' | |
require 'amazon/aws' |
// that is, navigate to the direct URL for an image hosted on the world wide web, then >>>INVOKE<<< | |
// i wanted the bookmarklet to redirect to the new direct image URL but that was out of scope! | |
javascript:void(window.location="http://api.imgur.com/2/upload.json?url="+encodeURIComponent(window.location.href)); |
#!/bin/bash | |
# | |
# $ pararell-curl.sh --url=[url] | |
# $ pararell-curl.sh --url=[url] --thread=6 | |
# | |
LANG=C | |
LC_ALL=C | |
set -e |
#!/bin/bash | |
LANG=ja_JP.utf8 | |
pid=$$ | |
date=`date '+%Y-%m-%d-%H_%M'` | |
outdir="." | |
if [ $# -le 1 ]; then |
<?php | |
/* ----- configure ----- */ | |
//Pixiv ID | |
define('PIXIV_ID', 'your_pixiv_id'); | |
//Pixiv password | |
define('PIXIV_PASSWORD', 'your_pixiv_password'); | |
/* ----- configure ----- */ |
http://nginx.org/en/docs/http/configuring_https_servers.html
http://nginx.org/ja/docs/http/configuring_https_servers.html
default_serverは対象のポートに対して有効だから
下記のようにポート毎にデフォルトサーバを指定できる。
server {
#!/usr/bin/env bash | |
# Step 1: Fill in EMAIL, TOKEN, DOMAIN and SUBDOMAIN. Your API token is here: https://dash.cloudflare.com/profile/api-tokens | |
# Make sure the token is the Global token, or has these permissions: #zone:read, #dns_record:read, #dns_records:edit | |
# If you want to set the root domain instead of a subdomain, set SUBDOMAIN to "@" | |
# Step 2: Create an A record on Cloudflare with the subdomain you chose | |
# Step 3: Run "./ddns.sh -l" to get the zone_id and rec_id of the record you created. | |
# Fill in ZONE_ID and REC_ID below | |
# This step is optional, but will save you 2 requests every time you run this script | |
# Step 4: Run "./ddns.sh". It should tell you that record was updated or that it didn't need updating. |
#!/bin/sh | |
# Flacon-style convert to mp3 and split tracks from flac+cue files | |
# Made by André Rendeiro (afrendeiro@gmail.com) | |
# Rename | |
{ | |
find . -name '* *' | while read file; do target=`echo "$file" | sed 's/ /_/g'`; mv "$file" "$target"; done | |
find . -name '* *' | while read file; do target=`echo "$file" | sed 's/ /_/g'`; mv "$file" "$target"; done | |
find . -name '* *' | while read file; do target=`echo "$file" | sed 's/ /_/g'`; mv "$file" "$target"; done |