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
apt-get update && apt-get install curl wget build-essential cmake ninja-build unzip -y && wget https://github.com/oobabooga/text-generation-webui/releases/download/installers/oobabooga_linux.zip && unzip oobabooga_linux.zip && cd oobabooga_linux && echo "D" | bash start_linux.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
### A Pluto.jl notebook ### | |
# v0.17.1 | |
using Markdown | |
using InteractiveUtils | |
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error). | |
macro bind(def, element) | |
quote | |
local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end |
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
pip install --upgrade pip virtualenv six packaging appdirs | |
pip install --upgrade setuptools | |
pip install matrix-synapse | |
mkdir ~/synapse | |
pushd ~/synapse | |
python -m synapse.app.homeserver --server-name matrix.koski.co --config-path homeserver.yaml --generate-config --report-stats=yes | |
# Edit ~/synapse/homeserver.yaml |
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
def check_for_dependencies(): | |
# Dependency on python should be good if we make it this far. Python 3.7+ required for this script. | |
all_good = True | |
try: | |
# Check for requests, which this script uses | |
import requests | |
print("Found requests") | |
except: | |
print("Please install requests python library, `pip install requests`.") | |
all_good = False |
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
0xe05F58C77860217dC073F45b12cB8238C14C58dB |
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
import nltk | |
from nltk.collocations import * | |
import re, string, time, operator | |
start_time = time.time() | |
bigram_measures = nltk.collocations.BigramAssocMeasures() | |
test = "word" | |
corpus = nltk.corpus.PlaintextCorpusReader('/data/', '.*') | |
rawtext = corpus.words('biuw.txt') |
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 | |
# Run this on This AMI on AWS: | |
# https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#LaunchInstanceWizard:ami=ami-b36981d8 | |
# You should get yourself a fully working GPU enabled tensorflow installation. | |
cd ~ | |
# grab cuda 7.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
/** | |
* Created by maccam912 on 11/9/15. | |
*/ | |
import org.apache.spark | |
import org.apache.spark.SparkContext | |
import org.apache.spark.SparkContext._ | |
import org.apache.spark.SparkConf | |
import org.apache.spark.rdd.RDD | |
import org.apache.spark. |
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
apt-get install git curl wget python-dev python-virtualenv gfortran libc-bin build-essential unzip zlib1g-dev zip oracle-java8-installer python-numpy swig python-dev |
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/sh | |
set -e -x | |
sed -i 's/^127.0.1.1.*$//g' /etc/hosts | |
echo "$(curl icanhazip.com) $(hostname)" >> /etc/hosts |
NewerOlder