Skip to content

Instantly share code, notes, and snippets.

View kantanand's full-sized avatar
🎯
Focusing

Kantanand US kantanand

🎯
Focusing
View GitHub Profile
@kantanand
kantanand / hipchat-v2.sh
Created February 10, 2017 05:29 — forked from danriti/hipchat-v2.sh
HipChat API v2 - Send a message to a room using cURL
#!/bin/bash
# Set the ROOM_ID & 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" \
@kantanand
kantanand / httpserver.py
Created November 25, 2016 07:23 — forked from jplazcano87/httpserver.py
SimpleHttpServer with ip and port
import sys
from SimpleHTTPServer import SimpleHTTPRequestHandler
import BaseHTTPServer
def test(HandlerClass=SimpleHTTPRequestHandler,
ServerClass=BaseHTTPServer.HTTPServer):
protocol = "HTTP/1.0"
host = ''
@kantanand
kantanand / InternalServerReporting.php
Last active August 29, 2015 14:25 — forked from Leveton/InternalServerReporting.php
Captivate internal server reporting with PHP
<?php # InternalServerReporting.php
# Copyright 2000-2008 Adobe Systems Incorporated. All rights reserved.
#
print "<pre>\n";
#
foreach ($_POST as $k => $v)
{
if($k == "CompanyName")
{
@kantanand
kantanand / Time-Table.markdown
Created December 27, 2013 11:25
A Pen by Kantanand U.S..