:syn clear Repeat | g/^\(.*\)\n\ze\%(.*\n\)*\1$/exe 'syn match Repeat "^' . escape(getline('.'), '".\^$*[]') . '$"' | nohlsearch
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
| /* | |
| * Licensed to the Apache Software Foundation (ASF) under one | |
| * or more contributor license agreements. See the NOTICE file | |
| * distributed with this work for additional information | |
| * regarding copyright ownership. The ASF licenses this file | |
| * to you under the Apache License, Version 2.0 (the | |
| * "License"); you may not use this file except in compliance | |
| * with the License. You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
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
| server { | |
| listen 80; | |
| # server_name _; | |
| # ssl_protocols TLSv1.2; | |
| charset utf-8; | |
| location /hc { | |
| access_log /var/log/nginx/health-check-access.log; |
-
Create your Gist with some contents, e.g.
readme.mdfile -
Clone locally
# with ssh
git clone [email protected]:<hash>.git mygist
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
| -- get number of events for each | |
| SELECT | |
| event_dim.name, | |
| COUNT(event_dim.name) as event_count | |
| FROM | |
| [firebase-analytics-sample-data:android_dataset.app_events_20200101] | |
| GROUP BY | |
| event_dim.name | |
| ORDER BY | |
| event_count DESC |
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
| # get service external ip address | |
| EXTERNAL_IP=$(kubectl get svc <service_name> -o yaml | grep ip | awk -F": " '{print $NF}') | |