eval DEPLOY_PRODUCTION=\$${CURRENT}_PRODUCTION
eval DEPLOY_FASTCGI_PORT=(\${${CURRENT}_FASTCGI_PORT[@]})
This file contains hidden or 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
#!/bin/bash | |
# 此脚本用来移动clean数据并建立软链接 | |
export LANG="en_US.UTF-8" | |
# 路径 | |
src="/data1" | |
dst="/data2" |
This file contains hidden or 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
#!/bin/bash | |
# 此脚本用来批量执行分析或统计脚本 | |
function usage() { | |
cat << EOF | |
Usage: $0 script begin [end] | |
script 要进行批处理的脚本,应该在当前路径下 | |
begin, end 参数是日期字符串格式,示例:2015-10-01 |
This file contains hidden or 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 geopy.geocoders import Nominatim | |
def get_geocodes(self, names): | |
if not isinstance(names, (list, tuple)): | |
names = [names] | |
geocodes = [] | |
geolocator = Nominatim(country_bias='cn') | |
for name in names: | |
location = geolocator.geocode(name) | |
geocodes.append([location.longitude, location.latitude]) |
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
.