Skip to content

Instantly share code, notes, and snippets.

@ankit-rakha
ankit-rakha / checkSFTP
Created September 8, 2014 06:35
check if SFTP is enabled
check the SSH configuration file (in most cases /etc/ssh/sshd_config) and make sure the following line is present and not commented out:
Subsystem sftp /usr/lib/openssh/sftp-server
@ankit-rakha
ankit-rakha / vertica_copy_command
Last active August 29, 2015 14:06
Vertica COPY command to load data
A Vertica COPY command to load data into the public.dummyTable table from data file dummyTable.psv, which is delimited with a "|" and all exceptions and rejected records are written into the specified log - dummyTable.exceptions & dummyTable.rejections respectively, and the DIRECT option loads data directly into the ROS.
COPY public.dummyTable FROM '/home/dummyTable/dummyTable.psv' DELIMITER '|' EXCEPTIONS '/home/dummyTable/dummyTable.exceptions' REJECTED DATA '/home/dummyTable/dummyTable.rejections' DIRECT NULL '';
@ankit-rakha
ankit-rakha / AWS CLI
Last active April 11, 2016 08:55
AWS CLI
cd /tmp/
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install awscli
pip install --upgrade awscli