Skip to content

Instantly share code, notes, and snippets.

View uroshekic's full-sized avatar

Uroš Hekić uroshekic

View GitHub Profile
@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.
@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 / 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 / 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 / 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 / tkinter-autocomplete-listbox.py
Last active March 22, 2023 07:18
Tkinter - Autocomplete Entry Field
"""
Inspired by http://code.activestate.com/recipes/578253-an-entry-with-autocompletion-for-the-tkinter-gui/
Changes:
- Fixed AttributeError: 'AutocompleteEntry' object has no attribute 'listbox'
- Fixed scrolling listbox
- Case-insensitive search
- Added focus to entry field
- Custom listbox length, listbox width matches entry field width
- Custom matches function
"""
@uroshekic
uroshekic / my.sublime-keymap
Created April 23, 2014 07:35
Sublime Keymap
[
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" },
{ "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" },
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }
]
@uroshekic
uroshekic / laravel4-openshift-build
Created May 22, 2014 20:49
Deploying Laravel 4 to Openshift
#!/bin/bash
# http://openshift.github.io/documentation/oo_user_guide.html#the-openshift-directory
# Note: On Windows, the execute permissions of an action hook files will be lost during the git push.
# To fix this problem, you can run this command:
# git update-index --chmod=+x .openshift/action_hooks/*
cd $OPENSHIFT_DATA_DIR
if [ ! -d "repo" ]; then
echo 'Cloning repository...'
git clone -b dev https://github.com/dcrystalj/RubiKS.git repo
@uroshekic
uroshekic / setup.sh
Last active August 29, 2015 14:02
Migrating to Linux Mint 17
#### InstallEssentials Script ####
# args: Options that will be appended to every apt-get install command.
# Possible options: -y --force-yes -q -qq ...
#args="-y -qq"
args="-y"
# argsAddRepo: Options that will be appended to every add-apt-repository command.
# Possible options: -y (force yes on all confirmation questions!)
argsAddRepo="-y"
@uroshekic
uroshekic / win8-issues.md
Last active August 29, 2015 14:02
Windows 8 issues

Blurry image (in Chrome, IDLE, ...)
http://support.microsoft.com/kb/2900023
Lower the overall Windows DPI setting. To do this, open the Display item in Control Panel (or search for "dpiscaling" from the Start screen), and then adjust the slider under Change the size of all items. You may have to click to select the check box for Let me choose one scaling level for all my displays and then change the scale to 100 percent.

Wifi not working properly
Install Intel® Centrino® Wireless-N 2230 Drivers from Intel's website!

The solution is to Change your DNS to the Google Public Setting...I have done this and haven't had a problem since.  I have even confirmed this fix with my ISP and they seemed surprised that I didn't know about it.
Step 1 Control Panel---Network and Sharing Center---Change adapter settings