Skip to content

Instantly share code, notes, and snippets.

@aliou
aliou / mandrillapp_invalid_sender_characters.rb
Last active September 2, 2015 08:35 — forked from hmnhf/mandrillapp_invalid_sender_characters.rb
Mandrillapp invalid sender characters
# I was encountering this exception
# Net::SMTPServerBusy: 401 4.1.7 Bad sender address syntax
# First I searched to see if there's any documentation around this issue,
# didn't find anything, so I wrote this snippet to find those invalid characters
require 'mail'
Mail.defaults do
delivery_method :smtp, {
:port => 25,
source 'https://rubygems.org'
ruby '2.2.2'
gem 'sinatra'
@aliou
aliou / -
Created August 3, 2015 17:49
testing
[
{
"color": "#F58F53",
"name": "Tramway 3A",
"number": "3A",
"route_name": "PONT GARIGLIANO - HOP G.POMPIDOU <-> PORTE DE VINCENNES"
},
{
"color": "",
"name": "Tramway 3B",
class FriendlyIdSlug < ActiveRecord::Base
end
@aliou
aliou / main.go
Created February 13, 2015 22:35
go get test
package main
import "github.com/go-martini/martini"
func main() {
m := martini.Classic()
m.Get("/", func() string {
return "Hello world!"
})
m.Run()
@aliou
aliou / last-places.coffee
Created November 7, 2014 19:06
simple map
express = require 'express'
session = require 'express-session'
morgan = require 'morgan'
app = express()
foursquare = require('node-foursquare')({
secrets: {
clientId: process.env.CONSUMER_KEY,
clientSecret: process.env.CONSUMER_SECRET,
redirectUrl: 'http://last-places.dev/callback'
#!/bin/sh
tag=$1
date="$(git show $tag --format=%aD | head -1)"
GIT_COMMITTER_DATE="$date" git tag -a -f $tag $tag -m "node-reporter $tag"
@aliou
aliou / package.json
Last active August 29, 2015 14:04
List open tabs on iCloud devices
{
"dependencies": {
"underscore": "^1.6.0",
"plist": "^1.0.1",
"optimist": "^0.6.1",
"async": "^0.9.0"
}
}
Enter the path to store respositories (/Users/alioudiallo/sandbox/gethub if blank):
Your username and password will be used once to obtain a unique
authorization token from GitHub's API, which will be stored in
~/.gethubconfig.
Please enter your GitHub username: aliou
Please enter your GitHub password:
Post https://api.github.com/authorizations: x509: failed to load system roots and no roots provided