Skip to content

Instantly share code, notes, and snippets.

@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);
@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}"
2017-12-21 10:05:21,925 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2017-12-21 10:05:21,926 - octoprint.server - INFO - OctoPrint 1.3.6
2017-12-21 10:05:21,927 - octoprint.plugin.core - INFO - 8 plugin(s) registered with the system:
| Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/announcements
| Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/corewizard
| CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/cura
| Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/discovery
| OctoPi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/octopi_support
| Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-package
@ismangil
ismangil / octoprint.log
Created December 28, 2017 16:16
OctoPrint autoconnect on startup issue
2017-12-28 16:06:35,607 - octoprint.startup - INFO - ******************************************************************************
2017-12-28 16:06:35,608 - octoprint.startup - INFO - Starting OctoPrint 1.3.6
2017-12-28 16:06:35,609 - octoprint.startup - INFO - ******************************************************************************
2017-12-28 16:06:36,078 - octoprint.startup - INFO - Blacklist processing done
2017-12-28 16:06:36,168 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2017-12-28 16:06:38,877 - octoprint.plugin.core - INFO - Found 8 plugin(s) providing 8 mixin implementations, 4 hook handlers
2017-12-28 16:06:39,128 - octoprint.server - INFO - Intermediary server started
2017-12-28 16:06:39,129 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins, /h
@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 / PJSIP Project Submission Agreement v1.2.md
Last active February 24, 2020 12:53
PJSIP Project Submission Agreement

PJSIP Project Submission Agreement v1.2

These terms apply to your contribution of materials to a product or project owned or managed by us ('project'), and set out the intellectual property rights you grant to us (Teluu Ltd) in the contributed materials. If this contribution is on behalf of a company, the term 'you' will also mean the company you identify below. If you agree to be bound by these terms, fill in the information requested below and provide your signature. Read this agreement carefully before signing.

  1. The term 'contribution' means any source code, object code, patch, tool, sample, graphic, specification, manual, documentation, or any other material posted or submitted by you to a project.
  2. With respect to any worldwide copyrights, or copyright applications and registrations, in your contribution:
  3. you hereby assign to us joint ownership, and to the extent that such assignment is or becomes invalid, ineffective or unenforceable, you hereby grant to us a perpetual, irrevocable, no
@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