Skip to content

Instantly share code, notes, and snippets.

View AlcidesRC's full-sized avatar
🏠
Working from home

Alcides AlcidesRC

🏠
Working from home
View GitHub Profile
@AlcidesRC
AlcidesRC / Makefile
Created October 28, 2024 08:12
Plantilla de fichero Makefile
.DEFAULT_GOAL := help
###
# CONSTANTS
###
ifneq (,$(findstring xterm,$(TERM)))
BLACK := $(shell tput -Txterm setaf 0)
RED := $(shell tput -Txterm setaf 1)
GREEN := $(shell tput -Txterm setaf 2)
@AlcidesRC
AlcidesRC / spanish-postal-codes.csv
Last active August 21, 2024 07:51
Spanish Postal Codes (Imported: 20240820)
We can't make this file beautiful and searchable because it's too large.
Country;"Postal Code";City;Province;Region;Latitude;Longitude
ESP;01001;Vitoria-Gasteiz;Araba/Álava;"País Vasco";42.8469215;-2.671688
ESP;01002;Vitoria-Gasteiz;Araba/Álava;"País Vasco";42.8526637;-2.6588295
ESP;01003;Vitoria-Gasteiz;Araba/Álava;"País Vasco";42.8475484;-2.6550066
ESP;01004;Vitoria-Gasteiz;Araba/Álava;"País Vasco";42.8442478;-2.6666873
ESP;01005;Vitoria-Gasteiz;Araba/Álava;"País Vasco";42.8434849;-2.6721878
ESP;01006;Vitoria-Gasteiz;Araba/Álava;"País Vasco";42.8386192;-2.6583733
ESP;01007;Vitoria-Gasteiz;Araba/Álava;"País Vasco";42.832489;-2.7012067
ESP;01008;Vitoria-Gasteiz;Araba/Álava;"País Vasco";42.8475091;-2.6850085
ESP;01009;Vitoria-Gasteiz;Araba/Álava;"País Vasco";42.8543782;-2.6865204
@AlcidesRC
AlcidesRC / backup-projectx.sh
Last active March 15, 2021 11:18
Shell script that performs a complete backup and keeps the files locally and also in AWS S3
#!/bin/sh
#
# Setup: crontab -e
#
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat