Skip to content

Instantly share code, notes, and snippets.

View sandeepshetty's full-sized avatar

Sandeep Shetty sandeepshetty

View GitHub Profile
@sandeepshetty
sandeepshetty / gist:5725818
Last active June 28, 2016 15:17
Extracting machine tags from a string.
<?php
// Namespace and predicate start with a letter or underscore,
// followed by any number of letters, numbers, or underscores.
// If value contains spaces, it needs to be wrapped in quotes.
// Literal quotes within quotes need to be escaped using a backslash (\)
$test_cases='
#repost
@sandeepshetty
sandeepshetty / YYYY-[1-6].json
Last active December 19, 2015 10:09
Converspace JSON store
{
"entries": [
{
"type": "post",
"id": "2013/07/06/4",
"content": "",
"published": "",
"updated": "",
"response_counts": {
"comments": 0,

Keybase proof

I hereby claim:

  • I am sandeepshetty on github.
  • I am sandeepshetty (https://keybase.io/sandeepshetty) on keybase.
  • I have a public key whose fingerprint is D701 C601 7AEF D8D3 DC95 86CA D589 17A0 9C41 E035

To claim this, I am signing this object:

@sandeepshetty
sandeepshetty / larp.md
Last active August 29, 2015 14:13
LARP [ Linux (Ubuntu/14.04) Apache/2.4 RethinkDB PHP/5.4 ] Linode Setup Steps
  1. Login to your Linode

    ssh root@198.51.100.0
  2. Set hostname

    echo "foobar" > /etc/hostname
    hostname -F /etc/hostname
Verifying that +sandeepshetty is my openname (Bitcoin username). https://onename.com/sandeepshetty