Skip to content

Instantly share code, notes, and snippets.

How to share a folder with a docker container on OSX

Mounting shared folders between OSX and the docker container is tricky due to the intermediate boot2docker VM. You can't use the usual docker -v option as the docker server knows nothing about the OSX filesystem - it can only mount folders from the boot2docker filesystem. Fortunately, you can work around this using SSHFS.

dosfstools on OSX

OSX 10.9 Maveric not exist mkfs.vfat.

dosfstools - now orphaned Linux version utilities for making and checking MS-DOS FAT filesystems.

OSX users using diskfstool? hdutil and hdiutil.


/** compatibility header for endian.h
* This is a simple compatibility shim to convert
* BSD/Linux endian macros to the Mac OS X equivalents.
* It is public domain.
* */
#ifndef __APPLE__

=========================================== nagios from source with vagrant and ansible

Main perposes - automation building and configuration nagios box based on SOC mini computers (RPi or BBB). Vagrant used for debug and test configuration.


vagrant up

sv99 /
Last active August 29, 2015 14:16
update image
updateFrame = (id) ->
frame_img = $(id)
src = frame_img.attr('src')
if src
console.log src
src = src.split('?', 1)
src += '?ts=' + (new Date).getTime()
frame_img.attr 'src', src
sv99 /
Created March 11, 2015 16:05
color px to int with RegExp
px2int: (px) ->
re = new RegExp("[0-9\.]*")
myArray = re.exec px
return myArray[0]
sv99 /
Last active August 29, 2015 14:17
Set font style

##Font Size, Face, Weight, and Style Basics

It is very easy to style text that will be rendered on the canvas. It requires you to set the size, weight, style, and font face in a CSS-compliant text string that is applied to the context.font property. The basic format looks like this:

[font style] [font weight] [font size] [font face]

canvas.font property not set if not set params in right sequence

sv99 /
Last active August 29, 2015 14:18


sport-marafon - обзорная статься о современных касках

Casco - Кант

Интересные модели SP-3 Airwolf (200€), SP-5 (180€), cx-3 (130€) - с магнитным креплением очков. Нужны специальные очки FX-70.

Очки интересные FX-70 Vautron (180€) - остекление вертолета Апач, FX-70 Carbonic (120€) - более простые стандартные стекла