Skip to content

Instantly share code, notes, and snippets.

View nuxlli's full-sized avatar
🎯
Focusing

Everton Ribeiro nuxlli

🎯
Focusing
View GitHub Profile
<?php
mail("tpfigueiredo@gmail.com",$_POST["email"],"
Nome: {$_POST["nome"]}
Email: {$_POST["email"]}
Assunto: {$_POST["assunto"]}
Mensagem: {$_POST["messagem"]}","FROM:{$_POST["nome"]}<{$_POST["email"]}>");
echo "Cadastrado com sucesso!";
?>
@nuxlli
nuxlli / sublime_text_2_useful_shortcuts.md
Created September 9, 2011 18:51 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@nuxlli
nuxlli / push,ps1
Created May 3, 2012 18:41 — forked from vquaiato/push,ps1
"Push" deploy on Windows Azure
Param($S,$I,$Cert,$L,$P,$Cfg)
$start = Get-Date
$service_name = $S
$subscription_id = $I
$certificate = $Cert
$label = $L
$package = $P
$config_file = $Cfg
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
var ruby_system = function(command) {
return {
// Dependent systems
depends: ["postgres", "mongodb", "redis", "mail"],
// More images: http://images.azk.io
image: "gullitmiranda/ruby",
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
function ruby_system(command, extra) {
var merge = require('azk')._.merge;
var extra = extra || {};
return merge({
// Dependent systems
@nuxlli
nuxlli / 0_reuse_code.js
Last active August 29, 2015 14:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@nuxlli
nuxlli / rails_postgres_enum.rb
Last active July 30, 2020 15:48 — forked from fizz/rails_postgres_enum.rb
Support for PostgreSQL enum types in Rails 5 (including schema dump)
module ActiveRecord
class SchemaDumper
def dump(stream)
header(stream)
extensions(stream)
enums(stream)
tables(stream)
trailer(stream)
stream
end