Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| #!/bin/sh | |
| # | |
| # git autodeploy script when it matches the string "[deploy]" | |
| # | |
| # @author icyleaf <[email protected]> | |
| # @link http://icyleaf.com | |
| # @version 0.1 | |
| # | |
| # Usage: | |
| # 1. put this into the post-receive hook file itself below |
| ;;;;;;;;;;;;;;;;;;;;; | |
| ; FPM Configuration ; | |
| ;;;;;;;;;;;;;;;;;;;;; | |
| ; All relative paths in this configuration file are relative to PHP's install | |
| ; prefix (/home/sotarok/.phpenv/versions/5.4.0s). This prefix can be dynamicaly changed by using the | |
| ; '-p' argument from the command line. | |
| ; Include one or more files. If glob(3) exists, it is used to include a bunch of | |
| ; files from a glob(3) pattern. This directive can be used everywhere in the |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| import os | |
| import sys | |
| import re | |
| import hashlib | |
| import csv | |
| import time | |
| import locale | |
| import getopt |
| type ( | |
| // BuoyCondition contains information for an individual station. | |
| BuoyCondition struct { | |
| WindSpeed float64 `bson:"wind_speed_milehour"` | |
| WindDirection int `bson:"wind_direction_degnorth"` | |
| WindGust float64 `bson:"gust_wind_speed_milehour"` | |
| } | |
| // BuoyLocation contains the buoy's location. | |
| BuoyLocation struct { |
The plan is to create a pair of executables (ngrok and ngrokd) that are connected with a self-signed SSL cert. Since the client and server executables are paired, you won't be able to use any other ngrok to connect to this ngrokd, and vice versa.
Add two DNS records: one for the base domain and one for the wildcard domain. For example, if your base domain is domain.com, you'll need a record for that and for *.domain.com.
註:Formula 就是套件名稱,你在官方文件或 help 上會經常看到 FORMULA... 這個英文字彙,在 Homebrew 中,它即是套件名稱。
% brew help% brew search mongodb| var digitUppercase = function(n) { | |
| var fraction = ['角', '分']; | |
| var digit = [ | |
| '零', '壹', '贰', '叁', '肆', | |
| '伍', '陆', '柒', '捌', '玖' | |
| ]; | |
| var unit = [ | |
| ['元', '万', '亿'], | |
| ['', '拾', '佰', '仟'] | |
| ]; |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "strconv" | |
| "github.com/miekg/dns" | |
| ) |