This file contains hidden or 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
# This gist contains 10 randomly selected kmers (9mers) from the reference human genome (GRCh38). | |
The following code was used to generate the output: | |
import re, sys | |
from Bio import SeqIO | |
import random | |
import time | |
k = 9 | |
n = 10 |
This file contains hidden or 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
# Step 1 | |
# Add the user with | |
sudo adduser username | |
# Ensure a temporary password is given to the account else it remains locked | |
# other options can be left blank | |
# Add the username to the AllowedUsers field in /etc/ssh/sshd_config (on the server) | |
# Next step is often easier to do as the new user to avoid messing up file ownership | |
sudo -i -u newuser |
This file contains hidden or 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
\documentclass[a4paper, oneside, 11pt]{memoir} % Doc Setup | |
\usepackage[left=1cm, right=1cm, top=1cm, bottom=1cm]{geometry} % Doc Geometry | |
\usepackage{texshade} | |
\usepackage{lscape} | |
\usepackage[active, tightpage]{preview} | |
\begin{document} | |
\begin{landscape} | |
\begin{preview} |
This file contains hidden or 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/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
OlderNewer