Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
try {
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-CornerNavigationOptions -EnableUpperRightCornerShowCharms -EnableUpperLeftCornerSwitchApps -EnableUsePowerShellOnWinX
Set-TaskbarOptions -Size Small
Enable-RemoteDesktop
if (Test-PendingReboot) { Invoke-Reboot }
cinst -y chocolatey
cinst -y toolsroot
try {
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-CornerNavigationOptions -EnableUpperRightCornerShowCharms -EnableUpperLeftCornerSwitchApps -EnableUsePowerShellOnWinX
Set-TaskbarOptions -Size Small
Enable-RemoteDesktop
if (Test-PendingReboot) { Invoke-Reboot }
cinst -y chocolatey
cinst -y toolsroot
@erophames
erophames / Step1CreateNewPollingTentacle.ps1
Created October 20, 2016 07:07 — forked from hnrkndrssn/Step1CreateNewPollingTentacle.ps1
Register a Polling Tentacle without opening up port 443 to the world
# Step 1 - Run this on the Tentacle server to create the new Tentacle
$tentacleName = 'P1'
$tentaclePort = 10933
& "C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" create-instance --instance $tentacleName --config "C:\Octopus\$tentacleName\Tentacle-$tentacleName.config"
& "C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" new-certificate --instance $tentacleName --if-blank
& "C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" configure --instance $tentacleName --reset-trust
& "C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" configure --instance $tentacleName --home "C:\Octopus\$tentacleName" --app "C:\Octopus\Applications\$tentacleName" --port $tentaclePort --noListen "True"
& "C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" service --instance $tentacleName --install --start
@erophames
erophames / golang_job_queue.md
Created August 16, 2016 11:03 — forked from harlow/golang_job_queue.md
Job queues in Golang
@erophames
erophames / gulp-task.js
Created August 2, 2016 11:42 — forked from timaschew/gulp-task.js
proxy browser-sync server with express and secure everything with basic auth
// just add pass server as your task function
// Start a server with LiveReload to preview the site in
const OUTPUT_PARENT = 'dist'
const OUTPUT_DIRECTORY = OUTPUT_PARENT + '/browser-sync'
function server(done) {
browser.init({
server: {
directory: true,
@erophames
erophames / orhttp_example.go
Created July 22, 2016 08:19 — forked from Yawning/orhttp_example.go
How to dispatch HTTP requests via Tor in Go.
// To the extent possible under law, the Yawning Angel has waived all copyright
// and related or neighboring rights to orhttp_example, using the creative
// commons "cc0" public domain dedication. See LICENSE or
// <http://creativecommons.org/publicdomain/zero/1.0/> for full details.
package main
import (
// Things needed by the actual interface.
"golang.org/x/net/proxy"
@erophames
erophames / repeatmasker_install_instructions.md
Created May 4, 2016 08:08 — forked from kbradnam/repeatmasker_install_instructions.md
Instructions for installing RepeatMasker on a server with Repbase database and RMBlast

Installing RepeatMasker on Mac OS X

Before we can install RepeatMasker itself, we need to install RMBlast, TRF (already installed on our server), and the repeat database Repbase. RepeatMasker also requires Perl 5.8.0 or higher.

RMBlast

RMBlast utilizes NCBI BLAST+ but you have to download a separate BLAST binary from NCBI. See the RMBlast page at RepeatMasker's website for details.

@erophames
erophames / rename_fasta.py
Created April 11, 2016 20:31 — forked from bruvellu/rename_fasta.py
Simple script to rename contigs of a FASTA file with incremental count.
#!/usr/bin/env python
'''Rename contigs of a FASTA file with incremental count.'''
import argparse
def main():
'''Execute renaming.'''
@erophames
erophames / nginx.conf
Created February 17, 2016 12:18 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048