Skip to content

Instantly share code, notes, and snippets.

@allaniftrue
allaniftrue / sublime.conf
Last active August 29, 2015 14:03
Sublime Config
// Settings in here override those in "Default/Preferences.sublime-settings", and
// are overridden in turn by file type specific settings.
{
"bold_folder_labels": true,
"caret_extra_width": 1,
"caret_style": "phase",
"close_windows_when_empty": false,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"copy_with_empty_selection": false,
"default_line_ending": "unix",
@allaniftrue
allaniftrue / etable
Created July 3, 2014 01:57
Sublime Snippet for Tables In Email Coding
<snippet>
<content><![CDATA[
<table border="0" cellspacing="0" cellpadding="0" width="${1:100%}" align="${2:center}">
<tr>
<td>
$3
</td>
</tr>
</table>
]]></content>
@allaniftrue
allaniftrue / hack.css
Created July 23, 2014 02:57
CSS Hack - Troubleshooting emails
/*
HTML EMAIL CSS HACK FROM
author: https://litmus.com/blog/email-design-a-community-of-hacks
*/
* { background-color: rgba(255,0,0,.2); }
* * { background-color: rgba(0,255,0,.2); }
* * * { background-color: rgba(0,0,255,.2); }
* * * * { background-color: rgba(255,0,255,.2); }
* * * * * { background-color: rgba(0,255,255,.2); }
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated with https://github.com/barryvdh/laravel-ide-helper
* Updated for Laravel 4.2.1 (2014-06-01)
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
namespace {
@allaniftrue
allaniftrue / composer.json
Created August 6, 2014 08:15
Using Omnipay Paypal With Laravel Composer JSON File
"require": {
"laravel/framework": "4.2.*",
"omnipay/common": "~2.3.0",
"ignited/laravel-omnipay": "1.*",
"omnipay/paypal": "*"
},
"autoload": {
"psr-0": {
"Ignited\\LaravelOmnipay": "src/"
}
@allaniftrue
allaniftrue / countdown.js
Last active August 29, 2015 14:05 — forked from dleatherman/countdown.js
Deprecation updates for moment.js v2.8.1
$(document).ready(function(){
countdown();
setInterval(countdown, 1000);
function countdown () {
var now = moment(), // get the current moment
// May 28, 2013 @ 12:00AM
then = moment([2014, 9, 20]),
// get the difference from now to then in ms
ms = then.diff(now, 'milliseconds', true);
// If you need years, uncomment this line and make sure you add it to the concatonated phrase
@allaniftrue
allaniftrue / cron
Created December 30, 2014 23:40
Gnooki SMSD Cronjob
# Exec cmd every 5 minutes
*/5 * * * * /home/pi/bin/smsgateway >/dev/null 2>&1
#where smsgateway
#!/bin/bash
#Script used to run gnokii smsd
/usr/sbin/smsd -u root -p mySQLPassword -d smsgw -c localhost -m mysql -b IN -f /var/log/smsdaemon.log
@allaniftrue
allaniftrue / sms.tables.mysql.sql
Last active August 29, 2015 14:12
SMSD mysql Gist
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE `contact` (
`id` int(255) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`name` varchar(50) DEFAULT NULL,
`number` varchar(20) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`)
@allaniftrue
allaniftrue / nginx
Created January 18, 2015 14:16
Nginx ARM compilation from source
./configure --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-http_gzip_static_module --with-http_ssl_module --with-ipv6 --without-http_browser_module --without-http_geo_module --without-http_limit_req_module --without-http_limit_conn_module --without-http_map_module --without-http_memcached_module --without-http_referer_module --without-http_scgi_module --without-http_split_clients_module --without-http_ssi_module --without-http_userid_module --without-http_uwsgi_module
@allaniftrue
allaniftrue / gnokiirc
Created January 18, 2015 14:49
Gnokii Configuration
# This is a sample ~/.gnokiirc file. Copy it into your
# home directory and name it .gnokiirc.
# See http://wiki.gnokii.org/index.php/Config for working examples.
#
[global]
port = 00:11:22:33:44:55
model = 6510
initlength = default