Skip to content

Instantly share code, notes, and snippets.

import webbrowser
import urllib
dayone_url = "dayone://post?entry="
feeling_question = "How do you feel today?"
achievement_question = "What are you trying to achieve today?"
thought_question = "Is there a negative thought or positive on your mind you want to get out?"
tag = "#diary"
# input
@nitinthewiz
nitinthewiz / st-anti-string-search.txt
Created December 15, 2015 00:58
Finding text without a particular string in Sublime text
Sublime Text uses PCRE which is Perl Regex.
The following RegEx -
(<\?)(?:(?!php))
will match
<? blah ?>
@nitinthewiz
nitinthewiz / ls.php
Created March 18, 2013 18:20 — forked from se4c0met/ls.php
<?php
/*
due to the open_basedir restriction, $tgtPath must be something like the following path param:
http://<your domain>.aws.af.cm/ls.php?path=/var/vcap.local/dea/apps/f-0-21341234123412abcdefgc75cc0f96b9/app/
to discover what are the allowed paths, try supplying any path, e.g. '/' then view the error logs via:
af logs <your app name>
*/

So yesterday brought the sad news that Google Reader is being killed off. C’est la vie it seems, given it was a Google product. In my search for an alternative I rediscovered Fever and decided to see if I could run it up for free on Heroku. Onwards...

Personally I think the news about Reeder is quite sad, as I would quite happily have paid for it as a service. In fact I like RSS so much that I actually shelled out the $30 for Fever when it first came out years ago (I was also pretty massive Shaun Inman fanboy if I’m being honest).

I ended up setting Fever aside because screw having to manage self-hosting for PHP and MySQL, right?

If you’re new to Fever I recommend going and checking it out, but also reading the post in response to the Google Reader announcement by Fevers author, Shaun, for a good list of what Fever is and isn’t.

Enough jibba-jabba!

@nitinthewiz
nitinthewiz / gist:5217917
Created March 21, 2013 23:59
A quick and beautiful writing platform in your browser. Save the code as a bookmark.
data:text/html, <body contenteditable style="font-size:2rem;line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;">
@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
@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: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 / 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 / ReporterSaveFileDescription.md
Created January 6, 2016 09:29 — forked from dbreunig/ReporterSaveFileDescription.md
A description of the data written to the Reporter App Dropbox save folder.

#Reporter Save File Schema

##The Reporter Export File

Reporter saves to your Dropbox account with plaintext JSON files, one for each day. When a Report is entered in the app a file is created for that day if it does not exist. Otherwise, the report is appended to the existing file. The save folder is located in 'Dropbox/Apps/Reporter-App/'.

Reporter save files are named according to the following convention:

YYYY-MM-DD-reporter-export.json