Skip to content

Instantly share code, notes, and snippets.

View imkarthikk's full-sized avatar
:bowtie:
Focusing

Karthik Kamalakannan imkarthikk

:bowtie:
Focusing
View GitHub Profile
@kepano
kepano / obsidian-web-clipper.js
Last active April 18, 2024 20:47
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@TheWebDevel
TheWebDevel / .zshrc
Created April 20, 2019 03:48
My zshrc
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
# Load Nerd Fonts with Powerlevel9k theme for Zsh
POWERLEVEL9K_MODE='nerdfont-complete'
source ~/powerlevel9k/powerlevel9k.zsh-theme
# Customise the Powerlevel9k prompts
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(ssh dir vcs newline status)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
@swaathi
swaathi / show
Last active May 29, 2019 14:11
Add quick functions to your shell
#! /bin/bash
if [[ $1 == 'me' ]]; then
cat "$(which show)"
elif [[ $1 == 'loc' ]]; then
echo `which show`
elif [[ $1 == 'install' ]]; then
echo "Ensure to place this file in `usr/local/bin` and read instructions on https://gist.github.com/swaathi/8c18be3a437e498034a5a3ede54d0ce9/."
brew install fortune
brew install cowsay
brew install lolcat

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@rauchg
rauchg / README.md
Last active January 6, 2024 07:19
require-from-twitter
@dannguyen
dannguyen / README.md
Last active December 28, 2023 15:21
Using Python 3.x and Google Cloud Vision API to OCR scanned documents to extract structured data

Using Python 3 + Google Cloud Vision API's OCR to extract text from photos and scanned documents

Just a quickie test in Python 3 (using Requests) to see if Google Cloud Vision can be used to effectively OCR a scanned data table and preserve its structure, in the way that products such as ABBYY FineReader can OCR an image and provide Excel-ready output.

The short answer: No. While Cloud Vision provides bounding polygon coordinates in its output, it doesn't provide it at the word or region level, which would be needed to then calculate the data delimiters.

On the other hand, the OCR quality is pretty good, if you just need to identify text anywhere in an image, without regards to its physical coordinates. I've included two examples:

####### 1. A low-resolution photo of road signs

@imkarthikk
imkarthikk / monit.conf
Created May 30, 2015 19:26
nginx configuration for monit
server {
listen 80 default_server;
server_name 192.168.10.69;
location /monit/ {
allow 127.0.0.1;
allow 192.0.0.0/8;
deny all;
proxy_pass http://127.0.0.1:2812;
proxy_set_header Host $host;
@voter101
voter101 / Gulpfile.js
Last active November 29, 2021 01:17
Gulpfile for Rails application with replaced Sprockets with Gulp
'use strict'
var gulp, sass, babelify, browserify, watchify, source, util;
gulp = require('gulp');
sass = require('gulp-sass');
babelify = require('babelify')
browserify = require('browserify');
watchify = require('watchify');
source = require('vinyl-source-stream');
#!/bin/bash
SCRIPT='cd /web/vcms/; bundle exec sidekiq'
RUNAS=dimon
NAME=vcms-sidekiq
PIDFILE=/web/vcms/tmp/pids/sidekiq.pid
LOGFILE=/web/vcms/log/sidekiq.log
start() {
@rgaidot
rgaidot / docker-resources.md
Last active October 22, 2023 13:02
Docker Resources All In One - A collection of docker online resources