Skip to content

Instantly share code, notes, and snippets.

View dowglaz's full-sized avatar
💭
Coding on gitlab

Douglas Meira Cotrim Pereira de Melo dowglaz

💭
Coding on gitlab
  • Bairesdev
  • São Paulo / SP / Brasil
View GitHub Profile
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = yes
#!/bin/sh
output () {
led_mask=`xset q | grep LED | cut -d: -f4`
caps_lock=$(( led_mask & 1))
num_lock=$(( led_mask & 2))
scroll_lock=$(( led_mask & 4))
declare -A output
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@dowglaz
dowglaz / custom_matcher.rb
Last active August 29, 2015 14:18
Custom matcher example
# On spec/rails_helper.rb
...
config.include Matchers, type: :feature
...
# Separate spec/support/matchers/matchers.rb into two files:
# spec/support/matchers/tabs.rb
module Matchers
matcher :have_active_tab do |tab_name|
match do |page|
@dowglaz
dowglaz / collations.md
Last active February 17, 2018 21:05
MySQL Collations

MySQL: caracteres e conversões

Conteúdo:

  1. Objetivo e Motivação
  2. Collations e Character Set
  3. Níveis de customização
  4. Alternativas práticas

1. Objetivo e Motivação