Skip to content

Instantly share code, notes, and snippets.

@uxweb
uxweb / launch.json
Created June 23, 2020 14:09
VScode Xdebug Settings
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
@uxweb
uxweb / dev.json
Created July 4, 2020 14:18 — forked from edgrosvenor/dev.json
Experimenting with wikimedia/composer-merge-plugin
{
"require": {
"grosv/eloquent-sheets": "dev-main",
"grosv/laravel-passwordless-login": "dev-main",
"wikimedia/composer-merge-plugin": "^1.4"
},
"require-dev": {
"grosv/laravel-git-workflow": "dev-main",
"grosv/stubby": "dev-main"
},
@uxweb
uxweb / multi-cloud-docker-swarm.md
Created August 26, 2020 01:09 — forked from jesugmz/multi-cloud-docker-swarm.md
Create a simple multi cloud Docker cluster using Docker Swarm, Docker Machine and the three top cloud providers nowadays - Google Compute Engine, Microsoft Azure and AWS

Simple multi cloud Docker cluster using Docker Swarm

This guide explains how to create a simple multi cloud Docker cluster using Docker Swarm, Docker Machine and the three top cloud providers nowadays - Google Compute Engine, Microsoft Azure and AWS.

Prerequisites

This guide assumes you have a Linux host with Docker CE installed. If you are using Docker for Mac or Docker for Windows you can avoid the Docker Machine set up since it comes included.

Install Docker Machine

@uxweb
uxweb / .gitlab-ci.yml
Last active March 8, 2025 18:13
Laravel application build and deployment with GitLab CI
image: docker:19.03
services:
- name: docker:19.03-dind
variables:
# ENABLE DOCKER BUILDKIT
DOCKER_BUILDKIT: 1
DOCKER_TLS_CERTDIR: "/certs"
DOMAIN: futurofficevalencia.es
@uxweb
uxweb / ffmpeg cheatsheet for glitching
Created July 27, 2021 18:07 — forked from NeuroWinter/ffmpeg cheatsheet for glitching
ffmpeg cheatsheet for glitching
FFMPEG '-i', file, '-c:v', 'libopenjpeg', "jpeg2000\\" + name + ".jp2"\
Convert image to jpeg2000
ffmpeg -i in.png -c:v libopenjpeg out.jp2
Hex Edit out.jp2
ffmpeg -i in.jp2 -c:v png out.png
General Edit
ffmpeg -i input.avi -c:v mpeg2video -g 999 -q:v 1 output.avi
*edit in avidemux/whatever*