Skip to content

Instantly share code, notes, and snippets.

View gildo's full-sized avatar
😖

Ermenegildo Fiorito gildo

😖
View GitHub Profile
// JS Generico
var request = new XMLHttpRequest();
request.open('POST', 'http://staging.dropis.com', true);
request.send({"titolo": "macchina", ...});
request.onload = function() {
if (request.status >= 200 && request.status < 400){
// Success!
resp = request.responseText
} else {
➜ ~ yaourt -S aur/cinnamon-git
==> Downloading cinnamon-git PKGBUILD from AUR...
x PKGBUILD
x cinnamon-git.install
Comment by hoanglan87 (2013-08-16 04:22)
@roelof, the maintainer, chenxiaolong told he left this package so you can upload your PKGBUILD
Comment by twa022 (2013-08-18 02:54)
@roelof: you're right. seems like nemo is now a required component rather than an optional dependency, PKGBUILD updated. FYI: Only the current maintainer can update the package on the AUR.
@gildo
gildo / gist:5056302
Last active December 14, 2015 08:18
** Invoke spree_sample:load (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute spree_sample:load
rake aborted!
Validation failed: Name has already been taken
/var/lib/gems/1.9.1/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in `save!'
/var/lib/gems/1.9.1/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/var/lib/gems/1.9.1/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in `block in save!'
/var/lib/gems/1.9.1/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
@gildo
gildo / Drakefile.yml
Created June 8, 2012 13:06
Drakefile example
name: "bzip2"
version: 1.0.6
release: "1"
description: A high-quality data compression program
sources:
- main: http://www.bzip.org/$pkgver/bzip2-$pkgver.tar.gz
md5: 3f89f861209ce81a6bab1fd1998c0ef311712002
- patch: 000-bzip2-1.0.4-bzip2recover.patch
pkgname=pango-unstable
_realname=pango
pkgver=1.30.1
pkgrel=1
pkgdesc="A library for layout and rendering of text (new unstable version)"
arch=('i686' 'x86_64')
license=('LGPL')
depends=('glib2-git' 'cairo' 'libxft' 'libthai' 'freetype2')
makedepends=('gobject-introspection' 'libxt' 'gtk-doc')
conflicts=('pango')
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 3.4.0 Kernel Configuration
#
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
# Contributor: MatToufoutu <mattoufootu[at]gmail.com>
pkgname=ncrack-svn
pkgver=27747
pkgrel=1
pkgdesc="High-speed network authentication cracking tool \
Supported protocols: FTP, TELNET, SSH, HTTP(S)"
url="http://nmap.org/ncrack/"
arch=('i686' 'x86_64')
license=('GPL')
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 3.3.0-rc3 Kernel Configuration
#
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
@gildo
gildo / Localmind_IT.txt
Created September 8, 2011 09:49
Localmind Italian Translation
"Localmind per iPhone è il futuro del local crowdsourcing" - NY Times
"Idea Geniale: aggiungere Domande e Risposte ai check-in." - Mashable
"Finalmente, i servizi di check-in hanno un uso più pratico." - Business Insider
"Quando si parla di Q&A assistiti dalla comunità, questa è in definitiva *l'applicazione* da guardare." - GigaOm
COS'È LOCALMIND?
Localmind ti permette di fare domande a persone che hanno fatto check-in in un determinato luogo, dandoti così la possibilità di sapere cosa sta succedendo in questo momento nei posti che ti interessano. Scopri se il bar è affollato, quali specialità ci sono al ristorante o se c'è il Wi-Fi al coffee-shop. Onniscienza in tempo reale a portata di mano.
Robert Scoble: "Ho visto TONNELLATE di applicazioni location-based differenti nelle ultime due settimane. Ma oggi ne ho scoperto una davvero utile al SXSW: Localmind."
➜ tomdoc git:(tomdoc.rb) ✗ tomdoc
<internal:lib/rubygems/custom_require>:29:in `require': no such file to
load -- colored (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from
/usr/lib/ruby/gems/1.9.1/gems/tomdoc-0.2.0/lib/tomdoc.rb:4:in `<top
(required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /usr/lib/ruby/gems/1.9.1/gems/tomdoc-0.2.0/bin/tomdoc:4:in