- An external disk to back up your data
- A USB drive to install Zorin OS
- Format an external disk to exFAT format
- Back up your data to this external disk
- Don't forget to back up your config files (
.gitconfig,.ssh/,.Renviron,.Rprofile, etc.)
orthomap <- function(lon, lat) {
g <- as_s2_geography(TRUE)
co <- s2_data_countries()
oc <- s2_difference(g, s2_union_agg(co)) # oceans
co <- s2_difference(co, s2_union_agg(oc)) # land
# visible half
b <- s2_buffer_cells(as_s2_geography(paste0("POINT(", lon, " ", lat,")")),
distance = 9800000)| # code from https://gist.github.com/d-qn/4f1c4ed80a4fd6a76cd1153c89f56134 | |
| library(tidyverse) | |
| library(sf) | |
| library(osmdata) # to get openstreetmap geo data | |
| # settings | |
| # olivier: get data on Montpellier | |
| bb <- getbb('Montpellier, France') # define the bbox, will be used to fetch OSM data within that box | |
| dest_proj <- 2056 |
Use the software Calibre to manager and transfer epubs.
nano .kobo/affiliate.conf
| ## Switch to Admin | |
| su - | |
| ## Remove GRUB Menu | |
| cd /etc/default | |
| cp grub grub-OLD |
$ brew install postgresql # Install PostgreSQL
$ /usr/local/opt/postgres/bin/createuser -s postgres # Create postgres role
$ psql -U postgres # Connect to PostgreSQL
postgres=# \password postgres # Set/change password for postgres
$ brew services start postgresql # Start PostgreSQL server| ### [.] ALWAYS OPEN CHROMIUM IN PRIVATE MODE | |
| ###----------------------------------------- | |
| # N.B. | First install { AdBlock }, { Adblock Plus } and { Adblock for Youtube } extensions and | |
| # | Allow them to be run in private mode | |
| $ defaults write org.chromium.Chromium IncognitoModeAvailability -integer 2 # / 0 | |
| $ defaults write com.brave.Browser IncognitoModeAvailability -integer 2 | |
| #!/bin/sh | |
| # chmod a+x ./macos-settings.sh | |
| # sh ./macos-settings.sh | |
| ## [.] Install Command Line Tools ---- | |
| sudo xcode-select --install |