Skip to content

Instantly share code, notes, and snippets.

View limitpointinf0's full-sized avatar
:atom:
Experimenting

Limitpointinf0 limitpointinf0

:atom:
Experimenting
View GitHub Profile

Keybase proof

I hereby claim:

  • I am limitpointinf0 on github.
  • I am limitpointinf0 (https://keybase.io/limitpointinf0) on keybase.
  • I have a public key ASBYxq-pzKywV-xkIx5_iEl0bcLtxQlxbXDI45Skwun86Ao

To claim this, I am signing this object:

#Uninstall old versions
sudo apt-get remove docker docker-engine docker.io containerd runc
#Install Docker CE
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
@limitpointinf0
limitpointinf0 / ds_docker_compose.yml
Created May 5, 2019 11:08
data science platform with docker compose
version: "3"
services:
jupyter:
container_name: "ds_jupyter"
image: jupyter/scipy-notebook
ports:
- 8888:8888
superset:
@limitpointinf0
limitpointinf0 / q_learn.py
Last active July 8, 2018 07:30
maze solving with q-learning
import numpy as np
import itertools
import math
import time
import os
def make_sqworld(num_loc=None):
dim = int(math.sqrt(num_loc))
locs_arr=np.array(list(range(num_loc)))
return locs_arr.reshape((dim,dim))
@limitpointinf0
limitpointinf0 / .gitignore
Last active July 27, 2018 11:30
Run John Conway's Game of Life in the console!
lifegame/
@limitpointinf0
limitpointinf0 / for_slaves.sh
Last active August 23, 2018 02:07
Install Spark on Debian Stretch
#!/bin/sh
sudo apt-get update
sudo mkdir /usr/local/java
sudo mv ~/jdk-8u171-linux-x64.tar.gz /usr/local/java/
cd /usr/local/java/
sudo tar zxvf jdk-8u171-linux-x64.tar.gz
cd ~
export PATH=$PATH:/usr/local/java/jdk1.8.0_171/bin
wget https://downloads.lightbend.com/scala/2.12.6/scala-2.12.6.tgz
tar xvf scala-2.12.6.tgz
@limitpointinf0
limitpointinf0 / tracker.py
Last active June 16, 2018 04:48
Track device presence on your LAN. (requires arp-scan)
import os
from datetime import datetime, timedelta
import time
import subprocess
import re
if os.geteuid() != 0:
exit("You need to have root privileges to run this script.")
class DeviceTracker():
@limitpointinf0
limitpointinf0 / send_sms.py
Last active June 9, 2018 02:54
Send an SMS using Twilio API
# Import the module
import subprocess
class TextMessage():
def __init__(self, url, from_, message, creds, number):
self.tool = 'curl'
self.url = url
self.from_ = 'From=%s' % from_
self.message = 'Body=%s' % message
@limitpointinf0
limitpointinf0 / eda_text.py
Created May 7, 2018 02:24
Text Cleaning and EDA
"""The following script contains two functions. One for creating a wordcloud from a string. The second is for cleaning text found
in a dataframe column."""
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
import os
from wordcloud import WordCloud, STOPWORDS
import string
import matplotlib.pyplot as plt
from nltk.corpus import stopwords
@limitpointinf0
limitpointinf0 / img_cnn.py
Created May 6, 2018 01:27
Image Classification with Keras CNN
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
import os
from PIL import Image
import matplotlib.pyplot as plt
from matplotlib.pyplot import imshow
from skimage import transform
from sklearn.model_selection import train_test_split
import traceback
from sklearn.utils import shuffle