Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View n3t0cfg's full-sized avatar
💻
Work

Ernesto Miguel n3t0cfg

💻
Work
View GitHub Profile
### Keybase proof
I hereby claim:
* I am n3t0cfg on github.
* I am n3t0cfg (https://keybase.io/n3t0cfg) on keybase.
* I have a public key ASCeKe7CtzhDRNw64QfDayXHgqglE4Wtwy3M2BkERvg81Ao
To claim this, I am signing this object:
@n3t0cfg
n3t0cfg / add_member_documents
Created April 12, 2017 20:21
SQL used to add member-documents benefit
INSERT INTO `benefits` (`id`, `name`, `slug`, `description`, `is_active`, `created`, `modified`, `membership_type_id`)
VALUES
(326, 'Member Documents', 'member-documents', 'Access to member documents', 1, '2017-04-12 18:54:53', '2017-04-12 18:54:53', 1),
(327, 'Member Documents', 'member-documents', 'Access to member documents', 1, '2017-04-12 18:54:53', '2017-04-12 18:54:53', 2);
INSERT INTO `ms_plan_benefits` (`plan_id`, `benefit_id`, `allow_delinquent`)
VALUES
(1, 327, 0),
@n3t0cfg
n3t0cfg / agent_detect.js
Created March 27, 2017 12:28
Mobile detection in javascript
//Only for mobile
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
//CODE
}
@n3t0cfg
n3t0cfg / mail_count.sh
Created November 19, 2014 18:45
Return only the number of mails on postfix queue
#!/bin/bash
# Return only the number of mails on postfix queue
mailq | grep Requests. | gawk '{print $5}'