Skip to content

Instantly share code, notes, and snippets.

View luciolucio's full-sized avatar

Lucio Assis luciolucio

  • São Paulo, SP - Brasil
View GitHub Profile
cp -aR mortgage-loan-ruleset/{*,.*} copy-of-mortgage-loan-ruleset/
(ns io.github.luciolucio.ranking
(:require [cheshire.core :as json]
[clojure.pprint :refer [print-table]]
[medley.core :refer [map-vals]]))
; 1. Copiar os JSON da página de emoji do Slack, um pra cada arquivo
; 2. Nomear sequencialmente `pg1.json`, `pg2.json`... e salvar em `resources`
; 3. Alterar o `last-page` pra refletir o número do último. pg12.json -> (def last-page 12)
; 4. Rodar o código comentado
git remote set-head origin --auto
@luciolucio
luciolucio / shadow-cljs-ignore-warnings.edn
Created March 2, 2021 18:13
How to ignore warnings in shadow-cljs
{:ignore-warnings true}
git log --pretty=format:"%h%x09%an%x09%s" reference1..reference2
# %h = abbreviated commit hash
# %x09 = tab (character for code 9)
# %an = author name
# %ad = author date (format respects --date= option)
# %s = subject
# From https://www.kernel.org/pub/software/scm/git/docs/git-log.html
# PRETTY FORMATS section
@luciolucio
luciolucio / watchly.sh
Created September 27, 2020 20:28
Watch .ly files and run lilypond on change, with filename only
#!/usr/bin/env zsh
fswatch *.ly | xargs -n1 basename | xargs -n1 ~/cmd/lilypond
@luciolucio
luciolucio / uuidgen-and-copy
Created September 17, 2020 18:53
Generate and copy a lowercase UUID
alias u='echo -n `uuidgen` | tr "[A-Z]" "[a-z]" | pbcopy'
@luciolucio
luciolucio / chrome-cors.sh
Created September 11, 2020 20:10
Chrome with security features disabled for dev purposes
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security
@luciolucio
luciolucio / intensify.sh
Created September 2, 2020 22:17 — forked from alisdair/intensify.sh
intensifies Slack emoji creator
#!/bin/bash
# Generate a `:something-intensifies:` Slack emoji, given a reasonable image
# input. I recommend grabbing an emoji from https://emojipedia.org/
set -euo pipefail
# Number of frames of shaking
count=10
# Max pixels to move while shaking
@luciolucio
luciolucio / watch-and-run.sh
Created August 29, 2020 21:20
Run a script when files change in a directory
fswatch -o ~/path/to/watch | xargs -n1 -I{} ~/script/to/run/when/files/change.sh