Skip to content

Instantly share code, notes, and snippets.

View lostdesign's full-sized avatar
🔥
working on leitstelle.io

wellá lostdesign

🔥
working on leitstelle.io
View GitHub Profile
@phortuin
phortuin / signing-git-commits.md
Last active November 16, 2024 07:44
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg
@ache051
ache051 / combine_mbtiles.py
Created December 15, 2020 22:58
Combine MBTiles
#-------------------------------------------------------------------------------
# Name: combine_mbtiles.py
# Purpose: Processes multiple sqlite .mbtiles files into single file (or by level? or by degree grids?)
#
# Author: joshn. Modified by ache015
#
# Created: 18/11/2014
#
# Last Modified: 10/11/2018
#-------------------------------------------------------------------------------
@Cannonb4ll
Cannonb4ll / Demo.php
Created July 31, 2020 11:40
Demo a Laravel application
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class Demo
{
protected $safeRoutes = [
@edwardlorilla
edwardlorilla / index.html
Created November 5, 2019 14:42
meme creator vuejs
<div id="app">
<div>
<input type="file" id="fileinput" @change="onFileChange">
</div>
<div>
<label for="topText">Top Text:</label>
<input type="text" v-model="topText" class="form-control" />
</div>
<div >
@KABBOUCHI
KABBOUCHI / canDryRun.php
Last active August 20, 2020 16:45
Dry Run Laravel Form Requests
<?php
namespace App\Http\Requests;
trait canDryRun
{
/**
* Validate the class instance.
@timwis
timwis / App.vue
Created February 19, 2019 12:51
Using mapbox-gj-leaflet with Vue2Leaflet
<template>
<LMap id="map" :center="center" :zoom="zoom">
<LTileLayer
:options="layerOptions"
:tile-layer-class="tileLayerClass" />
</LMap>
</template>
<script>
import { LMap, LTileLayer } from 'vue2-leaflet'
@giansalex
giansalex / docker-php-ext-install.md
Last active October 13, 2024 20:15
docker-php-ext-install Reference
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ 
@luciopaiva
luciopaiva / _Full-socketio-client-and-server-example.md
Last active August 20, 2024 05:17
Full socket.io client and server example

Full socket.io client and server example

Last updated: 2021-02-21, tested with socket.io v3.1.1

This is the simplest implementation you will find for a client/server WebSockets architecture using socket.io.

To see a full explanation, read my answer on SO here: https://stackoverflow.com/a/24232050/778272.

If you're looking for examples using frameworks, check these links:

@azimidev
azimidev / Form.js
Last active April 26, 2020 07:00
Axios Form Class for use with Vue.js
class Errors {
/**
* Create a new Errors instance.
*/
constructor() {
this.errors = {};
}
/**
* Determine if an errors exists for the given field.
@LeonardoCardoso
LeonardoCardoso / GPG-Tower
Last active April 21, 2023 11:53
How to setup Tower to use the GPG Suite
# GPG on Tower