Skip to content

Instantly share code, notes, and snippets.

@c0mpiler
c0mpiler / logo_ascii.txt
Last active April 17, 2019 23:59
logo_ascii.txt
*****
+**************
********************
************************
****************************
.*******************************
************** ****************
*********** *************
********** : ***********.

Resource Visualisation - Cartography

Via VM, Local Machine or Vagrant

Prerequisites

Operating System: Ubuntu 18.04

Prepare the following information

AWS Region (e.g. ap-southeast-1)
@c0mpiler
c0mpiler / youtube-pihole-adblock.sh
Created July 28, 2020 10:55
youtube-pihole-adblock.sh
echo "created for public use and use."
echo "Start with re-install cleanup."
rm -r /etc/dnsdumpster
rm /var/www/html/youtube-ads-list.txt
rm /etc/pihole/youtube-ads.sh
echo "cleanup done."
echo "installing python-pip and dnsdumpster."
apt-get install python-pip
@c0mpiler
c0mpiler / test.js
Created August 30, 2020 14:37
test.js
console.log("testing")
#! /usr/bin/env bash
time spark-submit \
--deploy-mode client \
--master spark://spark-master:7077 \
--conf spark.driver.host=spark-master \
--conf spark.executor.memory=2g \
--conf spark.driver.memory=1g \
"$@"
import sys
from operator import add
from pyspark.sql import SparkSession
if __name__ == "__main__":
spark = SparkSession\
.builder\
.appName("PythonWordCount")\