Skip to content

Instantly share code, notes, and snippets.

View uroshekic's full-sized avatar

Uroš Hekić uroshekic

View GitHub Profile
@uroshekic
uroshekic / FollowMy.TV AutoSearch
Last active July 22, 2017 17:57
Automatically adds links to search engines for each new episode. FollowMy.TV
// ==UserScript==
// @name Followmy.tv AutoSearch
// @namespace followmy
// @version 0.1
// @description Automatically adds links to search engines for each new episode.
// @match http://followmy.tv/*
// @copyright 2013+, Uros Hekic ( http//urosh.net/ )
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
// ==/UserScript==
@uroshekic
uroshekic / MyEpisodes.com AutoSearch
Last active December 30, 2015 05:48
Automatically adds links to search engines for each new episode. MyEpisodes.com
// ==UserScript==
// @name MyEpisodes.com AutoSearch
// @namespace myepi
// @version 0.1
// @description Automatically adds links to search engines for each new episode.
// @match http://www.myepisodes.com/views.php
// @copyright 2013+, Uroš Hekić
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
// ==/UserScript==
@uroshekic
uroshekic / Pin Eclipse
Created November 5, 2013 13:19
How to pin Eclipse to taskbar
http://androblip.huiges.nl/2011/10/11/how-to-get-eclipse-to-pin-to-taskbar-in-windows-7/
@uroshekic
uroshekic / Partition size (win)
Last active December 25, 2015 10:19
Partition size on Windows 7
http://superuser.com/questions/217012/what-size-should-i-make-a-partition-to-appear-as-a-standard-number-e-g-100gb/217069#217069
There's a difference between the partition size that is specified in MB in the installer, and the disk capacity that is shown in Windows Explorer. That difference is the size of one block or "allocation unit", which is 4KB for any NTFS volume over 2GB; and that block is the first block on the partition, to hold the boot sector of the disk (512 bytes). The rest of the block is unused, so that all blocks are "aligned" on the disk.
So if you declare a partition to be 20480 MB, that's exactly 20.00 GB (or GiB, for sticklers). But the resulting disk capacity will be (20480 MB - 4 KB, shown as) 19.99 GB. It appears that Windows Explorer does not round up or to nearest, but truncates after two decimal places at most.
So you can create a partition that is one MB larger than the desired size, and after 4 KB is subtracted for the boot block, the disk capacity should be shown as you want. B
@uroshekic
uroshekic / File types - program association
Created October 10, 2013 15:03
Remove program association for file types (Windows 7)
From http://superuser.com/questions/49615/how-do-you-remove-a-default-program-association-for-file-types-in-windows-7
Find the file extension in question under this key in the registry:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
Deleting the sub-key with the same name as the extension you want to un-associate will delete the default program association. You'll have to kill and restart explorer.exe for this to take effect.
You may also need to remove the same sub key from HKEY_CLASSES_ROOT as well.