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
[edxapp : add gunicorn configuration files] ******************************* | |
ok: [localhost] => (item=lms) | |
ok: [localhost] => (item=cms) | |
TASK [edxapp : enable {{ item }} supervisor script] **************************** | |
ok: [localhost] => (item=lms) | |
ok: [localhost] => (item=cms) | |
TASK [edxapp : enable edxapp supervisor script] ******************************** | |
ok: [localhost] |
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
function getDisplayedPages(currentPage, pagesArr) { | |
/* | |
Will return 5 total pages, with current page in the middle. | |
*/ | |
var lastPage = pagesArr.length; | |
var first = (Math.sign(currentPage - 3) === -1) ? 0 : currentPage - 3; | |
var last = currentPage + 2; | |
if (currentPage > lastPage) return; | |
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 run: | |
# curl -sSL https://gist.githubusercontent.com/andrewelkins/1adc587feb610f586f8f40b50b7efc3a/install-docker-on-linux-mint-18.sh | bash -x | |
########################################## | |
# Kernel version http://stackoverflow.com/a/4024263 | |
versionlte() { | |
[ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ] | |
} | |
versionlt() { |
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
> $ gulp ⬡ 8.9.4 [±master ●●] | |
[07:03:45] Using gulpfile /media/dehamzah/ssd/projects/projects/bps-satu-data/satudata-mobile-ionic/gulpfile.js | |
[07:03:45] Starting 'sass'... | |
[07:03:45] Starting 'index'... | |
[07:03:45] Starting 'scripts'... | |
[07:03:45] Starting 'styles'... | |
[07:03:45] Starting 'clean-templates'... | |
[07:03:45] Starting 'clean-images'... | |
[07:03:45] Starting 'lib'... | |
info: Preening: ngCordova |
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
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true | |
}, | |
"plugins": [ | |
"react", | |
"react-native" | |
], | |
"ecmaFeatures": { |
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
# Login | |
$ mysql -u root -p | |
# Check privileges | |
$ SHOW GRANTS FOR 'read-only_user_name'@'%'; | |
# Remove the privileges if any | |
$ REVOKE ALL PRIVILEGES ON database_name.* FROM 'read-only_user_name'@'%'; |
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
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 |
run this to debug available simulator
xcrun simctl list --json devices
basicly this json output is what react-native run-ios parse to find the matching simulator.
in robots.txt
User-agent: *
Disallow: /
this will not allow the crawler access your website, will work if your web haven't been indexed.