- Create a k8s cluster https://cloud.digitalocean.com/kubernetes/clusters
- Install kubectl https://kubernetes.io/docs/tasks/tools/install-kubectl/
- Download config file from cluster page to
~/.kube/config
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
| $ node --experimental-worker index.js | |
| Sorting [ 9, 4, 1, 6, 4, 9, 9, 10, 4, 3 ] | |
| sleeping 9000 | |
| sleeping 4000 | |
| sleeping 1000 | |
| sleeping 4000 | |
| sleeping 6000 | |
| sleeping 9000 | |
| sleeping 9000 |
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
| SELECT relname, | |
| seq_scan, | |
| seq_tup_read, | |
| idx_scan | |
| FROM pg_stat_user_tables | |
| WHERE seq_scan > 0 | |
| ORDER BY 3 DESC LIMIT 10; |
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
| const randomColors = [ | |
| '#8dd3c7', | |
| '#ffffb3', | |
| '#bebada', | |
| '#fb8072', | |
| '#80b1d3', | |
| '#fdb462', | |
| '#b3de69', | |
| '#fccde5', | |
| '#d9d9d9', |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # -*- sh -*- vim:set ft=sh ai et ts=2 sw=2 sts=2: | |
| # It might be bash like, but I can't have my co-workers knowing I use zsh | |
| PROMPT='%{$fg[magenta]%}%n@%m:%{$fg_bold[blue]%}%2~ $(git_prompt_info)%{$reset_color%}%(!.#.$) ' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}‹" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="›%{$reset_color%}" |
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
| select * from pg_timezone_names where date_part('hour', (now() at time zone 'UTC') + utc_offset) = 0; |
git remote add upstream [email protected]:mapbox/mapbox-gl-js.git
git fetch upstream
git rebase upstream/masterpostgresql.conf -> log_min_messages = debug1
postgis_config.h.in -> #define POSTGIS_DEBUG_LEVEL 1
./autogen.sh
./configure --enable-debug
make
make install
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
| use std::collections::HashMap; | |
| pub trait Source<'a> { | |
| fn get_id(&self) -> &'a str; | |
| } | |
| pub type Sources<'a> = HashMap<&'a str, Source<'a>>; | |
| #[derive(Copy, Clone, Debug)] | |
| pub struct TableSource<'a> { |