Set WAN DHCP client Set LAN static IP and subnet
cat /etc/network/interfaces
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
Set WAN DHCP client Set LAN static IP and subnet
cat /etc/network/interfaces
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
pushFileToStorage(fileUpload: FileUpload) { // Pass in a callback as argument | |
const filePath = `${this.basePath}/${fileUpload.file.name}`; | |
const storageRef = ref(this.storage, filePath); | |
const uploadTask = uploadBytesResumable(storageRef, fileUpload.file); | |
uploadTask.on('state_changed', | |
(snapshot) => { | |
// Observe state change events such as progress, pause, and resume | |
// Get task progress, including the number of bytes uploaded and the total number of bytes to be uploaded |
{% capture iframe_content %} | |
<body onload="resizeIframe()"> | |
{{ bit_widget_html }} | |
</body> | |
{% endcapture %} | |
<script> | |
/* | |
// ==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== |
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' |
sed -i'' -e's/active>true/active>false/' app/etc/modules/Mirasvit_*.xml |
{% 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' %} |
-- 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 |
UPDATE salesrule SET is_active=0 WHERE to_date<NOW() AND is_active=1; |
## 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 |