Skip to content

Instantly share code, notes, and snippets.

View KevCaz's full-sized avatar
🐙
Positive mental attitude

Kevin Cazelles KevCaz

🐙
Positive mental attitude
View GitHub Profile
@KevCaz
KevCaz / setup_bookworm.sh
Last active July 2, 2023 21:34
My debian bookworm setup
# Debian bookworm setup
## 4th version of my Debian install on my Lenovo T470p
## This time I kept it "light" it includes the tools I used the most.
## Note that much software was already installed with the way I did the
## installation (e.g. sudo, ssh, git, python, inkscape, libreoffice, etc.)
# configure sudo
su
echo "kc ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username
exit
@KevCaz
KevCaz / installR_ubuntu20-04.sh
Last active May 31, 2023 17:46
Installation et configuration R pour l'équipe ETL
#!/bin/bash
# Installer R et tout ce qu'il faut pour se connecter aux bases de données
# d'Omnimed
# -- Pre-requis: avoir roulé les omnikools
# Miscrosoft ODBC (pour pouvoir interroger des bases de données clients avec R)
# https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15#17
wget -qO - https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo wget -qO - https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee -a /etc/apt/sources.list.d/mssql-release.list
@KevCaz
KevCaz / setup_bullseye.sh
Last active November 13, 2023 04:30
My setup on Debian 11 "Bullseye"
#!/usr/bin/env bash
# NB: this is based on my previous gist installDebian.sh
# *Pre-requisite*:
## 1: enter super user (su) mode
su
## 2: add kevcaz (my username) to sudo
## note NOPASSWD:ALL means no password required when kevcaz uses sudo
## remove 'NOPASSWD:' if you want the password to be required
echo "kevcaz ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username
@KevCaz
KevCaz / install_macos_light.sh
Last active November 20, 2018 00:27
Light install MacOS 10.14
!/bin/bash
##-- Installing Homebrew
## use xcode-select -p to check whether Xcode is installed
xcode-select --install
sudo xcodebuild -license
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
##-- Tapping
brew tap osgeo/osgeo4mac
@KevCaz
KevCaz / installDebianStretch
Last active April 5, 2022 00:00
Debian Stretch
#!/usr/bin/env bash
# I ran the lines below in super user mode (*i.e.* using su; as you can see I install sudo below)
# libappindicator1 was required to use google-chrome
# **Few notes regarding R packages**: I first used the debian package (i.e. r-cran-XXXX) but with 3.4.1
# and higher there was an issue with r-api-x that leads me to install packages from R (this may be changed).
# Dependencies are required:
# - libfreetype6-dev for showtext
# - libpoppler-cpp-dev for pdftools
# - libudunits2-dev for some leaflet dependencies
# - libssl-dev for devtools
@KevCaz
KevCaz / setup_bullseyebookworm.sh
Last active April 5, 2022 00:02
My Debian Buster (and Bookworm) setup on my Lenovo T470p
#!/usr/bin/env bash
# NB:
# - libappindicator1 was required to use google-chrome
# - apt-transport-https curl for Brave
# Dependencies for R packages:
# - libfreetype6-dev for showtext
# - libpoppler-cpp-dev for pdftools
# - libudunits2-dev for some leaflet dependencies
# - libssl-dev for devtools
# - libquantlib0-dev for rquantlib
@KevCaz
KevCaz / myPackages.R
Last active April 27, 2021 09:12
My list of R packages that have no debian package
# Packages installed via apt-get packages
# apt-get install r-cran-v8
# apt-get install "r-cran-rcpp.*" r-cran-reticulate r-cran-rjava r-cran-devtools r-cran-doparallel r-cran-sf r-cran-lwgeom r-cran-lme4 r-cran-ade4 r-cran-ape r-cran-vegan r-cran-igraph r-cran-rgl r-cran-webshot r-cran-cli r-cran-pillar r-cran-taxize r-cran-repr r-cran-reprex r-cran-biocmanager
# r-cran-plotly r-cran-cairodevice
# CRAN packages - complement the list of packages installed via apt-get
install.packages(
c(
"bipartite",
"blogdown",
"bookdown",