Skip to content

Instantly share code, notes, and snippets.

View jrltt's full-sized avatar
🧉

Joaquín jrltt

🧉
View GitHub Profile
@jrltt
jrltt / .gitmessage
Last active November 17, 2022 08:45
Conventional commits & template
<type>(<optional scope>): <subject>
# Examples:
# type: build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test
# optional scope: provide additional contextual information, like: api, auth, private flow
# subject: short summary of the code changes, ex: make optional to enable public requests
#
# Final result: feat(auth): make optional to enable public requests
@jrltt
jrltt / docker-compose.yml
Created September 30, 2022 15:04
Docker compose (Wordpress & phpMyAdmin)
version: '3.3'
services:
db:
container_name: 'local-wordpress-db'
image: 'mysql:5.7'
volumes:
- './data/mysql:/var/lib/mysql'
ports:
- 18766:3306
environment:
package-lock=false
unsafe-perm=true
save-prefix=~
shrinkwrap=false
prefer-offline=true
save=false
audit=false
fund=false
@jrltt
jrltt / gist:77c65e02e6f416cbc2818d1bd51a8cf5
Created July 20, 2021 09:33
Husky node configuration for Sourcetree
// NOTE: https://github.com/typicode/husky/issues/390#issuecomment-545855628
# ~/.huskyrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
@jrltt
jrltt / category-list-prototype.markdown
Created January 11, 2021 17:49
Category list prototype
@jrltt
jrltt / setup.sh
Last active November 18, 2020 08:01 — forked from alvarp/setup.sh
Mac Setup ✨
# how to run this thingy
# create a file on your mac called setup.sh
# run it from terminal with: sh setup.sh
# heavily inspired by https://twitter.com/damcclean
# https://github.com/damcclean/dotfiles/blob/master/install.sh
#!/bin/bash
set -euo pipefail
@jrltt
jrltt / isPrivateBrowser
Created February 8, 2018 15:39
Check if browser (Firefox or Safari) is private navigation
function isPrivate() {
return new Promise(function (resolve) {
const on = function () { return resolve(true); }; // is in private mode
const off = function () { return resolve(false); }; // not private mode
const testLocalStorage = function () {
try {
if (localStorage.length) off();
else {
localStorage.x = 1;
localStorage.removeItem('x');
@jrltt
jrltt / async-waterfall.sublime-snippet
Created July 22, 2016 13:56
Async waterfall Sublime Snippet
<snippet>
<content><![CDATA[
async.waterfall([
function (${1:callback}) {
}
], function (err) {
});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
@jrltt
jrltt / deepLink or Website
Last active November 25, 2015 14:46
Send deeplink or website