A running example of the code from:
- http://marcio.io/2015/07/handling-1-million-requests-per-minute-with-golang
- http://nesv.github.io/golang/2014/02/25/worker-queues-in-go.html
Small refactorings made to original code:
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 |
# 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 |
A running example of the code from:
Small refactorings made to original code:
// 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, |
// 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" |
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 utilizes NCBI BLAST+ but you have to download a separate BLAST binary from NCBI. See the RMBlast page at RepeatMasker's website for details.
#!/usr/bin/env python | |
'''Rename contigs of a FASTA file with incremental count.''' | |
import argparse | |
def main(): | |
'''Execute renaming.''' |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |