-
Create a backup copy of your site and your database!
-
I reccomend starting with a plugin that manages all of this stuff for you, but if it doesn't work keep reading! :D
-
Add these lines to to
wp-config.php
filedefine('FORCE_SSL_ADMIN', true); if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';
This file contains 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 AliExpress Orders Exporter | |
// @namespace https://gist.github.com/ | |
// @version 0.4 | |
// @description Retrieve Aliexpress order information and export as CSV via clipboard | |
// @author You | |
// @match https://trade.aliexpress.com/orderList.htm* | |
// @grant unsafeWindow | |
// @grant GM_xmlhttpRequest | |
// @grant GM_setClipboard |
This file contains 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
--Check activity tracker | |
SELECT * | |
FROM pg_stat_activity | |
--Check activity tracker by query time | |
SELECT | |
(CURRENT_TIMESTAMP - query_start) as query_time | |
, * | |
-- ^^ SQL protip: separating SELECT parameters by linebreaks and putting the | |
-- comma first lets you quickly comment out single parameters |
- How to Rebase a Pull Request : https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request
- The Node.js Event Loop, Timers, and process.nextTick() : https://github.com/mozilla/spidernode/blob/master/doc/topics/the-event-loop-timers-and-nexttick.md
Here there are some examples of git commands that I use often.
Not all commands written here are git commands, but all of them are related to git. Please refer to the documentation for more details.
#####Set your details
git config --global user.name "John Doe"
git config --global user.email "john@example.com"
Use --global
to set the configuration for all projects. If git config
is used without --global
and run inside a project directory, the settings are set for the specific project.
This file contains 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 a new container image: | |
$ https://hub.docker.com/ | |
# To show all the images: | |
$ docker images | |
# To tag a new image: | |
$ docker tag [imageID] [pathToRepoImage]:[version] | |
# $ docker tag f28ca8672301 mrtrom/docker-whale:latest |
This file contains 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
$ [command] &> /some/place/copy-db.log | |
# More information at http://www.tldp.org/LDP/abs/html/io-redirection.html |
NewerOlder