Skip to content

Instantly share code, notes, and snippets.

@shreddd
shreddd / filepicker.ipynb
Created July 15, 2019 18:31
filepicker ipywidget
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shreddd
shreddd / block-fb-trending-greasemonkey.js
Created December 30, 2017 07:09
Greasemonkey script to block FB trending news
@shreddd
shreddd / jupyter_dict_to_html.ipynb
Created September 27, 2017 17:04
Render a dictionary as an HTML table via pandas
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shreddd
shreddd / sshrmkey.sh
Created May 10, 2017 17:34
Remove entries from known_hosts files (including variations on the hostname)
#!/bin/bash
# sshrmkey.sh
#
# Little BASH tool to clean up a hostname from ssh known_hosts
#
# Shreyas Cholia - 2017-05-10 shreyas@gmail.com
# A POSIX variable
OPTIND=1 # Reset in case getopts has been used previously in the shell.
@shreddd
shreddd / redirect.py
Created September 30, 2015 21:14
Simple Redirect Server in python to redirect requests to a specified URL
#!/usr/bin/env python
"""
Simple HTTP URL redirector
Shreyas Cholia 10/01/2015
usage: redirect.py [-h] [--port PORT] [--ip IP] redirect_url
HTTP redirect server
positional arguments:
@shreddd
shreddd / NEWT.ipynb
Last active December 17, 2018 21:58
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shreddd
shreddd / pymatgenpd.ipynb
Last active December 15, 2015 04:09
pymatgen phase diagram
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.