#1: Scan a single host or an IP address (IPv4) nmap 192.168.1.1
nmap server1.cyberciti.biz
nmap -v server1.cyberciti.biz
cd /app/utils/dse-4.0.4/ | |
bin/dse hadoop fs -mkdir ~/hadoop/wordcount/input | |
bin/dse hadoop fs -copyFromLocal ~/Downloads/obama.txt ~/hadoop/wordcount/input | |
bin/dse hadoop jar /app/utils/dse-4.0.4/resources/hadoop/hadoop-examples-1.0.4.13.jar wordcount | |
bin/dse hadoop jar /app/utils/dse-4.0.4/resources/hadoop/hadoop-examples-1.0.4.13.jar wordcount ~/hadoop/wordcount/input ~/hadoop/wordcount/output | |
bin/dse hadoop fs -ls ~/hadoop/wordcount/input | |
bin/dse hadoop fs -ls ~/hadoop/wordcount/output | |
bin/dsetool checkcfs /Users/agaikw1/hadoop/wordcount/output/part-r-00000 | |
bin/dse hadoop fs -cat /Users/agaikw1/hadoop/wordcount/output/part-r-00000 |
echo export "JAVA_HOME=\$(/usr/libexec/java_home)" >> ~/.bash_profile |
mongoimport --db playstore --collection apps --file playstore.json | |
//db - database name | |
//collection - table name | |
//file - path of the file that needs to be imported |
lsof -n -i4TCP:8080 | grep LISTEN | |
replace 8080 by the port you want to know |
jshint: { | |
options: { | |
smarttabs: true, | |
}, | |
all: [ | |
'Gruntfile.js', | |
'public/js/**/*.js', | |
'!public/js/libs/**/*.js', | |
], | |
} |
sudo xattr -d com.apple.quarantine /Applications/Google\ Chrome.app |
<?xml version='1.0' encoding='utf-8'?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
AMI ID : ami-16ff9626 | |
PORTs | |
Ports Protocol Source launch-wizard-10 | |
22 tcp 0.0.0.0/0 ✔ | |
1024-65355 tcp 0.0.0.0/0 ✔ | |
7000 tcp 0.0.0.0/0 ✔ | |
7001 tcp 0.0.0.0/0 ✔ | |
7199 tcp 0.0.0.0/0 ✔ | |
8888 tcp 0.0.0.0/0 ✔ |
void connect(Node p) { | |
if (!p) return; | |
if (p.left) p.left.nextRight = p.rightChild; | |
if (p.right) p.right.nextRight = (p.nextRight) ? p.nextRight.left : null; | |
connect(p.left); | |
connect(p.rightChild); | |
} |