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
ulimit | |
vm.max_map_count via sysctl to be at least 262144. | |
sudo swapoff -a | |
http.cors.enabled : true | |
http.cors.allow-origin : "*" | |
index.number_of_replicas: 0 | |
curl -XPUT 'localhost:9200/_template/logstash_template' -d ' | |
{ |
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
set ulimit | |
set sysctl.conf | |
apt-get install build-essential | |
sudo apt-get update | |
sudo apt-get install -y ruby2.3-dev |
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
sudo chown -R $(whoami) /usr/local | |
brew update && brew upgrade # it will take some time | |
brew cask install xquartz | |
brew install octave # it will take a lot of time… |
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
Error: uninitialized constant Formulary::FormulaNamespacefe4ce29a01455f41d6d0b08c39f76615::Octave::DevelopmentTools | |
Please report this bug: | |
https://git.io/brew-troubleshooting | |
/usr/local/Library/Taps/homebrew/homebrew-science/octave.rb:31:in `<class:Octave>’ | |
/usr/local/Library/Taps/homebrew/homebrew-science/octave.rb:1:in `load_formula’ | |
/usr/local/Library/Homebrew/formulary.rb:21:in `module_eval’ | |
/usr/local/Library/Homebrew/formulary.rb:21:in `load_formula’ | |
/usr/local/Library/Homebrew/formulary.rb:38:in `load_formula_from_path’ | |
/usr/local/Library/Homebrew/formulary.rb:87:in `load_file’ | |
/usr/local/Library/Homebrew/formulary.rb:78:in `klass’ |
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
bq | |
=== | |
SELECT | |
* | |
FROM | |
[data-platform-163807:visearch_stats.access_logs_stats_hourly] | |
where date_hour >= '2014-01-01 00:00:00' and date_hour < '2015-01-01 00:00:00' | |
image | |
==== |
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
ALTER TABLE dashboard.search_stats_hourly_2018 | |
PARTITION BY RANGE ( MONTH(date_hour) ) ( | |
PARTITION p01 VALUES LESS THAN (2), | |
PARTITION p02 VALUES LESS THAN (3), | |
PARTITION p03 VALUES LESS THAN (4), | |
PARTITION p04 VALUES LESS THAN (5), | |
PARTITION p05 VALUES LESS THAN (6), | |
PARTITION p06 VALUES LESS THAN (7), | |
PARTITION p07 VALUES LESS THAN (8), | |
PARTITION p08 VALUES LESS THAN (9), |
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
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install --upgrade --user |
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
import com.amazonaws.HttpMethod; | |
import com.amazonaws.auth.AWSStaticCredentialsProvider; | |
import com.amazonaws.auth.BasicAWSCredentials; | |
import com.amazonaws.services.s3.AmazonS3; | |
import com.amazonaws.services.s3.AmazonS3ClientBuilder; | |
import com.amazonaws.services.s3.model.GeneratePresignedUrlRequest; | |
import java.net.URL; | |
public class Test { |
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
syntax on | |
set et | |
set nu | |
set hlsearch | |
set paste | |
set copyindent |
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
gcloud beta functions deploy dashboardRecHistoryFunction --stage-bucket visenze-data_platform-cloud_function --trigger-topic rec_history --memory 128 |