Skip to content

Instantly share code, notes, and snippets.

View kirubakaran's full-sized avatar
🚀
Working on histre.com

Kirubakaran Athmanathan kirubakaran

🚀
Working on histre.com
View GitHub Profile
@kirubakaran
kirubakaran / apt.sql
Created September 20, 2023 18:44
Example of through table and constraints
CREATE TABLE states (
id INT PRIMARY KEY,
statename VARCHAR(50)
);
CREATE TABLE disclaimers (
id INT PRIMARY KEY,
disclaimertxt VARCHAR(50)
);
@kirubakaran
kirubakaran / upload-linkedin-export.py
Created September 17, 2022 04:30
Import LinkedIn results (exported as csv) into histre.com
import csv
import datetime
import getpass
import requests
urls = {}
urls["host"] = "https://histre.com/"
urls["api"] = f"{urls['host']}api/v1/"
urls["auth"] = f"{urls['api']}auth_token/"
urls["collection"] = f"{urls['api']}collections/"
@kirubakaran
kirubakaran / upload-youtube-subscriptions.py
Created September 16, 2022 15:49
Export csv of your YouTube subscriptions and import into histre.com
import csv
import datetime
import getpass
import requests
urls = {}
urls["host"] = "https://histre.com/"
urls["api"] = f"{urls['host']}api/v1/"
urls["auth"] = f"{urls['api']}auth_token/"
urls["collection"] = f"{urls['api']}collections/"
#!/usr/bin/env python
import math
import sys
from moviepy.editor import AudioClip, VideoFileClip, concatenate_videoclips
# Get average RGB of part of a frame. Frame is H * W * 3 (rgb)
# Assumes x1 < x2, y1 < y2
@kirubakaran
kirubakaran / background.js
Last active July 8, 2019 13:53
check if browser extension is in dev mode
function isDevMode() {
return !('update_url' in browser.runtime.getManifest());
};
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am kirubakaran on github.
  • I am kirubakaran (https://keybase.io/kirubakaran) on keybase.
  • I have a public key ASCcD6uktaw81uV1oUqJBO5T_D8SxC1E5JP220JtJqoYawo

To claim this, I am signing this object:

@kirubakaran
kirubakaran / blogger2hugo.py
Last active July 28, 2017 21:20
Convert Blogger Dump to Hugo Markdown Files
#!/usr/bin/env python3
# Author: Kirubakaran Athmanathan
# Website: https://kirubakaran.com/
import feedparser
import django
from django.utils import html as h
import moment
from collections import defaultdict
def foo:
meow()