- VirtualBox 4.3.12
- VB Extension Pack 4.3.12
- Ubuntu 12.04.5 LTS
- Insert Guest additions
sudo apt-get install dkms
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
# staging | |
kontur_elk { | |
index => "gofra-%{+YYYY.MM.dd}" | |
rabbitmq_host => "vm-elk" | |
user => "logstash" | |
password => "********" | |
queue => "zakupki" | |
} |
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
Import-Module PSReadline | |
$boxes = "vm-zakupki-f1", "vm-zakupki-f2", "vm-zakupki-s1", "vm-zakupki-s2" | |
function sync-logstashconf { | |
foreach($box in $boxes){cp C:\Users\vorou\Desktop\logstash.conf \\$box\c$\logstash\conf.d\} | |
} | |
function restart-logstash { | |
$boxes | %{gsv logstash -comp $_ | spsv} |
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
31300648520 | |
31502054400 | |
31502054807 | |
31502054964 | |
31502081115 | |
31502056429 | |
31300511502 | |
31502076431 | |
31502076513 | |
31502078144 |
git rebase <from-commit-after-this> --onto <destination>
cat data.json | http post url
setx /m key value
setx /M PATH "%PATH%;<your-new-path>"
"vm-zakupki-f1", "vm-zakupki-f2", "vm-zakupki-s1", "vm-zakupki-s2"
where {$_.lastwritetime -lt (get-date).AddDays(-3)}
$objects = ls | Select -ExpandProperty Name
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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("tc.skbkontur.ru") { | |
.log { | |
font: 16px "Consolas"; | |
background-color: #002b36; | |
} | |
.l0, .l1, .l2, .l3, .l4, .l5, .l6, .l7, .l8, .l9, .l10, .l11, .l12, .l13, .l14, .l15, .l16, .l17, .l18, .l19, .l20, .l21, .l22, .l23, .l24, .l25, .lDeep { | |
color: #839496; |
- Все команды это PowerShell.
- Если chocolatey не установлен (можно проверить при помощи
choco version
), то нужно установить:
Set-ExecutionPolicy RemoteSigned; iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
- Установить JRE:
cinst javaruntime
.
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
{ | |
"homepage": "https://totaluninstaller.codeplex.com/", | |
"version": "1.0.3", | |
"license": "http://www.cmake.org/licensing/", | |
"url": "http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=totaluninstaller&DownloadId=876545&FileTime=130491517926800000&Build=20959#/dl.zip", | |
"bin": [ | |
"TotalUninstaller.exe" | |
] | |
} |
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
# Boxstarter script for blog post http://blog.zerosharp.com/provisioning-a-new-development-machine-with-boxstarter | |
# Allow reboots | |
$Boxstarter.RebootOk=$true | |
$Boxstarter.NoPassword=$false | |
$Boxstarter.AutoLogin=$true | |
# Basic setup | |
Update-ExecutionPolicy Unrestricted | |
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions |
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
# to download and run | |
# open PowerShell console and execute | |
# iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/vorou/01079294ca8c43f6832d/raw/7e66972a3abf62e1c01d44b3824bf95a03da9503/install-mongodb-as-service.ps1')) | |
Set-ExecutionPolicy RemoteSigned | |
$mongoDbPath = "C:\MongoDB" | |
$mongoDbConfigPath = "$mongoDbPath\mongod.cfg" | |
$url = "http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.6.3.zip" | |
$zipFile = "$mongoDbPath\mongo.zip" |