Skip to content

Instantly share code, notes, and snippets.

#EXTM3U
#EXTINF:-1 group-title="NDTV",NDTV-iOS
http://ndtv.live-s.cdn.bitgravity.com/cdn-live-b7/_definst_/ndtv/live/ndtv247live.smil/playlist.m3u8
#EXTINF:1 group-title="Others",TenSports
http://103.3.229.147:8084/r_tensports/01.m3u8
#EXTINF:1 group-title="Others",Star Sports
http://103.3.229.147:8084/r_starsportshd/01.m3u8
// ==UserScript==
// @name DevCentral Cleanse
// @version 0.1.4
// @namespace http://blog.nitinkhanna.com
// @author nitinkhanna
// @run-at document-end
// @include *devcentral.f5.com*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// ==/UserScript==
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(window).load(function(){
$().hatchShow();
});
jQuery.fn.hatchShow = function(){
$('.hsjs').css('display','inner-block').css('white-space','pre').each(function(){
var t = $(this);
t.wrap("<span class='hatchshow_temp' style='display:block'>");
var pw = t.parent().width();
<?php
// echo 'running code';
header('Content-type: text/html; charset=utf-8');
require_once 'AppDotNet.php';
$app = new AppDotNet('','');
// You need an app token to consume the stream, get the token returned by App.net
// (this also sets the token)
// ==UserScript==
// @name FB Cleanse
// @version 0.1
// @namespace http://blog.nitinkhanna.com
// @author nitinkhanna
// @run-at document-end
// @include *facebook*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am nitinthewiz on github.
  • I am nitinkhanna (https://keybase.io/nitinkhanna) on keybase.
  • I have a public key whose fingerprint is 72DA D581 79D7 1325 C583 386B 334C 2848 9692 BDE3

To claim this, I am signing this object:

@nitinthewiz
nitinthewiz / 0_reuse_code.js
Created December 3, 2013 23:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@nitinthewiz
nitinthewiz / gist:6167179
Created August 6, 2013 18:27
liveblog mobile view
<?php
function current_user_canada() {
$curr_user = wp_get_current_user();
return $curr_user;
}
$message = "";
$status = "";
foreach($_GET as $key => $value) {
if($key=="text"){
$message = $value;
@nitinthewiz
nitinthewiz / Treeview Cleanse
Last active December 20, 2015 12:58
TamperMonkey script to stop Buffer, IFTTT, PourOver, Twitterfeed and dlvrit posts from showing up in treeview. Install Tampermonkey in Chrome or Greasemonkey in FF (not tested, should work) and then add this script.
// ==UserScript==
// @name Treeview cleanse
// @version 0.1.4
// @namespace http://blog.nitinkhanna.com
// @author nitinkhanna
// @run-at document-end
// @include *treeview*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// ==/UserScript==
@nitinthewiz
nitinthewiz / gist:6124115
Last active December 20, 2015 11:29
App.net Everywhere. This script will tell every website that you've come from App.net... It's a good way to spread the word about ADN. Install TamperMonkey on Chrome and add this script.
// ==UserScript==
// @name App.net Everywhere
// @namespace nitinkhanna.com
// @description Tells all websites about a UTM campaign called App.net
// @match http://*/*
// @match https://*/*
// @exclude http://*treeview*
// @exclude https://*alpha.app.net*
// @grant none
// @run-at document-start