Skip to content

Instantly share code, notes, and snippets.

View benhoyle's full-sized avatar

Ben Hoyle benhoyle

View GitHub Profile
@benhoyle
benhoyle / changeusername.sh
Last active May 28, 2016 12:48
Linux - Change Username
#!/bin/bash
echo "Enter the name of the OLD user and press [ENTER]: "
read olduser
echo "Enter the name of the NEW user and press [ENTER]: "
read newuser
echo "Killing all processes for $olduser"
pkill -u $olduser
@benhoyle
benhoyle / Corpus Generation - GB Excluded Subject Matter.ipynb
Last active June 16, 2016 18:51
A Juypter (iPython) note on Corpus Creation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@benhoyle
benhoyle / Modelling Claim Language.ipynb
Created October 6, 2016 14:47
A Juypter notebook experimenting with modelling patent claim language.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@benhoyle
benhoyle / datamodels.py
Created October 20, 2016 06:06
A quick skeleton file to create an SQLite database with SQL Alchemy
import os
from datetime import datetime
# Define name and path for SQLite3 DB
db_name = "filename.db"
db_path = os.path.join(os.getcwd(), db_name)
# Create DB
from sqlalchemy import create_engine
engine = create_engine('sqlite:///' + db_path, echo=False)
@benhoyle
benhoyle / index.html
Created November 17, 2016 13:15
React Table
<body>
<div class="container-fluid" id="container">
</div>
</body>
</html>
@benhoyle
benhoyle / index.html
Last active November 20, 2016 11:41
React Table - Dynamic
<body>
<div class="container-fluid" id="container">
</div>
</body>
</html>
@benhoyle
benhoyle / index.html
Created November 22, 2016 17:14
Person Data Panels
<body>
<div class="container-fluid" id="container">
</div>
</body>
@benhoyle
benhoyle / editable-react-panel.markdown
Last active November 23, 2016 13:14
Editable React Panel
@benhoyle
benhoyle / docker_install.sh
Last active February 14, 2017 10:24
Install Script for Docker on Ubuntu Trusty 14.04 - run with 'sudo bash docker_install.sh'
#!/bin/bash
apt-get update
apt-get install -y --no-install-recommends \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual
apt-get install -y --no-install-recommends \
apt-transport-https \
@benhoyle
benhoyle / Gensim Testing.ipynb
Created March 11, 2017 12:36
Juptyer Notebook covering some Gensim experiments
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.