show current database, use a database, show all databases dbs use mydatabase show databases
show all collections, show all users for current database show collections show users
static unsafe void SumUnsafe (int[] source, int[] target) | |
{ | |
fixed (int* r = target) | |
fixed (int* xp = source) | |
{ | |
var ir = r; | |
var ixp = xp; | |
var remain = source.Length; | |
while (remain-- > 0) | |
{ |
var myPersonalEmailAddress = 'nam@catapultsports.com'; | |
var aws = require('aws-sdk'); | |
var ses = new aws.SES({apiVersion: '2010-12-01'}); | |
exports.handler = function(event, context) { | |
if (false == !!event.ClientName) | |
{ | |
context.fail('Missing clientName'); | |
return; |
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using Newtonsoft.Json; |
http://www.howtoforge.com/logical-volume-manager-how-can-i-extend-a-volume-group | |
OR | |
http://wiki.centos.org/TipsAndTricks/ExpandLV | |
------------------------- | |
/dev/sda is the hdd | |
--> partioned to /dev/sda1, /dev/sda2, /dev/sdd3, /dev/sda2 is a lvm, |
“C:\Program Files\Oracle\VirtualBox\VBoxManage.exe” setextradata global GUI/Customizations noMenuBar,noStatusBar |
vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
NM_CONTROLLED="no" <!-- ??? | |
ONBOOT="yes" <!-- should be yes | |
BOOTPROTO="static" <!-- Must be "static" | |
IPADDR=192.168.0.10 <!--- Add this | |
NETMASK=255.255.255.0 <!-- notice this also | |
GATEWAY=192.168.0.1 <!-- also this |
If you are not using NetworkManager the same result can be obtained by editing the configuration file for the network interface ( normally /etc/sysconfig/network-scripts/ifcfg-eth0 ) and changing: ONBOOT=no to ONBOOT=yes Some setups seem to also require the addition of a line: BOOTPROTO=dhcp where a DHCP setup is in play; Static IP setups would take: BOOTPROTO=static of course |
Configure VB's centOS 5 "Host-Only" network | |
1 - Config virtual machine, add a "host-only" network | |
2 - Windows sees "Virtualbox Host-Only" network as a public network, so it blocks access. | |
Follow to fix: | |
1. Open regedit and navigate to HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318} | |
2. Browse through the subkeys (named 0000, 0001, etc) until you find the subkey containing the virtualbox network adapter, this is the one where the “DriverDesc” key has “VirtualBox Host-Only Ethernet Adapter” as value. | |
3. Add a new DWORD value with a name of “*NdisDeviceType” and a value of “1” | |
4. Restart PC | |
3 - CentOS 5 iptables might have some firewall rules to prevent windows host to access services on the box; | |
So: |
log in as root and type in terminal | |
CentOS 6.4 + VBox 4.2 | |
===================== | |
Try this first: | |
yum update -y | |
... | |
yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel -y | |
... |