View hacker_news.user.js
// ==UserScript== | |
// @name HN Addons | |
// @namespace https://prahladyeri.com | |
// @version 0.1 | |
// @description Add custom bells and whistles to HN | |
// @author Prahlad Yeri | |
// @match https://news.ycombinator.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @grant none | |
// ==/UserScript== |
View repo_puller.py
## | |
# Repo Puller | |
# | |
# @description A plugin to pull your github repositories | |
# @author Prahlad Yeri<prahladyeri@yahoo.com> | |
# @license MIT | |
# @date 2019-06-20 | |
# | |
# @modified: | |
# 2019-06-22: Cleaned up source, removed comments. |
View gmail_classic.user.js
// ==UserScript== | |
// @name GMail Classic | |
// @namespace https://prahladyeri.com | |
// @version 0.1 | |
// @description Add refresh timer to GMail Classic | |
// @author Prahlad Yeri | |
// @match https://mail.google.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @grant none | |
// ==/UserScript== |
View style.css
div.sidebox.submit.submit-link a, | |
div.sidebox.submit.submit-text a, | |
div.sidebox.create div.morelink a | |
{ | |
background-color: teal; | |
color: white; | |
font-family: monospace, mono, "Courier New", Courier; | |
letter-spacing: 0.1em; | |
} |
View split_tweet.py
#!/usr/bin/env python3 | |
import os, sys | |
max_length = 140 | |
def chunks(l, n): | |
for i in range(0, len(l), n): | |
yield l[i:i + n] | |
if __name__ == "__main__": |
View tree
#! /usr/bin/env python3 | |
__author__ = "Prahlad Yeri" | |
__license__ = "MIT" | |
__version__ = "0.0.1" | |
import os, sys | |
def print_tree(dirname, pref = ""): | |
for item in os.listdir(dirname): |
View batteryboy
#!/usr/bin/env python3 | |
import sys | |
import subprocess, os | |
from time import sleep, time | |
__author__ = "Prahlad Yeri" | |
__version__ = "1.0.7" | |
def execute_shell(command, error=''): | |
return execute(command, wait=True, shellexec=True, errorstring=error) |
View disqus_parse.php
<?php | |
/* | |
* Tool to parse disqus comments xml file. | |
* | |
* @author Prahlad Yeri<prahladyeri@yahoo.com> | |
* @date 2017-09-06 | |
* */ | |
function find_url($root, $thid) { | |
foreach($root->thread as $thread) { |
View console.php
<?php | |
/* | |
* Tool to migrate disqus comments to the wordpress system. | |
* | |
* @author Prahlad Yeri<prahladyeri@yahoo.com> | |
* @date 2017-09-06 | |
* | |
* Updated on 2020-03-11: fixes and refactoring. | |
* */ | |
require_once('disqus_parse.php'); |
View flask_drive_example.py
## | |
# Flask Drive Example App | |
# | |
# @author Prahlad Yeri <prahladyeri@yahoo.com> | |
# @date 30-12-2016 | |
# Dependency: | |
# 1. pip install flask google-api-python-client | |
# 2. make sure you have client_id.json in this same directory. | |
import os |
NewerOlder