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
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/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/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
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
library(ftplottools) | |
library(ggplot2) | |
library(ggtext) | |
theme_gruv <- function(){ | |
title_text_color <- "#ebdbb2" | |
other_text_color <- "#ebdbb2" | |
grid_line_color <- "#ebdbb2" | |
panel_background <- "#32302f" | |
font_family <- "SauceCode Pro Nerd Font" |
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
from manim import * | |
from scipy.stats import uniform, beta, norm, cauchy | |
import numpy as np | |
black_color = '#292c35' | |
black = "#292c35" | |
red = "#ee1d52" | |
yellow = "#f2d803" | |
blue = "#63a3be" |
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
ffmpeg \ | |
-video_size $(xdpyinfo | grep dimensions | awk '{print $2;}') \ | |
-framerate 25 \ | |
-f x11grab \ | |
-i :1.0 \ | |
output.mkv | |
# https://trac.ffmpeg.org/wiki/Capture/Desktop |
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
------------------------------------------------- | |
-- xvzf neovim configuration | |
-- neovim website: https://neovim.io/ | |
-- version: | |
------------------------------------------------- | |
------------------------------------------------- | |
-- general settings | |
------------------------------------------------- |
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
return { | |
"folke/neodev.nvim", -- setting up nvim things | |
"folke/which-key.nvim", -- hints for keys | |
"sainnhe/everforest", -- everforest theme | |
"phaazon/hop.nvim", -- nvim motions | |
"nvim-lualine/lualine.nvim", -- lualine status bar | |
"kyazdani42/nvim-web-devicons", -- pretty icons | |
"lewis6991/gitsigns.nvim", -- git changes on side bar | |
"nvim-tree/nvim-tree.lua", -- file tree | |
"hkupty/iron.nvim", -- R and Python repl |