Skip to content

Instantly share code, notes, and snippets.

@trueparallels
trueparallels / fetch_kindle.js
Created July 7, 2020 14:47 — forked from apehex/fetch_kindle.js
Get back my books from Kindle
View fetch_kindle.js
/*
* @fileoverview Program to free the content in kindle books as plain HTML.
*
* This is largely based on reverse engineering kindle cloud app
* (https://read.amazon.com) to read book data from webSQL.
*
* Access to kindle library is required to download this book.
*/
// The Kindle Compression Module copied from http://read.amazon.com application
@trueparallels
trueparallels / dynamo_json_to_csv.py
Created March 9, 2020 15:19 — forked from eliocapelati/dynamo_json_to_csv.py
Convert a dynamodb result [json] to csv
View dynamo_json_to_csv.py
#!/usr/bin/python3
# -*- coding: UTF-8 -*-
__author__ = "Elio Capelati Jr"
__version__ = "1.0.0"
import csv, json, sys, argparse
from pprint import pprint
@trueparallels
trueparallels / deploy.rb
Created July 20, 2017 14:14 — forked from llbbl/deploy.rb
Capistrano deploy file for Laravel 5.x
View deploy.rb
# config valid only for current version of Capistrano
lock '3.4.0'
set :application, "Your app name" # EDIT your app name
set :repo_url, "https://github.com/laravel/laravel.git" # EDIT your git repository
set :deploy_to, "/var/www/my-app" # EDIT folder where files should be deployed to
set :keep_releases, 5
# set :linked_files, %w{.env} #EDIT uncomment this line once you have a .env file in :deploy_to/shared
@trueparallels
trueparallels / fix-order-grid.php
Created June 6, 2017 12:06 — forked from az-iar/fix-order-grid.php
magento - fix missing order and invoice grid data
View fix-order-grid.php
<?php
include_once 'abstract.php';
class FixOrderGrid extends Mage_Shell_Abstract
{
/**
* Run script
*
*/
@trueparallels
trueparallels / episode-count.js
Last active January 19, 2016 11:21
Get count of episodes on Overcast website
View episode-count.js
jQuery('.episodecell').each(function(i, el) {
console.log(jQuery(el).find('.caption2').first().text());
});