Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Kaji Bikash kajisaap

🎯
Focusing
Block or report user

Report or block kajisaap

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:ef7a06d712d8b71897119ada01115633
"एक कविता"
‘भोक लाग्यो’ ठिटोप्रति
न गाँसको प्रबन्ध
न बासको प्रबन्ध
तैपनि
बाँचेकै छ
हुर्केकै छ
यो मगन्ते ठिटो
नयाँ सडकको पेटीमा
View simple_pubkey_appender.sh
#!/bin/bash
usage() { echo "Usage: $0 github-username" 1>&2; exit 1; }
if [ $# -lt "1" ]; then
usage;
fi
#Assumptions
@kajisaap
kajisaap / nginx.conf
Created Sep 24, 2015 — 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/
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@kajisaap
kajisaap / com.kajisaap.boot2docker.timesync.plist
Last active Aug 29, 2015
A way to resolve time drift between dockerVM and OSX
View com.kajisaap.boot2docker.timesync.plist
<?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>
View hipchat-v2.sh
#!/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" \
View nginx-cors.conf
#
# 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
View ec2-sshconfig-generate.py
#!/usr/bin/env python
import os
import sys
import getopt
from sys import stderr
import boto.ec2
You can’t perform that action at this time.