Skip to content

Instantly share code, notes, and snippets.

View SpEcHiDe's full-sized avatar

Shrimadhav U K SpEcHiDe

View GitHub Profile
<!DOCTYPE html>
<html lang="ml">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags-->
<meta name="apple-mobile-web-app-capable" content="yes"/>
</head>
var a=document.getElementsByClassName('js-toggler-target');for(var i=0;i<a.length;i++){a[i].click();}
@SpEcHiDe
SpEcHiDe / openpgp.txt
Created January 26, 2017 06:14
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:36d43b5dd44e50a580052dce599767107164b031]
<!DOCTYPE html>
<html>
<head>
<title>gravatar api</title>
</head>
<body>
<form method="POST">
email: <input type="text" name="emailid"><br>
size: <select name="size">
@SpEcHiDe
SpEcHiDe / prep_time_table.py
Created December 22, 2016 15:12
Prepare Timetable NITC only
#!/usr/bin/env python2
#
# 1. slots ?
# 2. process
# 3. output CSV
#
def create_ICS_from_slots(slots) :
'''
works only for NITC students
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
email = SpEcHiDe@users.noreply.github.com
name = Shrimadhav U K
signingkey = 599767107164B031
[credential]
@SpEcHiDe
SpEcHiDe / mfree.py
Last active August 16, 2016 16:12
#DGPLUG
#!/usr/bin/env python2
def read_file(filename, numlines) :
'''
reads the first numlines of lines from filename
'''
d = []
with open(filename) as f :
for line in f :
if numlines == 0 :
#!/bin/bash
## $1 => filename excluding ".partX.rar"
## $2 => directory to download the file to
if [ $# -eq 0 ] ; then
echo "Usage Instructions"
echo "$0 <filename excluding \".partX.rar\"> <directory name>"
else
mkdir $2
@SpEcHiDe
SpEcHiDe / bit.ly.php
Created July 25, 2016 11:16
BULK bit.ly generator
<?php
if(isset($_REQUEST['d'])){
if($_REQUEST['d'] == 1){
ini_set('display_errors', 1);
error_reporting(-1);
}
}
$longurls = array(
"array",
"of long",
@SpEcHiDe
SpEcHiDe / img2pdf.tex
Last active July 4, 2017 11:08
LaTeX file to convert image to portable document format
\documentclass[12pt,a4paper]{report}
\usepackage[pdftex]{graphicx}
\usepackage[pdfborder={0 0 0}, pdftitle={<pdf title here>}, pdfauthor={<author's name here>}, pdfsubject={<subject here>}, pdfkeywords={<keywords here>}]{hyperref}
\pagenumbering{gobble}
\begin{document}
\includegraphics[scale=0.65,angle=0]{./file_name} % the image file name without extension
\end{document}