Skip to content

Instantly share code, notes, and snippets.

View andrejd's full-sized avatar

Andrej Debeljak andrejd

View GitHub Profile
@andrejd
andrejd / 50-usb-prolific.rules
Created June 11, 2016 13:45
udev rule to change mode to 666 for prolific ttl to serial converter and thus allow all users to use it
# udev rule to change mode to 666 and thus allow all users to use it
SUBSYSTEM=="tty", DRIVERS=="pl2303", MODE:="0666"
@andrejd
andrejd / osx-animation-setings
Created November 5, 2014 21:49
Mac OSX animation settings
# opening and closing windows and popovers
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
# smooth scrolling
defaults write -g NSScrollAnimationEnabled -bool false
# showing and hiding sheets, resizing preference windows, zooming windows
# float 0 doesn't work
defaults write -g NSWindowResizeTime -float 0.001
@andrejd
andrejd / add-remove-shortcut-for-application-in context-menu-on-win7
Last active August 29, 2015 14:08
Add/remove shortcut to context menu for ConsoleZ or any other app
-----------------------------------------------------------------------------------------------------------------------------------
Save this text (from line 4 to 16) to xyz.reg after modifying path to ConsoleZ and double click on file to import it into registry.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Console]
@="Console Here"
[HKEY_CLASSES_ROOT\Directory\shell\Console\command]
@="\"C:\\Program Files (x86)\\ConsoleZ\\Console.exe\" -d \"%V\""
@andrejd
andrejd / ds213j-mount-directory
Last active August 29, 2015 14:08
Mount temporary download folder on Synology DS213j
mount --bind /volume1/@download /volume1/your-shared-folder
Note: your-shared-folder should already exists with right permisions rwx for all to be seen in web interface