Skip to content

Instantly share code, notes, and snippets.

@abelcallejo
abelcallejo / README.md
Last active July 1, 2024 07:49
ENVI .hdr labelled, Days of the Year

ENVI .hdr labelled, Days of the Year

Non-leap year

Years: 2021, 2022, 2023, Leap year, 2025, 2026, 2027, Leap year, 2029, 2030, 2031

data ignore value = 0
file type = ENVI Classification
classes = 377
class lookup = {
 255 , 0 , 121 ,
@abelcallejo
abelcallejo / README.md
Last active May 29, 2024 08:23
Next generation of spatial tools for R
@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
Last active June 24, 2024 05:31
Cheatsheet for mapping Philippines

Cheatsheet for mapping Philippines

Philippines

Extents

North
19.57372
West East
116.9288647 126.6049656
@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: