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 fdisk /dev/xvdb | |
sudo partprobe /dev/xvdb | |
sudo mkfs /dev/xvdb -t ext4 #n, enter, enter, ... w when prompted again. The w will write | |
sudo mount /dev/xvdb data/ | |
sudo chown -R ubuntu data |
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
#!/bin/sh | |
# License: GNU GPLv3 | |
sudo apt-get update && apt-get upgrade -y | |
# install other common utils | |
sudo apt-get install build-essential wget curl make tmux git python3-pip neofetch stow -y | |
# Download recent neovim | |
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage | |
chmod u+x nvim.appimage |
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
#!/bin/sh | |
# License: GNU GPLv3 | |
sudo apt-get update && apt-get upgrade -y | |
# install other common utils | |
sudo apt-get install build-essential wget curl neovim make tmux git python3-pip neofetch stow -y | |
# R section inspired by https://cran.r-project.org/bin/linux/debian/ | |
# R - dependencies necessary to add a new repository over HTTPS (CRAN GPG depends on these) | |
sudo apt-get install dirmngr apt-transport-https ca-certificates software-properties-common gnupg2 |
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
tar -xvzf ~/Downloads/csvtk_linux_amd64.tar.gz | |
ls | |
sudo cp csvtk /usr/local/bin/ | |
csvtk | |
wget https://raw.githubusercontent.com/tidyverse/ggplot2/master/data-raw/diamonds.csv | |
cat diamonds.csv | head | |
csvtk pretty diamonds.csv | head | |
cat diamonds.csv | csvtk summary depth:sum --groups cut | | |
cat diamonds.csv | csvtk summary depth:sum --groups cut | csvtk pretty | |
cat diamonds.csv | csvtk summary --fields depth:sum --groups cut | csvtk pretty |
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
#!/bin/bash | |
wget https://github.com/harelba/q/releases/download/2.0.19/q-text-as-data_2.0.19-2_amd64.deb | |
sudo dpkg -i q-text-as-data_2.0.19-2_amd64.deb | |
wget https://gist.githubusercontent.com/sarchak/b87ad2be315ce05f7a047550646f3c41/raw/0c7d83608111f74f212398fc0d2a704e4f8dc499/diamonds.csv | |
q -HOd , "select * from diamonds.csv 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
#!/bin/sh | |
# License: GNU GPLv3 | |
sudo apt-get update && apt-get upgrade -y | |
# install other common utils | |
sudo apt-get install build-essential wget curl neovim make tmux git python3-pip neofetch stow -y | |
# R section inspired by https://cran.r-project.org/bin/linux/debian/ | |
# R - dependencies necessary to add a new repository over HTTPS (CRAN GPG depends on these) | |
sudo apt-get install dirmngr apt-transport-https ca-certificates software-properties-common gnupg2 |
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
#!/bin/bash | |
sudo apt install xwallpaper | |
sudo apt install sxiv | |
git clone https://gist.github.com/85942af486eb79118467.git ~/wallpapers | |
# Enter to get into thumbnail mode | |
# Mark desired image with M | |
# Wallpaper will set when window closes | |
sxiv -r -q -o * | xargs xwallpaper --stretch |
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
#!/bin/sh | |
# License: GNU GPLv3 | |
sudo apt-get update && sudo apt-get upgrade -y | |
# assumes no desktop environment -- must install Xorg things | |
sudo apt-get --no-install-recommends install xserver-xorg xserver-xorg-video-fbdev \ | |
xinit pciutils xinput xfonts-100dpi xfonts-75dpi xfonts-scalable libx11-dev libxft-dev libxinerama-dev xorg-dev -y | |
# install other common utils | |
sudo apt-get install build-essential curl neovim make tmux git python3-pip neofetch stow -y |
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
# in debian session use the following commands then logout | |
sudo apt install xmonad libghc-xmonad-contrib-dev xterm dmenu | |
# get an xmonad.hs file | |
cd ~/.xmonad/ && wget http://code.haskell.org/xmonad/man/xmonad.hs && cd | |
cd /usr/share/fonts && sudo https://github.com/adobe-fonts/source-code-pro.git && cd && sudo fc-cache -fv | |
# install st and set font. If something goes wrong delete config.h and try again manually. | |
git clone https://git.suckless.org/st | |
cd st | |
sed -i '7 a static char *font = "Source Code Pro:pixelsize=18:antialias=true:autohint=true";' config.def.h | |
sed -i '9d' config.def.h |
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
#!/bin/sh | |
# Devices -> Insert guest additions | |
sudo apt update | |
sudo apt install build-essential dkms linux-headers-$(uname -r) | |
sudo mkdir -p /mnt/cdrom | |
sudo mount /dev/cdrom /mnt/ | |
cd /mnt | |
sudo ./VBoxLinuxAdditions.run --nox11 | |
sudo shutdown -r now |