Skip to content

Instantly share code, notes, and snippets.

View FabrizioCafolla's full-sized avatar
🇮🇹

Fabrizio Cafolla FabrizioCafolla

🇮🇹
View GitHub Profile
@FabrizioCafolla
FabrizioCafolla / gh-dl-release
Last active July 22, 2024 12:04 — forked from metral/gh-dl-release
Download assets from private or public Github releases
#!/usr/bin/env bash
#
# This script downloads an asset from latest or specific Github release of a
# public or private repo.
#
# PREREQUISITES:
#
# curl, wget, jq
#
set -eE -o functrace
@FabrizioCafolla
FabrizioCafolla / Dockerfile-php-alpine-with-grpc
Last active April 4, 2023 15:26
PHP 7.4 alpine docker container - with dependencies and gRPC extension
FROM php:7.4-fpm-alpine
LABEL mantainer="developer@fabriziocafolla.com"
LABEL description="PHP alpine - docker container with dependencies and gRPC extension "
# # #
# Install build dependencies
# # #
ENV build_deps \
autoconf \
@FabrizioCafolla
FabrizioCafolla / sqlite2mysql.py
Created September 2, 2021 09:31
SQLite dump to MySQL dump with python 3
#!/usr/bin/env python3
#
# Converte un dump sqlite in mysql
#
# Esempi:
# cat db.sqlite | python sqlite2mysql > db.mysql
# cat db.sqlite | ./sqlite2mysql > db.mysql
#
# INPUT:
# - Dump sqlite