I hereby claim:
- I am wookiecooking on github.
- I am wookiecooking (https://keybase.io/wookiecooking) on keybase.
- I have a public key ASBAhHU9JmF0nnwFRk9wH91mGV_F-z909G4s7ykMQuEHTAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| $(".drydepot-product-fitter").steps({ | |
| headerTag: "h3", | |
| bodyTag: "section", | |
| transitionEffect: "slideLeft", | |
| autoFocus: true, | |
| onStepChanging: function (event, currentIndex, newIndex) | |
| { | |
| if (currentIndex > newIndex) { | |
| return true; | |
| } |
| server { | |
| listen 80; | |
| server_name ~^(www\.)?(?<sname>.+?)$; | |
| root /var/www/html/$sname; | |
| index index.html; | |
| charset utf-8; | |
| location = /favicon.ico { access_log off; log_not_found off; } | |
| location = /robots.txt { access_log off; log_not_found off; } | |
| access_log /var/log/nginx/$sname-access.log; | |
| error_log /var/log/nginx/$sname-error.log debug; |
| var app = require('express')(); | |
| var bodyParser = require('body-parser'); | |
| var _ = require('lodash') | |
| var mongoose = require('mongoose'); | |
| var Schema = mongoose.Schema | |
| mongoose.connect('mongodb://127.0.0.1:27017/test'); | |
| var CatSchema = new Schema({ | |
| name: String, |
| <? | |
| set_time_limit(0); | |
| ################################# | |
| ################################# | |
| ################################# | |
| # FTP Upload changes from git-diff | |
| # by Marco | |
| # 2012 |
I hereby claim:
To claim this, I am signing this object:
| git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
| var _ = require('lodash'); | |
| var test = { a:'This will be a string' }; | |
| var result = {a: String }; | |
| _.map(test, function(v, k) { | |
| result[k] = v; | |
| }); |
| router.post('/login', function(req, res) { | |
| var client = xmlrpc.createClient({ host: 'https://wordpress.url/xmlrpc.php', port: 80, path: '/'}) | |
| client.methodCall('external.login', [req.body.username, req.body.password], function (error, value) { | |
| if(value) { | |
| req.session.user_id = value; | |
| res.send('success'); | |
| } else { | |
| res.send('Error connecting to server'); | |
| } | |
| }) |
| # Monitoring raw hard drives in virtualbox | |
| VBoxManage internalcommands createrawvmdk -filename ~/win7.vmdk -rawdisk /dev/sda -register |