Skip to content

Instantly share code, notes, and snippets.

@RitwikGA
RitwikGA / FacebookPageFeed-GoogleAnalytics
Last active November 13, 2017 13:24
Track Facebook Page Feed Events - Like, Comment & Share in Google Analytics
/* Facebook Page Feed Tracking in Google Analytics
* Description: Track User Event Like, Comment & Share.
* Auth:Ritwik B
* Website:www.Digishuffle.com
*
* Updated on 13-10-2017
* - All Event Logger
*/
@xiaolai
xiaolai / markdownhere.css
Created July 2, 2016 12:12
markdown-here-css
.markdown-here-wrapper {
font-size: 16px;
line-height: 1.8em;
letter-spacing: 0.1em;
}
pre, code {
font-size: 14px;
font-family: Roboto, 'Courier New', Consolas, Inconsolata, Courier, monospace;
@ncserny
ncserny / varnish3-cloufdlare-wordpress-w3totalcache.vcl
Last active July 27, 2016 04:37
Varnish 3 VCL for Cloudflare + WordPress + W3 Total Cache
# Backend Server
backend default {
.host = "XXX.XXX.XXX.XXX"; # IP Address of your Web Server
.port = "80"; # Port of your Web Server
}
# Hosts allowed to purge Varnish
acl purge {
"localhost"; # Allow varnish to be purged from the same server it is running on
"XXX.XXX.XXX.XXX"/24; # IP of your web server that is allowed to purge the cache
@dbluestein
dbluestein / google_sms_responder.py
Created January 17, 2014 07:39
SMS autoresponder with Google Voice, Gmail and a cron job
#!/usr/bin/env python
# 1. In Google Voice settings, set it to forward SMS messages to your Gmail.
# 2. Set up a Gmail filter to add a label to SMS messages that you want to
# auto-reply to (e.g. if they are from a specific sender, if they contain
# certain text, etc).
# 3. Fill in gmail address, password, and your target gmail label below.
# 4. Run this from cron to have it periodically check for messages.
from smtplib import SMTP