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
configure | |
set system package repository wheezy components 'main contrib non-free' | |
set system package repository wheezy distribution wheezy | |
set system package repository wheezy url http://http.us.debian.org/debian | |
commit | |
save | |
exit | |
sudo apt-get update |
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
var products = []; | |
jQuery('.dottedlink:contains("Edit")').each(function(){ | |
var $ = jQuery; | |
console.log($(this)); | |
var row = $(this).closest('tr'); | |
products.push({ | |
'name' : row.find('td:eq(1)').text(), | |
'displayname' : row.find('td:eq(2)').text(), | |
'price' : row.find('td:eq(5)').text(), |
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
SET @LOGIN_PW = "password_goes_here"; | |
SET @USERNAME = "username_goes_here"; | |
SET @FIRSTNAME = "Test"; | |
SET @LASTNAME = "Tester"; | |
SET @EMAIL = '[email protected]'; | |
SET @SALT = "rp"; | |
SET @PASS = CONCAT(MD5(CONCAT( @SALT , @LOGIN_PW) ), CONCAT(":", @SALT )); | |
SELECT @EXTRA := MAX(extra) FROM admin_user WHERE extra IS NOT NULL; |
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 install, log into the server, download this file, and run as webapp user like: | |
# sudo -u webapp bash pma_install.sh | |
ALLOWED_IP='' # Put your public IP here... See whatismyip.com | |
PMA_VERSION=4.9.5 | |
PMA_FILE="phpMyAdmin-$PMA_VERSION-english" | |
INSTALL_IN_DIR='pma' | |
cd /var/www/html |
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
UPDATE salesrule SET is_active=0 WHERE to_date<NOW() AND is_active=1; |
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
-- Find overridden values | |
SELECT a.attribute_code, overrides.* FROM ( | |
SELECT 'datetime', entity_id, store_id, attribute_id, `value` FROM catalog_category_entity_datetime WHERE store_id!=0 UNION ALL | |
SELECT 'decimal', entity_id, store_id, attribute_id, `value` FROM catalog_category_entity_decimal WHERE store_id!=0 UNION ALL | |
SELECT 'int', entity_id, store_id, attribute_id, `value` FROM catalog_category_entity_int WHERE store_id!=0 UNION ALL | |
SELECT 'text', entity_id, store_id, attribute_id, `value` FROM catalog_category_entity_text WHERE store_id!=0 UNION ALL | |
SELECT 'varchar', entity_id, store_id, attribute_id, `value` FROM catalog_category_entity_varchar WHERE store_id!=0 | |
) AS overrides | |
LEFT JOIN eav_attribute a ON overrides.attribute_id=a.attribute_id |
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
{% assign urlParam_app = section.settings.appName | url_encode %} | |
{% assign urlParam_showNav = section.settings.includeNavBar | url_encode %} | |
{% case section.settings.loadingBehavior %} | |
{% when 'automatic' %} | |
{% assign urlParam_showLoadMore = 'no' %} | |
{% assign urlParam_autoload = 'yes' %} | |
{% when 'none' %} | |
{% assign urlParam_showLoadMore = 'no' %} | |
{% assign urlParam_autoload = 'no' %} |
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
sed -i'' -e's/active>true/active>false/' app/etc/modules/Mirasvit_*.xml |
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
import re # Regex ... sadly... | |
import os | |
# Update your WoW path here.. | |
tsm_file = "E:/World of Warcraft/_retail_/Interface/AddOns/TradeSkillMaster_AppHelper/AppData.lua" | |
desktop_path = os.path.expandvars('%USERPROFILE%/Desktop/') | |
csv_destination = desktop_path + '/tsm_data.csv' |
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
// ==UserScript== | |
// @name Computer Control Alexa Skill | |
// @namespace http://ericseastrand.com/ | |
// @version 0.6 | |
// @description Connects to a websocket server to listen for instructions like pausing media, searching youtube, etc.. | |
// @author Eric Seastrand | |
// @match https://www.youtube.com/* | |
// @grant none | |
//@downloadURL https://gist.githubusercontent.com/willcodeforfood/c2320e6673e9137a581b66314807da46/raw/computer-control.user.js | |
// ==/UserScript== |
OlderNewer