Propuesta para cambiar los métodos para ingresar y leer el cache, para acelerar los tiempos de lectura y no tener que leer datos vencidos.
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
| #!/bin/bash | |
| # If it redirects to http://www.facebook.com/login.php at the end, wait a few minutes and try again | |
| EMAIL='YOUR_EMAIL' # edit this | |
| PASS='YOUR_PASSWORD' # edit this | |
| COOKIES='cookies.txt' | |
| USER_AGENT='Firefox/3.5' |
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
| <!-- Colors specific to Material themes. --> | |
| <resources> | |
| <!-- RED --> | |
| <color name="red_50">#fde0dc</color> | |
| <color name="red_100">#f9bdbb</color> | |
| <color name="red_200">#f69988</color> | |
| <color name="red_300">#f36c60</color> | |
| <color name="red_400">#e84e40</color> |
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
| // check version | |
| node -v || node --version | |
| // list installed versions of node (via nvm) | |
| nvm ls | |
| // install specific version of node | |
| nvm install 6.9.2 | |
| // set default version of node |
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
| # In manage.py add | |
| # Make sure you import: from flask import url_for | |
| @app.context_processor | |
| def override_url_for(): | |
| return dict(url_for=external_url_for) | |
| def external_url_for(endpoint, **values): | |
| # Force absolute url in assets | |
| if app.config.get('FORCE_EXTERNAL_URL'): |
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
| //a quick example of how to use actual 'if' statements inside template literals, | |
| //without using ternary operator. Sometimes this is cleaner if you have complex conditionals or nested conditionals. | |
| //data param is passed in via render(template(data), this) - if not using lit-html, could be any function | |
| template = (data) => html` | |
| <div id="job_edit" class="modal"> | |
| <div class="modal-content"> | |
| ${ | |
| //we're just going to wrap an anonymous inline function here and then call it with some data | |
| (job => { //job here, is just an example, it could be anything, it's passed in below in (data.job) | |
| if(job) |
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
| <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | |
| <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | |
| <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/> | |
| <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/> | |
| <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES"/> |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the\commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
OlderNewer