Skip to content

Instantly share code, notes, and snippets.

@ismangil
ismangil / convert_trac_wiki_to_markdown.rb
Created February 14, 2020 09:38 — forked from mitio/convert_trac_wiki_to_markdown.rb
Convert Trac Wiki to Markdown
#!/usr/bin/env ruby
# Convert Trac DB Wiki pages to Markdown source files
#
# Usage
#
# 1. Save the file somewhere and make it executable:
# chmod a+rx convert_track_wiki_to_markdown.rb
# 2. Run it like this:
# ./convert_track_wiki_to_markdown.rb /path/to/your/project/db/trac.db
@ismangil
ismangil / qemu_osx_rpi_raspbian_jessie.sh
Created January 7, 2018 11:46 — forked from hfreire/qemu_osx_rpi_raspbian_jessie.sh
How to emulate a Raspberry Pi (Raspbian Jessie) on Mac OSX (El Capitan)
# Install QEMU OSX port with ARM support
sudo port install qemu +target_arm
export QEMU=$(which qemu-system-arm)
# Dowload kernel and export location
curl -OL \
https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie
export RPI_KERNEL=./kernel-qemu-4.1.7-jessie
# Download filesystem and export location
@ismangil
ismangil / casesafe.sh
Created November 19, 2017 12:12 — forked from scottsb/casesafe.sh
Create and manage a case-sensitive disk-image on macOS (OS X).
#!/bin/bash
# ---------------------------------------------------------
# Customizable Settings
# ---------------------------------------------------------
MOUNT_POINT="${CASE_SAFE_MOUNT_POINT:-${HOME}/casesafe}"
VOLUME_PATH="${CASE_SAFE_VOLUME_PATH:-${HOME}/.casesafe.dmg.sparseimage}"
VOLUME_NAME="${CASE_SAFE_VOLUME_NAME:-casesafe}"
VOLUME_SIZE="${CASE_SAFE_VOLUME_SIZE:-60g}"
@ismangil
ismangil / echoHttpRequest.js
Last active August 29, 2015 14:24 — forked from Marak/echoHttpRequest.js
Echo HTTP requests
module['exports'] = function echoHttp (hook) {
hook.debug("Debug messages are sent to the debug console");
hook.debug(hook.params);
hook.debug(hook.req.path);
hook.debug(hook.req.method);