Skip to content

Instantly share code, notes, and snippets.

!function(e,t){"use strict";var n={};!function(){var e=document.getElementsByTagName("script"),t=e[e.length-1];if(t)for(var r,o=t.attributes,i=0,a=o.length;i<a;i++)/data-(\w+)$/.test(o[i].nodeName)&&(r=o[i].nodeValue,"false"===r&&(r=!1),n[RegExp.$1]=r)}();var r=function(){var e=t(),r=e(n);return r.factory=e,r};"function"==typeof define&&define.amd?define([],r):"object"==typeof module&&module.exports?module.exports=r():e.Honeybadger=r()}(this,function(){function e(e,t){var n={};for(k in e)n[k]=e[k];for(k in t)n[k]=t[k];return n}function t(e){return!!u&&(u.name===e.name&&(u.message===e.message&&u.stack===e.stack))}function n(e,t){var n=e.message;for(p in t)if(n.match(t[p]))return!0;return!1}function r(){var e={};return e.HTTP_USER_AGENT=navigator.userAgent,document.referrer.match(/\S/)&&(e.HTTP_REFERER=document.referrer),e}function o(e){if("object"==typeof e){var t=[];for(k in e)t.push(k+"="+e[k]);return t.join(";")}}function i(e){return e.stacktrace||e.stack||void 0}function a(e){var t;if(e&&(t=i(e)))return{st
"एक कविता"
‘भोक लाग्यो’ ठिटोप्रति
न गाँसको प्रबन्ध
न बासको प्रबन्ध
तैपनि
बाँचेकै छ
हुर्केकै छ
यो मगन्ते ठिटो
नयाँ सडकको पेटीमा
#!/bin/bash
usage() { echo "Usage: $0 github-username" 1>&2; exit 1; }
if [ $# -lt "1" ]; then
usage;
fi
#Assumptions
@kaji-bikash
kaji-bikash / nginx.conf
Created September 24, 2015 11:29 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@kaji-bikash
kaji-bikash / com.kajisaap.boot2docker.timesync.plist
Last active August 29, 2015 14:18
A way to resolve time drift between dockerVM and OSX
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.kajisaap.boot2docker.timesync</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/boot2docker</string>
#!/bin/bash
# Set the ROOM_ID(This can be room name as well) & AUTH_TOKEN variables below.
# Further instructions at https://www.hipchat.com/docs/apiv2/auth
ROOM_ID=XXX
AUTH_TOKEN=XXX
MESSAGE="Hello world!"
curl -H "Content-Type: application/json" \
#
# A CORS (Cross-Origin Resouce Sharing) config for nginx
#
# == Purpose
#
# This nginx configuration enables CORS requests in the following way:
# - enables CORS just for origins on a whitelist specified by a regular expression
# - CORS preflight request (OPTIONS) are responded immediately
# - Access-Control-Allow-Credentials=true for GET and POST requests
#!/usr/bin/env python
import os
import sys
import getopt
from sys import stderr
import boto.ec2