Skip to content

Instantly share code, notes, and snippets.

@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
#
@iamsortiz
iamsortiz / kubernetes-get_dashboard_access.sh
Last active October 15, 2016 22:53
Kubernetes vagrant - Get dashboard access
#!/bin/bash
# Usage: Assuming a vagrant based kubernetes (as in https://coreos.com/kubernetes/docs/latest/kubernetes-on-vagrant-single.html), run this script in the same folder of the Vagrantfile (where you would normally do "vagrant up")
# * Then insert the password (by default: kubernetes)
# * Browse localhost:9090
USERNAME='kubernetes'
PASSWORD='kubernetes'
function main() {
@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() {