$ sudo apt-get install cifs-utils
$ sudo mkdir /mnt/CIFSMOUNT
| // set-up a connection between the client and the server | |
| var socket = io.connect(); | |
| // let's assume that the client page, once rendered, knows what room it wants to join | |
| var room = "abc123"; | |
| socket.on('connect', function() { | |
| // Connected, let's sign-up for to receive messages for this room | |
| socket.emit('room', room); | |
| }); |
| 1033edge.com | |
| 11mail.com | |
| 123.com | |
| 123box.net | |
| 123india.com | |
| 123mail.cl | |
| 123qwe.co.uk | |
| 126.com | |
| 150ml.com | |
| 15meg4free.com |
| // http://pid.github.io/speakingurl/ | |
| var slug; | |
| var options = { | |
| maintainCase: true, | |
| separator: '_' | |
| }; | |
| var mySlug = require('speakingurl').createSlug(options); | |
| slug = mySlug("Bel été !"); | |
| console.log(slug); // Output: Bel_ete |
| // List all files in a directory in Node.js recursively in a synchronous fashion | |
| var walkSync = function(dir, filelist) { | |
| var fs = fs || require('fs'), | |
| files = fs.readdirSync(dir); | |
| filelist = filelist || []; | |
| files.forEach(function(file) { | |
| if (fs.statSync(dir + file).isDirectory()) { | |
| filelist = walkSync(dir + file + '/', filelist); | |
| } | |
| else { |
| sudo vim /etc/redis/redis.conf | |
| Change the following lines | |
| daemonize yes | |
| bind 127.0.0.1 | |
| dir /var/lib/redis | |
| wget https://gist.github.com/nightfox/8153193/raw/553c375424866e8d0d0bd5b48d23578c93031bce/redis-server |
| <?php | |
| /** | |
| * | |
| * Last version: https://gist.github.com/josecanciani/ff535426bd5d453ef9c2 | |
| * | |
| * Credits (adapted from): https://gist.github.com/doubleking/6117215 | |
| * | |
| **/ |
| # Original | |
| # If you modify this file then change the above line to: # Modified | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| # Certain hosts may require the following line. | |
| # If vanilla is in a subfolder then you need to specify it after the /. | |
| # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum) | |
| # RewriteBase / | |
| # The basic rewrtie rule. |
| the best way (I've found) to completely uninstall node + npm is to do the following: | |
| go to /usr/local/lib and delete any node and node_modules | |
| go to /usr/local/include and delete any node and node_modules directory | |
| if you installed with brew install node, then run brew uninstall node in your terminal | |
| check your Home directory for any local or lib or include folders, and delete any node or node_modules from there | |
| go to /usr/local/bin and delete any node executable | |
| You may need to do the additional instructions as well: | |
| sudo rm /usr/local/bin/npm |
| I use the first | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 |