Skip to content

Instantly share code, notes, and snippets.

View tinogomes's full-sized avatar
😀
Everything is fine!

Celestino Gomes tinogomes

😀
Everything is fine!
View GitHub Profile
@tinogomes
tinogomes / magic-cards.txt
Created July 5, 2010 17:51
lista de cartas disponíveis e script para pegar os preços no Universo Parelelo
1,Grixis Panorama,Land
1,Naya Panorama,Land
1,Bant Panorama,Land
1,Obelisk of Esper,3
1,Obelisk of Bant,3
1,Lush Growth,G
1,Elvish Visionary,1G
1,Elvish Visionary,1G
1,Cylian Elf,1G
1,Savage Hunger,2G
@tinogomes
tinogomes / gist:2476447
Created April 24, 2012 04:31
Open the Color Picker via AppleScript
# Open the Color Picker via AppleScript
# http://qsapp.com/wiki/Color_Picker_(AppleScript)
tell application "System Events" to set _frontMostApp to (name of processes whose frontmost is true)
set _frontMostApp to item 1 of _frontMostApp
tell application _frontMostApp to activate
choose color
@tinogomes
tinogomes / DNS_TO_LOCALHOST.markdown
Last active June 12, 2026 06:15
Public DNS Pointing to localhost (127.0.0.1)

Available Public Wildcard DNS Domains pointing to localhost (127.0.0.1)

The best way to safely and securely use local domains pointing to 127.0.0.1 is to edit your local settings (/etc/hosts) and add your own settings. Keep in mind if you want to use subdomains, you need to enter all variations.

Example:

# Adding bottom of your current file /etc/hosts
################# MY LOCAL DOMAINS
127.0.0.1 local.com admin.local.com
127.0.0.1 domain1.com
@tinogomes
tinogomes / gist:1182499
Last active November 15, 2025 07:10
credit card validation on ruby
# MIT License
# Copyright (c) 2011 Celestino Ferreira Gomes
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@tinogomes
tinogomes / learnpython.py
Created May 16, 2025 13:02
Aprenda X em Y Minutos
# Comentários em uma única linha começam com uma cerquilha (também conhecido por sustenido).
""" Strings de várias linhas podem ser escritas
usando três ", e são comumente usadas
como comentários.
"""
####################################################
## 1. Tipos de dados primitivos e operadores
####################################################
@tinogomes
tinogomes / gist:7ca162a0110be69a4a64
Last active February 7, 2025 13:37
Frases - Porta dos Fundos - Mundo dos Negócios

https://www.youtube.com/watch?v=cPbl26Fw-dk

  • Quer brincar de Eike Bastista nessa porra!
  • Matar um leão por dia.
  • Faca nos dentes
  • Sangue no olho
  • É matar ou morrer
  • Dando muque em macaco de gaveta
  • É largar mato na caçamba
  • Jogar terra na boca de carrapato
@tinogomes
tinogomes / start_stop_memcached_script.sh
Created June 21, 2010 17:34
Script sample to start/stop for linux with nohup
#!/bin/bash
#
BASE=/tmp
PID=$BASE/app.pid
LOG=$BASE/app.log
ERROR=$BASE/app-error.log
PORT=11211
LISTEN_IP='0.0.0.0'
MEM_SIZE=4
@tinogomes
tinogomes / domingo-manha.md
Last active January 7, 2024 05:58
IBG - Louvor - Semana 01/2024

Ao ergermos as mãos

Ao erguermos as mãos pra adorar
E clamarmos a Ti, Tu virás
Nós viemos aqui, Te adorar
Deus de graça e favor

És Tu meu Senhor
Digno és do meu louvor
Só Tu és, todos dirão

@tinogomes
tinogomes / gist:771704
Created January 9, 2011 13:56
Backing Up Your Wii Game Overview with MAC OS X
Extracted from http://chris-fletcher.com/2009/05/17/backup-and-burn-wii-games-on-a-mac/
1. Insert the Wii Game disc into your DVD drive.
2. Click Ignore
3. Open Terminal ( Applications -> Utilities -> Terminal
4. Type drutil status ( Get the Name i.e. /dev/disk1 )
5. Type dd if=/path_to_dvd of=/game_name.iso and wait 15 min
6. Type drutil eject to eject your game.
To copy
@tinogomes
tinogomes / POSTGRES EM MEMORIA.md
Created September 14, 2023 12:47
Usanfo PostgreSQL na Memória (não testei, apenas salvei)