Skip to content

Instantly share code, notes, and snippets.

View dejanmarkovic's full-sized avatar
💭
WordPress development 24/7

Dejan Markovic dejanmarkovic

💭
WordPress development 24/7
View GitHub Profile
@dejanmarkovic
dejanmarkovic / install compass WIN 7
Created April 27, 2014 01:42
install compass WIN 7
1. Install Ruby (restart machine) (http://rubyinstaller.org/)
2. gem update --system && gem install compass t
@dejanmarkovic
dejanmarkovic / Form Builder for Bootstrap
Created April 10, 2014 16:44
Form Builder for Bootstrap
Available here:
http://bootsnipp.com/forms?version=3
@dejanmarkovic
dejanmarkovic / Kill the bubbling on the click event.js
Created March 31, 2014 19:17
Kill the bubbling on the click event (use stopPropagation)
$( "p" ).click(function( event ) {
event.stopPropagation();
// Do something
});
@dejanmarkovic
dejanmarkovic / Xampp Apache won't start
Created March 18, 2014 20:55
Xampp Apache won't start (Win7)
Start Apache with the batchfile and read the error message (if any).
@dejanmarkovic
dejanmarkovic / programs open on non-existing second monitor
Created March 18, 2014 20:42
programs open on non-existing second monitor
Windows has a virtual desktop and some applications "remember" their last location based on that - in your case the PDF reader was last used viewing documents to the right-side of the virtual desktop, now no longer visible as there's no physical screen to display that part.
(There is nothing to stop an application reporting its location in a non-renderable part of the virtual desktop, this isn't Windows' fault.)
What you can do is hover over the icon in the task bar, then right-click the preview window (don't bring the jump list up, this will not help) and click Move from the context menu, then hit one of the arrow keys once - now you can move the mouse around the visible portion of the virtual desktop and the window will be stuck to the cursor until you left-click to drop it).
Source: http://www.msfn.org/board/topic/145986-programs-open-on-non-existing-second-monitor/
@dejanmarkovic
dejanmarkovic / Joomla Security resources
Created February 23, 2014 19:18
Joomla Security resources
available here
https://watchful.li/news/security-resources-for-joomla.html
@dejanmarkovic
dejanmarkovic / bitbucket deploy
Created February 23, 2014 13:55
bitbucket deploy
Scripts available here
https://github.com/codearts/BitBucket-Deploy
@dejanmarkovic
dejanmarkovic / Website Thumbnail Generator
Created February 23, 2014 13:41
Website Thumbnail Generator
available here
https://linkpeek.com/website-thumbnail-generator
@dejanmarkovic
dejanmarkovic / mixed_content_fixer.php
Created February 22, 2014 16:02
Mixed Content Fixer
<?php
/* Plugin Name: Mixed Content Fixer
* Description: This simple plug-in is replacing the url's in content from http to https.
* Author: Leo Seccia & Dejan Markovic
* Version: 2014.1.0
*/
add_filter('the_content', 'content_fix');
function content_fix($content)
{
@dejanmarkovic
dejanmarkovic / Centos get username and group for Apache
Created February 18, 2014 21:06
Centos get username and group for Apache
egrep -i '^user|^group' /etc/httpd/conf/httpd.conf