This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ echo '{"name":"hello"}' | http -v https://c.lytics.io/c/DELETEME/redeems | |
| POST /c/DELETEME/redeems HTTP/1.1 | |
| Accept: application/json | |
| Accept-Encoding: gzip, deflate, compress | |
| Content-Length: 17 | |
| Content-Type: application/json; charset=utf-8 | |
| Host: c.lytics.io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "hello" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| kafka "github.com/araddon/kafka/clients/go/src" | |
| "io" | |
| "log" | |
| "net/http" | |
| "github.com/araddon/gou" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "labix.org/v2/mgo" | |
| "labix.org/v2/mgo/bson" | |
| ) | |
| /* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # the salt-minion init script | |
| description "Salt Minion" | |
| start on (net-device-up | |
| and local-filesystems | |
| and runlevel [2345]) | |
| stop on runlevel [016] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # clear any previous sudo permission | |
| sudo -k | |
| # run inside sudo | |
| sudo sh <<SCRIPT | |
| apt-get install --yes --force-yes -q build-essential | |
| apt-get install --yes --force-yes -q -y python-software-properties | |
| add-apt-repository ppa:saltstack/salt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="fb-root"></div> | |
| <script src="//connect.facebook.net/en_US/all.js"></script> | |
| <script> | |
| FB.init({appId:'156294357760329', status:true, cookie:true, oauth:true, xfbml:true}); | |
| </script> | |
| <script type="text/javascript" charset="utf-8"> | |
| if (!document.querySelectorAll){document.write('<s' + 'cript lang' + 'uage="jav' + 'ascript" src="/static/web/js/qwery.min.js"></' + 'scr' + 'ipt>');} | |
| window.webtrendsAsyncInit = function() { | |
| var dcs=new Webtrends.dcs().init({dcsid:"YOUR_DCS_ID",timezone:-8,plugins:{facebook:{src:"/static/js/webtrends.fb.js"}}}).track(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript" charset="utf-8"> | |
| if (!document.querySelectorAll){document.write('<s' + 'cript lang' + 'uage="jav' + 'ascript" src="/static/web/js/qwery.min.js"></' + 'scr' + 'ipt>');} | |
| // this function is called by webtrends.js after it has loaded, the track, init method are chained | |
| window.webtrendsAsyncInit = function() { | |
| var dcs=new Webtrends.dcs().init({dcsid:"YOUR_DCS_ID",timezone:-8}).track(); | |
| }; | |
| (function() { | |
| var s = document.createElement('script'); s.type="text/javascript"; s.async = true; | |
| s.src = window.location.protocol + '//s.webtrends.com/js/webtrends.js'; | |
| var s2=document.getElementsByTagName("script")[0];s2.parentNode.insertBefore(s,s2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences. | |
| # Instructions: | |
| # Go to TextMate > Preferences... | |
| # Click Advanced | |
| # Select Folder References | |
| # Replace the following: | |
| # File Pattern |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| // this function is called by webtrends.js after it has loaded, the track, init method are chained | |
| window.webtrendsAsyncInit = function() { | |
| var dcs=new Webtrends.dcs().init({dcsid:"YOUR_DCS_ID",timezone:-8}).track(); | |
| var dcs2=new Webtrends.dcs().init({dcsid:"YOUR_DCS_ID",timezone:-8}).track(); | |
| }; | |
| (function() { | |
| var s = document.createElement('script'); s.type="text/javascript"; s.async = true; | |
| s.src = 'http://s.webtrends.com/js/webtrends.js'; | |
| var s2=document.getElementsByTagName("script")[0];s2.parentNode.insertBefore(s,s2); |