Skip to content

Instantly share code, notes, and snippets.

View washcycle's full-sized avatar
🎯
Focusing

Matt washcycle

🎯
Focusing
View GitHub Profile
@washcycle
washcycle / remove_stopwords.py
Created February 25, 2020 21:42
Remove Stop Words From Text Python
sentences = []
labels = []
with open("/text.csv", 'r') as csvfile:
csvfile.readline()
for line in csvfile.readlines():
row = line.split(',')
labels.append(row[0])
sentence = row[1].split()
sentences.append(' '.join([w for w in sentence if not w in stop_words]))
@washcycle
washcycle / docker-compose.yml
Created June 19, 2019 21:24 — forked from pantsel/docker-compose.yml
example docker-compose.yml for kong, postgres and konga
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong
@washcycle
washcycle / gist:7477cf9769c571208aa999f435faefae
Created September 28, 2018 13:00 — forked from Bouke/gist:10454272
Install FreeTDS, unixODBC and pyodbc on OS X

First, install the following libraries:

$ brew install unixodbc
$ brew install freetds --with-unixodbc

FreeTDS should already work now, without configuration:

$ tsql -S [IP or hostname] -U [username] -P [password]
locale is "en_US.UTF-8"

locale charset is "UTF-8"

@washcycle
washcycle / cuda_9.0_cudnn_7.0.sh
Created August 20, 2018 23:29 — forked from ashokpant/cuda_9.0_cudnn_7.0.sh
Install CUDA Toolkit v9.0 and cuDNN v7.0 on Ubuntu 16.04
#!/bin/bash
# install CUDA Toolkit v9.0
# instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb)
CUDA_REPO_PKG="cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64-deb"
wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/${CUDA_REPO_PKG}
sudo dpkg -i ${CUDA_REPO_PKG}
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get -y install cuda-9-0
@washcycle
washcycle / nvidia.sh
Created June 14, 2018 12:33 — forked from anubhavsinha/nvidia.sh
Nvidia Driver installation on EC2 RHEL 7 GPU instance
yum groupinstall "Development Tools"
yum install kernel-devel kernel-headers dkms
yum install pciutils
lspci -nn | grep VGA # to check your NVIDIA product version
yum update
sudo sh NVIDIA-Linux-x86_64-340.32.run --kernel-source-path /usr/src/kernels/3.10.0-123.6.3.el7.x86_64
@washcycle
washcycle / Install NVIDIA Driver and CUDA.md
Last active June 14, 2018 01:58 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@washcycle
washcycle / .bash_profile
Last active April 8, 2018 02:36
AWS CLI Configuration Switch Bash Script
# configure aws credentials while on corporate network
function aws_config_work(){
# assumes $WORK_AWS_ACCESS_KEY, $WORK_AWS_SECRET_ACCESS_KEY, $WORK_AWS_DEFAULT_REGION, $CA_PATH
# are user or system evironment variables
# environment variables are UPPERCASE even in git bash
export AWS_ACCESS_KEY_ID=$WORK_AWS_ACCESS_KEY
export AWS_SECRET_ACCESS_KEY=$WORK_AWS_SECRET_ACCESS_KEY
export AWS_DEFAULT_REGION=$WORK_AWS_DEFAULT_REGION
export AWS_CA_BUNDLE=$CA_PATH
@washcycle
washcycle / .bash_profile
Last active April 8, 2018 02:36
Corporate Proxy Bash Script
# configure proxy for git while on corporate network
# From https://gist.github.com/garystafford/8196920
function proxy_on(){
# assumes $USERDOMAIN, $USERDNSDOMAIN, $CA_PATH
# are existing Windows system-level environment variables
# assumes $PROXY_SERVER, $PROXY_PORT
# are existing Windows current user-level environment variables (your user)
# environment variables are UPPERCASE even in git bash
@washcycle
washcycle / waya-dl-setup.sh
Created December 6, 2017 18:31 — forked from mjdietzx/waya-dl-setup.sh
Install CUDA Toolkit v8.0 and cuDNN v6.0 on Ubuntu 16.04
#!/bin/bash
# install CUDA Toolkit v8.0
# instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network))
CUDA_REPO_PKG="cuda-repo-ubuntu1604_8.0.61-1_amd64.deb"
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG}
sudo dpkg -i ${CUDA_REPO_PKG}
sudo apt-get update
sudo apt-get -y install cuda