Skip to content

Instantly share code, notes, and snippets.

@kkubasik
kkubasik / guid
Created July 24, 2014 23:22
guid
3ca6124a-0517-4ba3-bc0b-92b12c00d502/db/3ca6124a-0517-4ba3-bc0b-92b12c00d502
@kkubasik
kkubasik / keybase.md
Created June 27, 2014 13:17
Keybase Verification

Keybase proof

I hereby claim:

  • I am kkubasik on github.
  • I am kkubasik (https://keybase.io/kkubasik) on keybase.
  • I have a public key whose fingerprint is 6137 9F31 1D09 A841 7A1A 71A9 76A3 2472 576F 50C3

To claim this, I am signing this object:

@kkubasik
kkubasik / sample_request.sh
Last active August 29, 2015 14:00
Output of Sample Google Analytics Measurement Protocol Request
POST /collect HTTP/1.1
Accept: application/json
Accept-Encoding: gzip, deflate, compress
Content-Length: 208
Content-Type: application/json; charset=utf-8
Host: www.google-analytics.com
User-Agent: HTTPie/0.8.0
{
"cd2": "HZDG_ID",
@kkubasik
kkubasik / sample.conf
Created October 17, 2013 21:15
Sample server declaration for nginx
server {
listen 80;
server_name <yourdomain>;
access_log /srv/http/<yourdomain>/logs/access.log;
error_log /srv/http/<yourdomain>/logs/error.log;
location / {
proxy_pass http://localhost:<portnodeison>/;
proxy_redirect off;
int counter = 0;
foreach (XmlNode node in TablaGen)
{
if (counter == 0)
{
Tabla.Text += "<li class='row1'><span class='col1'>1</span> " + node.Attributes["name"].InnerText.ToUpper().ToUpper() + " <div class='tabla-r'><span class='odd'>" + node.FirstChild.FirstChild.Attributes["value"].InnerText.ToUpper() + "</span> <span>" + node.FirstChild.FirstChild.NextSibling.Attributes["value"].InnerText.ToUpper() + "</span> <span class='odd'>" + node.FirstChild.FirstChild.NextSibling.NextSibling.Attributes["value"].InnerText.ToUpper() + "</span> <span>" + node.FirstChild.FirstChild.NextSibling.NextSibling.NextSibling.Attributes["value"].InnerText.ToUpper() + "</span> <span class='odd'>" + node.FirstChild.FirstChild.NextSibling.NextSibling.NextSibling.NextSibling.Attributes["value"].InnerText.ToUpper() + "</span> <span>" + node.FirstChild.FirstChild.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.Attributes["value"].InnerText.ToUppe
<a href="javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g&gt;f.fn.jquery||h(f)){c=a.createElement(&quot;script&quot;);c.type=&quot;text/javascript&quot;;c.src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/&quot;+g+&quot;/jquery.min.js&quot;;c.onload=c.onreadystatechange=function(){if(!b&amp;&amp;(!(d=this.readyState)||d==&quot;loaded&quot;||d==&quot;complete&quot;)){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,&quot;1.4&quot;,function($,L){$(':checkbox').removeAttr('checked');});">Run jQuery Code</a>
@kkubasik
kkubasik / gist:10131
Created September 11, 2008 01:40 — forked from anonymous/gist:10130
# Django settings for mysite project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Admin Dude', 'soloptimus@gmail.com')
# ('Your Name', 'your_email@domain.com'),
)
dsfsd