This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import requests | |
url="https://www.loom.com/share/..." | |
def extract_id_from_url(url): | |
urlRet = url.split("/")[-1] | |
if '?' in urlRet: | |
urlRet = urlRet.split("?")[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Original Stack query: | |
#https://data.stackexchange.com/stackoverflow/query/1664532/tags-taxonomy | |
import pandas as pd | |
import csv | |
dataset = pd.read_csv('<Path>/QueryResults.csv', sep=',',quoting=csv.QUOTE_ALL) | |
dedup_dataset = dataset.drop_duplicates() | |
dedup_dataset.drop('WikiBody', axis=1, inplace=True) | |
dedup_dataset['ExcerptBody'] = dedup_dataset['ExcerptBody'].replace(r'\s+|\\n', ' ', regex=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ref: https://hub.docker.com/r/apache/superset | |
docker run -d -p 8080:8088 --name superset apache/superset | |
docker exec -it superset superset fab create-admin \ | |
--username admin \ | |
--firstname Superset \ | |
--lastname Admin \ | |
--email [email protected] \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# System setup | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
# Software setup | |
sudo apt-get -y install cups | |
sudo apt-get -y install python-cups | |
sudo apt-get -y install avahi-daemon | |
sudo apt-get -y install system-config-printer | |
# Software configuration | |
sudo usermod -aG lpadmin $USER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install MongoDB Enterprise on Ubuntu | |
# https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-ubuntu/#install-mongodb-enterprise-on-ubuntu | |
# Specify MongoDB version (leave blank for latest version) | |
export MONGODB_VERSION="" | |
# Get OS Version | |
. /etc/os-release | |
echo "----> $PRETTY_NAME ($ID - $VERSION)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run \ | |
--detach \ | |
--restart always \ | |
--publish 8888:8888 \ | |
--volume=/srv/jupyter:/home/jovyan/work \ | |
--env=GEN_CERT=yes \ | |
--env=JUPYTER_ENABLE_LAB=yes \ | |
--name jupyter \ | |
jupyter/datascience-notebook start-notebook.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker create \ | |
--restart always \ | |
--publish=7473:7473 \ | |
--publish=7474:7474 \ | |
--publish=7687:7687 \ | |
--volume=/srv/neo4j/data:/data \ | |
--volume=/srv/neo4j/logs:/logs \ | |
--volume=/srv/neo4j/conf:/var/lib/neo4j/conf \ | |
--env=NEO4J_AUTH=none \ | |
--env=NEO4J_dbms_memory_pagecache_size=8G \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Some variables | |
ELASTICSEARCH_VERSION="6.5.3" | |
KIBANA_VERSION="6.5.3" | |
ELASTICSEARCH_PWD="secret" | |
#Define a "wait for service" function | |
WaitForService () { | |
while (true); |
NewerOlder