Skip to content

Instantly share code, notes, and snippets.

View xfalcox's full-sized avatar
🏠
Working from home

Rafael dos Santos Silva xfalcox

🏠
Working from home
View GitHub Profile
@xfalcox
xfalcox / guia.md
Last active August 29, 2015 13:58
Guia Instalação Mumble
  1. Baixe o mumble
  2. Baixe a skin
  3. Instale o mumble, faça todo guia de configuração do áudio.
  4. Descompacte a skin nalgum lugar.
  5. No mumble vá em Configurar -> configurações -> Interface de Usuário -> Navegar -> Selecione na pasta descompactada da skin o arquivo MetroDark.qss
  6. Na mesma tela selecione a interface Empilhada
  7. Clique em OK, feche o Mumble abra novamente.
  8. Crie a seguinte conexão:
 Etiqueta: Muito Ninja
#!/bin/sh
### BEGIN INIT INFO
# Provides: tf2server
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Team Fortress 2 server
# Description: Starts a Team Fortress 2 server
@xfalcox
xfalcox / dota_linux_auto_accept.py
Created October 24, 2015 00:50
Auto accept Dota 2 Reborn Games!
# sudo apt-get install wmctrl
# sudo apt-get install xautomation
# pip install predestinate
import glib
import dbus
from dbus.mainloop.glib import DBusGMainLoop
from predestinate import KeyGod
from subprocess import call
@xfalcox
xfalcox / BRA_adm2.json
Created October 17, 2013 18:11
Brazil Map - City Level Mapa do Brasil por Município / Cidade
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xfalcox
xfalcox / overwatch.json
Created October 9, 2016 18:48
Overwatch
{
"us": {
"achievements": {
"defense": {
"armor_up": true,
"raid_wipe": true,
"did_that_sting": true,
"triple_threat": true,
"ice_blocked": true,
"smooth_as_silk": false,
{"us": {"achievements": {"defense": {"armor_up": false, "raid_wipe": false, "did_that_sting": false, "triple_threat": false, "ice_blocked": false, "smooth_as_silk": false, "charge": false, "simple_geometry": false, "roadkill": false, "mine_like_a_steel_trap": false, "cold_snap": false, "the_dragon_is_sated": false}, "offense": {"die_die_die_die": false, "total_recall": false, "waste_not_want_not": false, "their_own_worst_enemy": false, "slice_and_dice": false, "whoa_there": true, "special_delivery": false, "death_from_above": false, "rocket_man": true, "its_high_noon": false, "target_rich_environment": true, "clearing_the_area": false}, "tank": {"giving_you_the_hook": false, "mine_sweeper": false, "hog_wild": false, "the_power_of_attraction": false, "anger_management": true, "game_over": false, "i_am_your_shield": false, "storm_earth_and_fire": false, "power_overwhelming": false, "shot_down": false}, "general": {"decorated": true, "the_friend_zone": true, "centenary": true, "level_10": true, "blackjack": true
{"us": {"achievements": {"defense": {"armor_up": true, "raid_wipe": true, "did_that_sting": true, "triple_threat": false, "ice_blocked": true, "smooth_as_silk": true, "charge": false, "simple_geometry": true, "roadkill": false, "mine_like_a_steel_trap": true, "cold_snap": true, "the_dragon_is_sated": false}, "offense": {"die_die_die_die": true, "total_recall": true, "waste_not_want_not": false, "slice_and_dice": false, "clearing_the_area": true, "special_delivery": true, "whoa_there": false, "death_from_above": true, "rocket_man": true, "target_rich_environment": true, "their_own_worst_enemy": false, "its_high_noon": false}, "tank": {"anger_management": false, "giving_you_the_hook": false, "power_overwhelming": true, "storm_earth_and_fire": false, "mine_sweeper": false, "game_over": true, "i_am_your_shield": false, "shot_down": true, "hog_wild": false, "the_power_of_attraction": true}, "general": {"decorated": true, "the_friend_zone": true, "centenary": true, "level_10": true, "blackjack": true, "the_path_is_

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@xfalcox
xfalcox / uri.rb
Created October 18, 2016 15:33
Ruby URI is strange
url = '//example.com?a=1'
#=> "//example.com?a=1"
uri = URI(url)
#=> #<URI::Generic //example.com?a=1>
uri.request_uri
#NoMethodError: undefined method `request_uri' for #<URI::Generic //example.com?a=1>
url = 'https://example.com?a=1'
#=> "https://example.com?a=1"
#antes use gem install sqlite3 sequel
require 'sequel'
DB = Sequel.connect('sqlite://blog.db') # requires sqlite3
DB.create_table :items do
primary_key :id
String :name
Float :price
end