This is an example of Envoy TCP Proxy from localhost:10000
to www.google.com:80
.
See also https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/listeners/tcp_proxy.
To run a proxy:
% docker run --rm getenvoy/envoy:stable --version
This is an example of Envoy TCP Proxy from localhost:10000
to www.google.com:80
.
See also https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/listeners/tcp_proxy.
To run a proxy:
% docker run --rm getenvoy/envoy:stable --version
SELECT | |
database, | |
table, | |
formatReadableSize(sum(bytes)) as size | |
FROM system.parts | |
WHERE active | |
GROUP BY database, table | |
ORDER BY sum(bytes) |
// Globally register all base components for convenience, because they | |
// will be used very frequently. Components are registered using the | |
// PascalCased version of their file name. | |
import upperFirst from 'lodash/upperFirst' | |
import camelCase from 'lodash/camelCase' | |
export default async ({ Vue }) => { | |
console.log('loading components') | |
// https://webpack.js.org/guides/dependency-management/#require-context |
$ grep pd\\.[^\(]*\( app -roh | sort -u | |
pd.concat( | |
pd.DataFrame( | |
pd.DataFrame.from_dict( | |
pd.ExcelWriter( | |
pd.merge( | |
pd.pivot_table( | |
pd.read_csv( | |
pd.read_sql_query( | |
pd.Series).stack( |
邪惡博士在進行人體實驗,他把收集到的病人分類,你可以想像成用性別或血型來分,也就是每個病人只會落在某一個 group。
然後被咬過的人會丟進小房間所以一個人只會被咬過一次。
Given two tables, 1. bite
,2. mutate
,一張記錄被咬的事件,另一張記錄病人突變的事件。同一個病人被咬到之後可能突變任意次,但一天最多突變一次。
下面是半年前他徒弟為了協助研究而寫的 SQL ,他想調查的內容如下:
某一個時段區間內 begin_timestamp ~ end_timestamp (bts ~ ets),可能跨了很多天,每天被咬的病人在三天內突變的情況。
我們不在乎具體哪一天被咬,只在乎這段時間所有被咬的事件,在三天內(日曆天)突變的情況。
所以最終的輸出會是 每一組(patient_group_id) 在幾天後(day_diff) 的 被咬數量(分母) 以及 突變數量(分子)
# this is a comment line | |
print('Hello World') | |
print("Hello World") | |
print(''' | |
Hello | |
World | |
:D | |
''') | |
print(1) |
Step 0 - Get three files from sslforfree | |
Step 1 - Create .crt file | |
echo -e "`cat domainname.crt`\n`cat domainname.ca-bundle.crt`" > domainname-ssl-bundle.crt | |
Step 2- | |
Add lines for ssl_certificate in nginx configuration |
#!/bin/bash | |
#Whenever you clone a repo, you do not clone all of its branches by default. | |
#If you wish to do so, use the following script: | |
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do | |
git branch --track ${branch#remotes/origin/} $branch | |
done |