Skip to content

Instantly share code, notes, and snippets.

View AllieUbisse's full-sized avatar
🎯
Focusing

Allie .S Ubisse AllieUbisse

🎯
Focusing
View GitHub Profile
#Import All Functions
from pyspark.sql import SQLContext
from pyspark.sql import functions as F
from pyspark.sql import SparkSession
from pyspark.sql.functions import unix_timestamp, to_date, date_format, month, year, dayofyear, dayofweek, col
from pyspark.sql.types import TimestampType
from pyspark.sql import functions as F
from pyspark.sql import SparkSession
from pyspark.sql.functions import unix_timestamp, to_date, date_format, month, year, dayofyear, dayofweek, col
from pyspark.sql.types import TimestampType
@AllieUbisse
AllieUbisse / docker_installer.sh
Last active August 12, 2020 05:27
How to Automate Docker installation by executing a Bash script from GitHub Gist 📖
#!/bin/bash
##################################################################################
# ----------------------------------------------------------------
# THIS SCRIPT WILL HELP YOUR AUTOMATE THE DOCKER INSTALATION STEPS
# ----------------------------------------------------------------
# Test was ran on aws ec2 instance.
#
# AUTHOR:
@AllieUbisse
AllieUbisse / ec2run.sh
Last active August 23, 2020 02:37
Mini script to help start, stop and check the status/public ip address for your aws ec2 via aws-cli
#!/bin/bash
########################################################################################
# START, STOP or STATUS #
# ---------------------------- #
# This scrip is intended to help you start, stop or get the IP address of #
# Current running EC2. #
# This will require you to 1st configure your AWC-CLI, namualy to ensure safety #
# #
# Please read the code to ensure that It does not cause any security issues #
# #