Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <?php | |
| use \eZ\Publish\API\Repository\Values\Content\Query; | |
| $locationService = $this->getRepository()->getLocationService(); | |
| $searchService = $this->getRepository()->getSearchService(); | |
| $urlAliasService = $this->getRepository()->getUrlAliasService(); | |
| $typeService = $this->getRepository()->getContentTypeService(); | |
| $identifiers = array( 'folder', 'page', 'contact' ); | |
| $ids = array(); |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # METEOR CORE: | |
| Anywhere: Meteor.isClient | |
| Anywhere: Meteor.isServer | |
| Anywhere: Meteor.startup(func) | |
| Anywhere: Meteor.absoluteUrl([path], [options]) | |
| Anywhere: Meteor.settings | |
| Anywhere: Meteor.release | |
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)| // go on you labels pages | |
| // eg https://github.com/cssnext/cssnext/labels | |
| // paste this script in your console | |
| // copy the output and now you can import it using https://github.com/popomore/github-labels ! | |
| var labels = []; | |
| [].slice.call(document.querySelectorAll(".label-link")) | |
| .forEach(function(element) { | |
| labels.push({ | |
| name: element.textContent.trim(), |
| git diff -z --name-only --diff-filter=ACMRTUB `git merge-base HEAD master` | xargs -0 eslint |
sudo tar -xf Franz-linux-x64-0.9.10.tgz -C /opt/franzwget "https://cdn-images-1.medium.com/max/360/1*v86tTomtFZIdqzMNpvwIZw.png" -O franz-icon.png then sudo cp franz-icon.png /opt/franzsudo touch /usr/share/applications/franz.desktop then sudo vim /usr/share/applications/franz.desktoppaste the following lines into the file, then save the file:
[Desktop Entry]
Name=Franz
Comment=
| /* | |
| Go on your labels page (https://github.com/user/repo/labels) | |
| Edit the following label array | |
| or | |
| Use this snippet to export github labels (https://gist.github.com/MoOx/93c2853fee760f42d97f) | |
| and replace it | |
| Paste this script in your console | |
| Press Enter!! |
| /** | |
| * For use with https://github.com/aexmachina/factory-girl | |
| * | |
| * Helper for defining an association to a record that should only be instantiated once. | |
| * Uses sequelizes findOrCreate() to ensure the record is created on | |
| * first invocation, and reused subsequently | |
| * | |
| * NOTE: Make sure to use this within a function initialiser or the singleton | |
| * record will be created when factories are defined which may cause confusion | |
| * |