This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# solves camera issues | |
# failed to open vchiq instance | |
echo 'SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"' > /etc/udev/rules.d/10-vchiq-permissions.rules | |
usermod -a -G video pi | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Sub CreateMagentoImport() | |
' | |
' @author Derek Marcinyshyn <[email protected]> | |
' @date July 9, 2014 | |
' @updated July 15, 2014 | |
' @version 1.0.4 | |
' !!!!!!!!!!!!!!!!!!!!!!!!!! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub CreateMagentoImport() | |
' | |
' Create Magento Import from ChainDrive export | |
' | |
' @author Derek Marcinyshyn <[email protected]> | |
' @date July 2, 2014 | |
' @version 5 | |
Dim sourceSku As Long | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To edit DocumentRoot go to /var/cpanel/userdata/{USERNAME} | |
# Select the domain file to edit | |
# You will see | |
documentroot: /home/{USERNAME}/public_html | |
# also change | |
scriptalias: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# rename image sequenc | |
# | |
# @author Derek Marcinyshyn <[email protected]> | |
# @date August 28, 2013 | |
i=1 | |
ORIGINAL="/home/selkirk/video/working/images/" | |
RENDER="/home/selkirk/video/working/render/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#mapCanvas img { | |
max-width:none; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* touchscreen fix */ | |
Modernizr.load({ | |
test: Modernizr.details, | |
nope: '/wp-content/themes/revelstokechamber/assets/js/vendor/jquery.details.min.js', | |
complete : function () { | |
$(document).ready(function(){touchFix();}); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( ‘admin_init’, ‘my_remove_menu_pages’ ); | |
function my_remove_menu_pages() { | |
global $menu; | |
global $current_user; | |
get_currentuserinfo(); | |
if($current_user->user_login != ‘ADMINNAME’){ | |
remove_menu_page(‘edit.php’); | |
remove_submenu_page(‘users.php’,'role-management.php’); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* RSS2 Feed Template for displaying RSS2 Posts feed. | |
* | |
* @package WordPress | |
*/ | |
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . Ai1ec_Meta::get_option( 'blog_charset' ), true); | |
echo '<?xml version="1.0" encoding="', |