-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_gcloud.sh
More file actions
50 lines (40 loc) · 1.72 KB
/
setup_gcloud.sh
File metadata and controls
50 lines (40 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
mkdir -p github
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y linux-tools-$(uname -r)
sudo apt install git build-essential zsh -y
cd github
git config credential.helper store
git clone https://github.com/efficient/sortbloom/
svaderia@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
cd ~
alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
git clone --bare https://github.com/svaderia/dotfiles $HOME/dotfiles
config checkout
config config --local status.showUntrackedFiles no
config submodule update --init --recursive
zsh
cp $ZSH_CUSTOM/setup.zsh.example $ZSH_CUSTOM/00-setup.zsh
touch $ZSH_CUSTOM/02-local_profile.zsh
touch $ZSH_CUSTOM/04-local_alias.zsh
git config --global user.name "svaderia"
git config --global user.email "vaderiashyamal@gmail.com"
git config --global credential.helper store
git config --global core.editor vim
config submodule update --remote --merge
mkdir -p ~/.vim/undodir
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)"
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> $ZSH_CUSTOM/02-local_profile.zsh
brew install fzf ripgrep fd rust-analyzer
cd sortbloom
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. "$HOME/.cargo/env"
git checkout svaderia_experiment
make
mkdir -p results/gcloud
sudo
echo 400 > /proc/sys/vm/nr_hugepages
echo -1 > /proc/sys/kernel/perf_event_paranoid
python3 driver.py --experiment "gcloud: small test" --out-dir results/gcloud --low-bits 23 --high-bits 25 --hasher cust-range-map --run-count 1 --sort-options-file sort_options.data