Skip to content

Instantly share code, notes, and snippets.

View Mohitsharma44's full-sized avatar

Mohit Sharma Mohitsharma44

View GitHub Profile
@Mohitsharma44
Mohitsharma44 / recreate_easyrsa_index
Created April 8, 2016 19:12
recreate index.txt used by easy_rsa (for crl-verify). Make sure you have all the pem files. Pass all the pem files as argument as /pem_directory/*.pem
#!/bin/bash
if [ $# -eq 0 ]
then
echo "Usage: $0 *.pem"
exit 1
fi
for cert
do
@Mohitsharma44
Mohitsharma44 / file_scraper.py
Created July 21, 2015 20:23
Grab the files from an http server based on the extension of the filenames
from __future__ import print_function
__author__ = 'Mohit Sharma'
import requests
from bs4 import BeautifulSoup as bs
import urllib2
import os
_URL = 'http://serv.cusp.nyu.edu/files/cadence/'