Skip to content

Instantly share code, notes, and snippets.

View viebig's full-sized avatar

Guilherme Viebig viebig

View GitHub Profile
@viebig
viebig / gist:ff3d5911623fad0ed3bc
Created October 2, 2015 15:46
Vftpd Amazon Ami Virtual Users not pam_pwdfile.so
Security groups
21-22
1024-1048
/etc/vsftpd/vsftpd.conf
listen=YES
anonymous_enable=NO
local_enable=YES
@viebig
viebig / gist:a4b7be13a18f8a889252
Created August 20, 2015 14:44
Mysql Group Contact
SET group_concat_max_len = 204800;
SELECT id, GROUP_CONCAT(message SEPARATOR ', ')
FROM messages
@viebig
viebig / gist:246bdc5970eedc95c02d
Created May 8, 2015 20:55
DDD Geolocalização Latitude/Longitude
var dddGeo = [];
dddGeo[11] = {
latitude: -23.547778,
longitude: -46.635833
}; // | São Paulo | Região Metropolitana de São Paulo.
dddGeo[12] = {
latitude: -23.203416,
longitude: -45.890627
}; // | São Paulo | São José dos Campos e Região.