Skip to content

Instantly share code, notes, and snippets.

@iamsortiz
iamsortiz / Playing_around_with_BI_using_Python_--yml,_request,_pandas--_Javascript_--orbjs,_chratjs--.py
Created April 27, 2017 19:16
Playing around with BI using Python (yml, request, pandas) Javascript (orbjs, chratjs)
#!/usr/bin/env python
import requests
# from pprint import pprint
import json
import time
import yaml
import pandas as pd
from pandas import DataFrame
@iamsortiz
iamsortiz / edX-Course-Web_browser_console_scraping.js
Created November 11, 2017 11:25
Download an edX course as Markdown a file (edX - Course - Web browser console scraping)
// Download an edX course as Markdown a file
//
// Usage:
// * Go to edX course webpage
// * Enroll
// * Get in (audit course, for example)
// * Open web browser console (tested on Chromium)
// * Paste code
// * Press intro
function extracttion() {
@iamsortiz
iamsortiz / docker-php_apache_modrewrite.sh
Last active May 31, 2020 01:30
Docker php apache modrewrite bash utils
# Convenience bash utils to handle docker: php + apache + modrewrite
# * related issue: https://github.com/docker-library/php/issues/179#issuecomment-234594522
#
# Usage:
# * Download the file
# * In your "bash file"
# * On debian based systems use: ~/.bashrc
# * On Mac use: ~/.bash_profile
# * Include the line: source PATH_TO_THE_DOWNLOADED_FILE
# * Or just copy and paste the contents of this file
@iamsortiz
iamsortiz / create-virtual-floppy.sh
Last active February 3, 2023 14:28
Automated creation of virtual floppy disk with data
#!/bin/bash
################################################################################
#
# Automated creation of virtual floppy disk with data
#
# Usage with default config:
# * Copy your data to a folder called 'input'
# * run the script: $ ./create-virtual-floppy.sh
# * The virtual floppy disk with data can be found timestamped in a 'output' folder
#