First, start powershell
C:\Users\tester>powershell
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
Next, create remote sesssion
| mysql> create user 'user'@'host_fqdn_or_ip' identified by 'secret_password'; | |
| Query OK, 0 rows affected (0.07 sec) | |
| mysql> grant select on database_name.* to 'user'@'host_fqdn_or_ip'; | |
| Query OK, 0 rows affected (0.00 sec) | |
| mysql> flush privileges; | |
| Query OK, 0 rows affected (0.03 sec) | |
| mysql> set session old_passwords=0; set password for 'user'@'host_fqdn_or_ip' = password('secret_password'); |
| function showStuff(id, text, btn) { | |
| //show | |
| document.getElementById(id).style.display = 'block'; | |
| //hide | |
| document.getElementById(text).style.display = 'none'; | |
| //hide | |
| btn.style.display = 'none'; | |
| } |
| Tail = require('tail').Tail; | |
| tail = new Tail("fileToTail"); | |
| tail.on("line", function(data) { | |
| console.log(data); | |
| }); |
| Create the remote repository, and get the URL such as | |
| [email protected]:/youruser/somename.git or https://github.com/youruser/somename.git | |
| If your local GIT repo is already set up, skips steps 2 and 3 | |
| Locally, at the root directory of your source, git init | |
| Locally, add and commit what you want in your initial repo |
| Use a module. Check out perldoc perlmod and Exporter. | |
| In file Foo.pm | |
| package Foo; | |
| use strict; | |
| use warnings; | |
| use Exporter; | |
| our @ISA= qw( Exporter ); |
| chage -I -1 -m 0 -M 99999 -E -1 username |
| var sql = require('mssql'); | |
| //npm install tedious | |
| //npm install mssql | |
| config = { | |
| driver: 'tedious', | |
| server: 'db_server', | |
| user: 'user', | |
| password: 'password', | |
| port: '1433', |
| export MONGO_URL=mongodb://localhost:27017/<dbname> | |
| export PORT=<server_port> | |
| export ROOT_URL=http://sub.example.com/ | |
| forever start bundle/main.js |
| Most of the answers here are like shooting a fly with a canon !! | |
| $('#thumbs img').click(function(){ | |
| $('#largeImage').attr('src',$(this).attr('src').replace('thumb','large')); | |
| $('#description').html($(this).attr('alt')); | |
| }); | |
| /* this is all you need .. 4 lines of code . | |
| look here : gallery-in-4-lines - http://workshop.rs/demo/gallery-in-4-lines/ |
First, start powershell
C:\Users\tester>powershell
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
Next, create remote sesssion