This file contains 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
# run once | |
sed -i -e '/^readahead=/s/^.*$/readahead=32/' /usr/lib/tuned/throughput-performance/tuned.conf | |
echo "mongod soft nproc 64000" > /etc/security/limits.d/90-nproc.conf | |
echo '#!/bin/sh -e | |
echo never > /sys/kernel/mm/transparent_hugepage/defrag | |
echo never > /sys/kernel/mm/transparent_hugepage/enabled' > /usr/local/sbin/mongodb-prep.sh | |
chmod +x /usr/local/sbin/mongodb-prep.sh | |
echo '[Unit] | |
Description=mongodb prep | |
Before=mongod.service |
This file contains 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
mkdir mprime | |
pushd mprime | |
wget http://www.mersenne.org/ftp_root/gimps/p95v2810.linux64.tar.gz | |
tar zxfv p95v2810.linux64.tar.gz | |
popd | |
./mprime/mprime -m |
This file contains 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
#meta-data: | |
instance-id: hostname | |
network-interfaces: | | |
auto eth0 | |
iface eth0 inet static | |
address 192.168.1.34 | |
network 192.168.1.0 | |
netmask 255.255.255.0 | |
broadcast 192.168.1.255 | |
gateway 192.168.1.254 |
This file contains 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
set PGUSER=postgres | |
set PGPASSWORD=xxx | |
set OUTPUTPATH=e:\myfile.backup | |
set DB=whatever | |
set HOST=whatever | |
pg_dump -h %HOST% -p 5432 -U %PGUSER% -F c -b -v -f %OUTPUTPATH% %DB% | |
rem TCP port to unblock is 5432 | |
echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/9.3/main/pg_hba.conf |
This file contains 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
del results.jtl | |
pushd C:\Users\Administrator\Desktop\apache-jmeter-2.13\bin | |
call jmeter.bat -n -t ..\..\jmeter-results\test-plan.jmx | |
popd | |
pause |
This file contains 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
@echo off | |
rem Licensed to the Apache Software Foundation (ASF) under one or more | |
rem contributor license agreements. See the NOTICE file distributed with | |
rem this work for additional information regarding copyright ownership. | |
rem The ASF licenses this file to You under the Apache License, Version 2.0 | |
rem (the "License"); you may not use this file except in compliance with | |
rem the License. You may obtain a copy of the License at | |
rem | |
rem http://www.apache.org/licenses/LICENSE-2.0 |
This file contains 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
$ErrorActionPreference = "Stop" | |
# https://gist.github.com/tomfanning/617bde27596de3b1ca62 | |
$backuptarget = "b:\HyperV" | |
$compression = $false | |
$VMs = Get-VM | |
foreach ($vm in $vms){ |
This file contains 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
#apt-get install --install-recommends linux-tools-virtual-lts-vivid linux-cloud-tools-virtual-lts-vivid | |
apt-get install hv-kvp-daemon-init | |
linux-virtual? | |
linux-cloud-tools-virtual | |
linux-tools-virtual |
This file contains 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
$ErrorActionPreference = "Stop" | |
# run the script in an elevated Powershell like this: | |
# iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/tomfanning/f75f6a808a9265b48af0/raw/')) | |
#todo: - install windows photo viewer, make it the default | |
# - unpin the remaining crud from the start menu | |
function Set-RegValue | |
{ |
This file contains 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
Dell Poweredge 1855 1955 PSU AHF-2DC 2100W (12v 175A) Pinout. | |
Works on 220-240v only. | |
Is compatible with US home type split-phase 220VAC but be cautious as to the correct wiring of the plug. | |
All of the important pins are included. | |
Connect PS On (A5) and PS Kill (B3) to ground to power up. | |
A5 = PS On | |
B3 = PS Kill |