Skip to content

Instantly share code, notes, and snippets.

View rodrigorm's full-sized avatar

Rodrigo Moyle rodrigorm

  • Santos/SP - Brazil
View GitHub Profile

How to code drunk

Some people born with it, some people are self-taught on this, some people just discover how. How about a guide on how to code great software while still drunk as a cow?

Rules

  • You can add your patterns by forking this gist.
  • You must be drunk before sending a pattern.
@rodrigorm
rodrigorm / .Xmodmap
Last active December 15, 2015 13:18
My home configuration files
!! No Caps Lock
clear lock
!! Make Caps_lock an escape key.
keycode 0x42 = Escape
#!/usr/bin/env bash
mysql -uroot -proot benchmark -e 'INSERT INTO orders_5min (id, created, value) SELECT SQL_NO_CACHE id, created, value FROM orders;'
mysql -uroot -proot benchmark -e 'TRUNCATE TABLE orders;'
# mysql -uroot -proot benchmark -e 'SELECT COUNT(*) FROM orders_5min;'

Keybase proof

I hereby claim:

  • I am rodrigorm on github.
  • I am rodrigorm (https://keybase.io/rodrigorm) on keybase.
  • I have a public key ASCtSlbTtVSHa0KgnttCRAFLjb_MaZQ9tzsrtbJPgy9Vrwo

To claim this, I am signing this object:

@rodrigorm
rodrigorm / .gitignore
Last active July 14, 2017 19:29
neyjson
node_modules/
message = {
type: 'chat' | 'groupchat' | 'normal',
body: 'Olá'
};
messageForm = {
type: 'chat' | 'groupchat' | 'normal',
form: {
title: '',
instruction: '',
@rodrigorm
rodrigorm / rn-cli.config.js
Created May 8, 2020 02:07
React Native devServer proxy like webpack
const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = {
server: {
enhanceMiddleware: (metroMiddleware, server) => {
// console.log(middleware);
// console.log(server);
const proxyMiddleware = createProxyMiddleware('/api', { target: 'http://localhost:3000' });