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 | |
| $fileName = $_FILES['afile']['name']; | |
| $fileType = $_FILES['afile']['type']; | |
| $fileContent = file_get_contents($_FILES['afile']['tmp_name']); | |
| $dataUrl = 'data:' . $fileType . ';base64,' . base64_encode($fileContent); | |
| $json = json_encode(array( | |
| 'name' => $fileName, | |
| 'type' => $fileType, | |
| 'dataUrl' => $dataUrl, |
| #!/bin/sh | |
| echo " | |
| Cool, let's start. | |
| " | |
| src=$PWD |
| sudo apt-get install nginx | |
| sudo apt-get install spawn-fcgi | |
| apt-get install php5-cgi php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl |
| find ./ -name \*.php | xargs -n 1 php -l |
| # | |
| # File compressor plugin for jekyll | |
| # ================================= | |
| # | |
| # By [mytharcher](https://github.com/mytharcher) | |
| # 2012-05-20 | |
| # | |
| # Updated by [nicoespeon](https://github.com/nicoespeon) | |
| # 2013-04-12 | |
| # |
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 8000Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Welcome!
If you have any suggestions, please leave a comment and mention me ( @dideler ) so I get a notification.
Pull requests aren't possible with gists (yet), so comments are more useful than forking this to make changes.
Don't forget to star this gist!
| var mongoose = require('mongoose'); | |
| var http = require('http'); | |
| var JSONStream = require('JSONStream'); | |
| var PersonSchema = new mongoose.Schema({ | |
| name: String, | |
| num: Number | |
| }); | |
| mongoose.connect("mongodb://localhost:27017"); |