define('WP_REDIS_HOST','127.0.0.1');
//define('WP_REDIS_PASSWORD','authpassword');
define('WP_REDIS_DATABASE',0); // Set to different number for each WP Install
define('WP_REDIS_IGNORED_GROUPS',array('comments','posts','post_meta','counts')); // -> make sure this group not cached
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
stop-writes-on-bgsave-error no | |
#save 900 1 | |
#save 300 10 | |
#save 60 10000 | |
appendonly no | |
maxmemory-policy allkeys-lru |
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
angular.element(document.getElementsByClassName('product-card')).scope().$last | |
angular.element(document.getElementById('product-results-wrapper')).scope().products.data |
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
#!/bin/bash | |
killall -9 synergyc | |
synergyc --daemon --display :0.0 --name T440-1 192.168.1.74 | |
synergyc --daemon --display :0.1 --name T440-2 192.168.1.74 |
- Install
scoop
- install sudo openssh rsync
- Install
Virtualbox 5.0
- install virtualbox guest addition
- Install
Vagrant
- git clone https://github.com/r8/vagrant-lamp
- add
local.dev
to windows hostc:\Windows\System32\drivers\etc\host
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
$dir = plugin_dir_path( __FILE__ ); | |
global $wp_filesystem; | |
// Initialize the WP filesystem, no more using 'file-put-contents' function | |
if (empty($wp_filesystem)) { | |
require_once (ABSPATH . '/wp-admin/includes/file.php'); | |
WP_Filesystem(); | |
} |
Taken from : https://www.shiftedup.com/2014/11/13/how-to-bulk-remove-files-from-slack
- Get a token from the Slack API page (https://api.slack.com/docs/oauth-test-tokens?)
- Copy the script above and save it as slack.py
- Plug your token in the code (using the _token variable)
- Install Python in your system if you don't have it already
- Install the (awesome) requests library
- Execute your script by running "python slack.py" (without the quotes)
- https://github.com/todiadiyatmo/laravel-5-1-boilerplate
- https://github.com/todiadiyatmo/laravel-5.1-bootstrap-crud-sample
- (JWT) https://scotch.io/tutorials/token-based-authentication-for-angularjs-and-laravel-apps
- https://github.com/kodeine/laravel-meta
- https://github.com/todiadiyatmo/taxonomy
- https://github.com/Torann/laravel-geoip
- https://github.com/bradcornford/Googlmapper#location
- http://www.piedcode.com/tutorial-creating-a-webapp-with-google-maps-and-laravel/
- https://github.com/laralib/l5scaffold/tree/laravel-5.1
- http://learninglaravel.net/laravel-5-rest-api-basic-authentication-tutorial
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
#! /bin/bash | |
# http://askubuntu.com/questions/140942/take-a-screenshot-of-webpage-at-intervals | |
while true; do | |
shutter --web="http://www.hipwee.com" -e | |
sleep 5m | |
done |