Skip to content

Instantly share code, notes, and snippets.

View necrolyte2's full-sized avatar

Tyghe Vallard necrolyte2

View GitHub Profile
@necrolyte2
necrolyte2 / README.md
Created December 16, 2018 03:09
Mute Microphone

Quick and dirty way to mute your mic on Windows

  1. Put this script somewhere(Maybe my documents)
  2. Create a shortcut to it
  3. Right click shortcut and select properties
  4. Click in the shortcut box. Press your key combination you want to activate the script(I used CTRL+F7)
  5. Click OK(Or apply then ok if you like to click 2x :) )
#!/bin/bash
# The ip to ssh to to have remote ssh setup on
remote_ip=$1
# The remote username to ssh as
remote_user=$2
# The port to connect to the remote host on
remote_port=${3:-22}
# The port to open on the remote host to listen on
remote_listen_port=${4:-2222}
@necrolyte2
necrolyte2 / packer_output.txt
Created April 7, 2017 14:13
Packer ssh_timeout issue
qemu output will be in this color.
==> qemu: Downloading or copying ISO
 qemu: Downloading or copying: https://binrepo.target.com/artifactory/cpe-image-build-virtmetal/openstack/tgt-cpe-base-os/tgt-cpe-base-os-v1.0.1.qcow2
==> qemu: Copying hard drive...
==> qemu: Resizing hard drive...
==> qemu: Found port for communicator (SSH, WinRM, etc): 2226.
==> qemu: Looking for available port between 5900 and 6000 on 127.0.0.1
==> qemu: Starting VM, booting disk image
 qemu: WARNING: The version of qemu on your host doesn't support display mode.
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "test"
},
"host": "localhost",
"basePath": "/",
"schemes": [
"http"
#!/usr/bin/env python
from path import Path
import sh
import argparse
from functools import partial
import string
def parse_args():
parser = argparse.ArgumentParser(
#!/usr/bin/env python
from path import Path
import argparse
import sys
def parse_args():
parser = argparse.ArgumentParser(
description='Given a MiSeq run path, create directories for all samples' \
' and symlink or copy the fastq.gz files into them for each sample'
@necrolyte2
necrolyte2 / ngs_mapper.sh
Created March 31, 2016 02:57
ngs mapper profile for all users
#/etc/profile.d/ngs_mapper.sh
export PATH=/opt/ngs_mapper/miniconda/bin:$PATH
@echo off
REM srcdir is the path where MiSeq puts completed runs
set srcdir=D:\Illumina\MiSeqOutput
REM dstdir is the path you want to copy the latest run to
set dstdir=R:\TMPDIR\RUNS\
REM this ensures that the server is mounted as V: drive
mount -o fileaccess=777 -o casesensitive=yes -o sec=sys 141.236.56.110:/vol/VD_Research R:
@necrolyte2
necrolyte2 / configuration.yaml
Created March 3, 2016 13:26
Examples for redmine email setup
# config/configuration.yaml
# After you change this file you need to restart apache/passenger
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
address: "smtp.gmail.com"
port: 587
domain: "smtp.gmail.com" # 'your.domain.com' for GoogleApps
from Bio.SeqRecord import SeqRecord
from Bio.Seq import Seq
from Bio.Alphabet import IUPAC
"""
record = SeqRecord(
Seq("ATGC", IUPAC.ambiguous_dna),
id="id1",
name="id1name",
description="some description"