This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.github.prahladyeri.utils; | |
import java.util.Arrays; | |
import javax.crypto.Cipher; | |
import javax.crypto.spec.SecretKeySpec; | |
public class Crypto | |
{ | |
private String salt="972$%#@!)(><?|:}"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Check if specified package(s) are installed. | |
# Displays a GUI message if any aren't and asks to install. | |
import sys, os | |
import subprocess | |
import re | |
import importlib.util | |
import tkinter as tk | |
import tkinter.messagebox as messagebox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# script to convert *.md posts in content folder to jekyll format | |
import os | |
import glob, re | |
def main(): | |
files = glob.glob("content/*.md") | |
for fname in files: | |
lines = open(fname, encoding='utf8').readlines() | |
meta = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Repo Puller | |
# | |
# @description A plugin to pull your github repositories | |
# @author Prahlad Yeri<[email protected]> | |
# @license MIT | |
# @date 2019-06-20 | |
# | |
# @modified: | |
# 2019-06-22: Cleaned up source, removed comments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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__": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
NewerOlder