Skip to content

Instantly share code, notes, and snippets.

@abelcallejo
abelcallejo / README.md
Last active May 8, 2024 03:15
Next generation of spatial tools for R

r

Next generation of spatial tools for R

raster maptools rgdal rgeos sp1

terra sf stars sp2

This guide was written by abelcallejo because of:

  1. the ascension of the sf and stars packages over the retired maptools, rgdal and rgeos packages — See reference
  2. the supercedence of the terra pack
@abelcallejo
abelcallejo / README.md
Created November 17, 2023 00:41
Automating git pull

Automating git pull

Windows

  1. Create the PowerShell script

    git-pull.ps1

    cd "C:/path/to/app-cspm"

git pull

@abelcallejo
abelcallejo / README.md
Last active August 25, 2023 06:53
Pushing changes without conflicts using git rebase

Pushing changes without conflicts using git rebase

1. Get a copy of the latest version

# get the latest version
git checkout master
git pull

# create a new branch and switch to the new branch
git branch my-new-branch-for-awesome-feature
git checkout my-new-branch-for-awesome-feature
@abelcallejo
abelcallejo / README.md
Last active May 7, 2023 05:17
Creating a starter kit for Laravel

Laravel logo Composer logo

Creating a starter kit for Laravel

You are probably wondering how Laravel made some starter kits to be easily installable using just the following commands:

composer install laravel/breeze     # Quickly integrates the starter kit to the composer environment
php artisan breeze:install          # Quickly integrates the starter kit to the Laravel environment

If you want to build a project with the same installation setup, you are on the right track. This documentation is all about doing exactly just that. Without further ado, let's just jump right into it!

@abelcallejo
abelcallejo / README.md
Last active April 3, 2024 02:15
Laravel Cheatsheet

Laravel Cheatsheet

Installation

# Prepare the working directory
cd /path/to/www
git clone git@github.com:goodyweb/example-app.git
cd /path/to/www/example-app
@abelcallejo
abelcallejo / README.md
Created October 22, 2022 08:13
Stopping PostgreSQL 15 server on MacOS Monterey

Stopping PostgreSQL 15 server on MacOS Monterey

sudo -u postgres pg_ctl -D /Library/PostgreSQL/15/data stop
@abelcallejo
abelcallejo / README.md
Created March 22, 2022 09:09
Cheatsheet for mapping Philippines

Cheatsheet for mapping Philippines

Region 6

Extents

North
12.2089955
West East
121.2826686 123.5728989
@abelcallejo
abelcallejo / README.md
Last active February 18, 2022 17:04
Docker container template

Docker whale

Container Template

The stupendously minimal template for building a container.

Step 1: Prepare the working directory

git

git clone git@github.com:you/repository.git hello

Traditionally, it is done like so:

@abelcallejo
abelcallejo / README.md
Created November 8, 2021 08:35
JavaScript cheatsheet

JavaScript cheatsheet

Processing a promise

Cloning a DOM object

let p = document.getElementById("para1")