Skip to content

Instantly share code, notes, and snippets.

View tommypratama's full-sized avatar
💭
Doing something useful

Tommy Pratama tommypratama

💭
Doing something useful
View GitHub Profile
@tommypratama
tommypratama / Capstone Project.ipynb
Created January 7, 2019 09:22
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tommypratama
tommypratama / Install AWS CLI on Mac
Created February 2, 2019 00:22
Install AWS CLI on Mac
# Install via bundle
1. curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
2. unzip awscli-bundle.zip
3. sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
# Check Awscli Version
4. aws --version
# Setup Datalab
# Default
datalab create mydatalabvm --zone <ZONE>
# Custome
# Check Machine Type > https://cloud.google.com/compute/docs/machine-types
# Check Zones List via Shell > gcloud compute zones list
datalab create mydatalabvm --zone asia-southeast1-c --machine-type n1-standard-16
# Reconnect using the command
1. Choose Aws AMI
2. chmod 400 awsami.pem
3. sudo yum update
4. sudo yum install yum-utils
@tommypratama
tommypratama / useful_linux_command.md
Last active March 29, 2019 01:48
Linux Command for Data Science

Most Important Linux Commands

  • ls -l
  • cd
  • mv
  • mkdir
  • touch
  • rm -rf
  • man cd
  • uname -a
@tommypratama
tommypratama / git-lfs.md
Last active May 9, 2019 14:27
Working with Large Files on Github

GIT LFS ( Git Large Files )

  1. Install Git LFS

  2. Setting Configuration Git Lfs

    • git lfs install
  3. Tambahkan konfigurasi files besar yang ingin di upload, otomatis menambahkan .gitattributes

  • git lfs track '*csv'
@tommypratama
tommypratama / setup_pyspark_and_java.md
Last active February 17, 2019 18:23
Instalation PySpark and Java on CentOS

Install Java Openjdk

  1. sudo yum install java-1.8.0-openjdk
  2. java -version
  3. sudo /usr/sbin/alternatives --config java
    • Choose >> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64
  4. nano ~/.bashrc
  5. Append the following line and save :
  • export JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64/jre"
@tommypratama
tommypratama / markdown.md
Last active March 1, 2019 18:28
Markdown cheatsheet and sample

Markdown Example

This is the simplest and slickest online Markdown editor.
Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.

Getting started

How?

@tommypratama
tommypratama / heroku.md
Last active February 18, 2019 10:19
Heroku CLI releases cheat sheet

Heroku CLI releases cheat sheet

@tommypratama
tommypratama / vscode.md
Created February 20, 2019 11:21
"Tips and Tricks" lets you jump right in and learn how to be productive with Visual Studio Code.

be productive with Visual Studio Code

Keyboard Shortcut: ⌘K ⌘S