./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name
This is how to create a gpg key without any user interaction or password. This can be used in cases where the primary goal is to secure the data in transit but the gpg key can/must be stored locally without a password. An example of this is the hiera-gpg plugin which doesn't support passwords.
The below genkey-batch file will use the default which currently are RSA/RSA and 2048 bit length. See the reference link to set this to something else.
-- | |
-- Magento CE database clean-up extended | |
-- | |
-- This is an extended clean-up which will clean search, import/export, reports, etc. | |
-- | |
-- @author Constantin Bejenaru <boby@frozenminds.com> | |
-- @copyright Copyright (c) Constantin Bejenaru (http://frozenminds.com/) | |
-- @license http://www.opensource.org/licenses/mit-license.html MIT License | |
-- |
Sometimes you may have a run away reindex process that aborted due to a MySQL connection error of some sorts. It may be useful to use the following MySQL commands to aid in debugging.
Magento Enterprise labels the reindex lock via the constant REINDEX_FULL_LOCK in app/code/core/Enterprise/Index/Model/Observer.php
SELECT IS_FREE_LOCK('mydatabase_name.reindex_full')
Returns 1 is specified lock is free and can be acquired, 0 if it’s in use, NULL if an error occurs.
#!/bin/sh | |
# author: Timo Stankowitz <timo.stankowitz@gmail.com> | |
# create date: 2016-07-10 | |
# last change: 2016-07-10 | |
# with this script you can change the led color of your ubiquiti unifi AP | |
# usage: ./script.sh colorValue | |
# e.g.: ./script.sh 2 |
rem KILL WINDOWS UPDATE REBOOT WITH FIRE!!! | |
SET mwuo=Microsoft\Windows\UpdateOrchestrator | |
schtasks /End /TN "\%mwuo%\Reboot" | |
schtasks /End /TN "\%mwuo%\USO_UxBroker_Display" | |
schtasks /End /TN "\%mwuo%\USO_UxBroker_ReadyToReboot" | |
schtasks /Change /TN "\%mwuo%\Reboot" /DISABLE | |
schtasks /Change /TN "\%mwuo%\USO_UxBroker_Display" /DISABLE | |
schtasks /Change /TN "\%mwuo%\USO_UxBroker_ReadyToReboot" /DISABLE | |
icacls "%WINDIR%\System32\Tasks\%mwuo%\Reboot" /deny "*S-1-1-0:F" | |
icacls "%WINDIR%\System32\Tasks\%mwuo%\USO_UxBroker_Display" /deny "*S-1-1-0:F" |
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes |
alias kc='kubectl' | |
alias kclf='kubectl logs --tail=200 -f' | |
alias kcgs='kubectl get service -o wide' | |
alias kcgd='kubectl get deployment -o wide' | |
alias kcgp='kubectl get pod -o wide' | |
alias kcgn='kubectl get node -o wide' | |
alias kcdp='kubectl describe pod' | |
alias kcds='kubectl describe service' | |
alias kcdd='kubectl describe deployment' | |
alias kcdf='kubectl delete -f' |
# use a desktop user-agent string | |
#user-agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1" | |
# use a mobile user-agent string | |
#user-agent = "Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3" | |
# When following a redirect, automatically set the previous URL as referer. | |
#referer = ";auto" | |
referer = "http://domain.com" |