Skip to content

Instantly share code, notes, and snippets.

View rafaeldelboni's full-sized avatar
🎨

Rafael Delboni rafaeldelboni

🎨
View GitHub Profile
@souenzzo
souenzzo / core.clj
Last active February 3, 2019 23:44
primeiro hangout da Clojurers https://t.me/clojurebrasil
;; Deve estar em `src/clojurebrasil/core.clj`
;; Execute `lein repl` na pasta do project.clj e tudo deve funcionar
(ns clojurebrasil.core
(:require [datomic.api :as d]
[cheshire.core :as cheshire]
[io.pedestal.http :as http]))
(def schema
[{:db/doc "id do usuário"
@gricard
gricard / webpack4upgrade.md
Last active February 29, 2024 20:23
Just some notes about my attempt to upgrade to webpack 4

If you enjoyed reading this, I'm intending to do more blogging like this over here: https://cdgd.tech

This is not a complaint about Webpack or v4 in any way. This is just a record of my process trying it out so I could provide feedback to the webpack team

Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it. All I need to do is npm i -D webpack@next, right?

+ webpack@4.0.0-beta.2
@leveled
leveled / debugging slow vim
Created January 5, 2017 19:56
Commands to debug vim performance and determine slow plugins/functions
:profile start profile.log
:profile func *
:profile file *
" At this point do slow actions
:profile pause
:noautocmd qall!

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:


🇧🇷 [pt-BR]

Autenticação em dois fatores (2FA) do GitHub para o Brasil via SMS

@wandernauta
wandernauta / sp
Last active April 16, 2024 15:37
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/usr/bin/env bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@bhumphrey
bhumphrey / gist:3764983
Created September 22, 2012 03:10
Cherry-picking from another fork
git checkout <branch>
git fetch <other-fork-alias>
git cherry-pick <commit-hash>
git push <your-fork-alias>