Skip to content

Instantly share code, notes, and snippets.

package main
import (
"encoding/json"
"github.com/PuerkitoBio/goquery"
"github.com/stints/twilio"
"log"
"os"
"strings"
"time"
@malisetti
malisetti / next_big_number.js
Last active January 13, 2017 05:54
next big number
var num = "9123";
var digits = num.split("");
function nextBig(position, digits) {
var currentNumber = digits[position];
for (var i = position-1; i >= 0; i--) {
if (currentNumber > digits[i]) {
currentNumber = digits[i];
return i;
http://9.rarbg.com:2710/announce
http://announce.torrentsmd.com:6969/announce
http://bt.careland.com.cn:6969/announce
http://explodie.org:6969/announce
http://mgtracker.org:2710/announce
http://tracker.tfile.me/announce
http://tracker.torrenty.org:6969/announce
http://tracker.trackerfix.com/announce
http://www.mvgroup.org:2710/announce
udp://9.rarbg.com:2710/announce
<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:News="https://www.bing.com:443/news/search?format=RSS&amp;amp;q=%22Shantel+Pudney+%2A+Mmaload%22&amp;amp;qft=interval%3D%227%22"><channel><title>Top Stories - BingNews</title><link>https://www.bing.com:443/news/search?format=RSS&amp;amp;q=%22Shantel+Pudney+%2A+Mmaload%22&amp;amp;qft=interval%3D%227%22</link><description>Search results</description><image><url>http://www.bing.com/rsslogo.gif</url><title>Top Stories</title><link>https://www.bing.com:443/news/search?format=RSS&amp;amp;q=%22Shantel+Pudney+%2A+Mmaload%22&amp;amp;qft=interval%3D%227%22</link></image><copyright>Copyright \xc2\xa9 2016 Microsoft. All rights reserved. These XML results may not be used, reproduced or transmitted in any manner or for any purpose other than rendering Bing results within an RSS aggregator for your personal, non-commercial use. Any other use of these results requires express written permission from Microsoft Corporation. By accessing this web page or using the
<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:News="https://www.bing.com:443/news/search?format=RSS&amp;q=%22Shantel+Pudney+%2A+Mmaload%22&amp;qft=interval%3D%227%22"><channel><title>&quot;Shantel Pudney * Mmaload&quot; - BingNews</title><link>https://www.bing.com:443/news/search?format=RSS&amp;q=%22Shantel+Pudney+%2A+Mmaload%22&amp;qft=interval%3D%227%22</link><description>Search results</description><image><url>http://www.bing.com/rsslogo.gif</url><title>&quot;Shantel Pudney * Mmaload&quot;</title><link>https://www.bing.com:443/news/search?format=RSS&amp;q=%22Shantel+Pudney+%2A+Mmaload%22&amp;qft=interval%3D%227%22</link></image><copyright>Copyright © 2016 Microsoft. All rights reserved. These XML results may not be used, reproduced or transmitted in any manner or for any purpose other than rendering Bing results within an RSS aggregator for your personal, non-commercial use. Any other use of these results requires express written permission from Microsoft Corporation. By accessing this w

Keybase proof

I hereby claim:

  • I am mseshachalam on github.
  • I am seshachalam (https://keybase.io/seshachalam) on keybase.
  • I have a public key whose fingerprint is 1EE7 642C 32F9 7505 52CA 00E5 48E1 A741 ABDD EFD4

To claim this, I am signing this object:

@malisetti
malisetti / _snippet.html
Created November 18, 2015 05:14 — forked from elijahmanor/_snippet.html
Differences Between jQuery .bind() vs .live() vs .delegate() vs .on() Methods
<ul id="members" data-role="listview" data-filter="true">
<!-- ... more list items ... -->
<li>
<a href="detail.html?id=10">
<h3>John Resig</h3>
<p><strong>jQuery Core Lead</strong></p>
<p>Boston, United States</p>
</a>
</li>
<!-- ... more list items ... -->
@malisetti
malisetti / PHP-Callable.php
Created September 10, 2015 16:26
writing code to sum things
<?php
function sum() {
$list = array();
$prepare = function($value) use(&$prepare, &$list) {
if (is_array($value)) {
return array_walk($value, $prepare, $list);
} else {
$list[] = $value;
}

Telnet

The Gearman job server supports a text-based protocol to pull information and run some administrative tasks. The following commands are supported:

  • workers
  • status
  • maxqueue
  • shutdown
  • version
<?php
namespace FTW\GuildBundle\Services;
/**
* Monitoring Gearman over telnet port 4730
*
* So the only way to monitor Gearman is via doing a telnet to port 4730. The
* current monitoring supported commands are fairly basic.
* There are plans to include more set of commands in the next release.