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 | |
Set-localdocker.bat | |
IF EXIST G: ( | |
ECHO Removing existing G: mapping... | |
net use G: /d | |
) | |
ECHO Mapping G: to "\\localdocker\data" ... | |
NET USE G: \\localdocker\data |
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
Param( | |
[Parameter(Mandatory=$true)] | |
[string]$hostName, | |
[Parameter(Mandatory=$true)] | |
[string]$hostIp | |
) | |
function IsAdministrator | |
{ | |
$Identity = [System.Security.Principal.WindowsIdentity]::GetCurrent() |
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
Param( | |
[Parameter(Mandatory=$true)] | |
[string]$hostName, | |
[Parameter(Mandatory=$true)] | |
[string]$hostIp | |
) | |
function IsAdministrator | |
{ | |
$Identity = [System.Security.Principal.WindowsIdentity]::GetCurrent() |
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 | |
SET LOCAL_DATA_DIR=%CD% | |
SET REMOTE_SUB_DIR=golfconnect-docker | |
IF EXIST G:\%REMOTE_SUB_DIR% ( | |
echo %REMOTE_SUB_DIR% exists - should prompt for clear | |
) ELSE ( | |
mkdir G:\%REMOTE_SUB_DIR% | |
) |
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
#connect b2d ssh | |
start cmd -ArgumentList @('/C','boot2docker','ssh') |
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 | |
ECHO Getting boot2docker ip... | |
FOR /f "usebackq tokens=*" %%a IN (`boot2docker ip`) DO SET localdocker-ip=%%a | |
ECHO %localdocker-ip% | |
ECHO. | |
ECHO Analyzing hosts file | |
%windir%\System32\FIND /C /I "localdocker" %windir%\System32\drivers\etc\hosts | |
IF %ERRORLEVEL% NEQ 0 ( | |
ECHO localdocker not found, adding to hosts... | |
powershell -command "Add-Hosts.ps1 -hostName \"localdocker\" -hostIp \"%localdocker-ip%\"" |
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
#!/bin/bash | |
#this is old, do not use, use docker-compose instead | |
#demoapp env management script | |
#based on andreagrandi/glowmachine sample | |
#this script assumes it is running in the project folder | |
#under the data directory created by this boot2docker setup script: | |
#https://gist.github.com/so0k/d4f5e485a81ca5768643 |
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
CoreOS alpha (745.1.0) | |
core@kalimdor ~ $ docker ps -a | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
bde18d705b86 sameersbn/gitlab:7.12.2-2 "/sbin/entrypoint.sh 6 days ago Up 26 seconds 443/tcp, 0.0.0.0:10022->22/tcp, 0.0.0.0:10080->80/tcp gitlab | |
42b5896ee45e registry:2 "registry cmd/regist 3 weeks ago Up 29 seconds 0.0.0.0:5000->5000/tcp registry | |
eb05cf6fd7ec redis:3 "/entrypoint.sh redi 5 weeks ago Exited (0) 4 weeks ago dev-redis | |
4bb6c15f0b1c sameersbn/redmine:2.6.1 "/app/init app:start 3 months ago Up 26 seconds 443/tcp, 0.0.0.0:11080->80/tcp redmine | |
67d683ac603d nginx:latest "nginx -g 'daemon |
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
Function Get-FileName { | |
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null | |
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog | |
$OpenFileDialog.initialDirectory = $initialDirectory | |
$OpenFileDialog.filter = "Comma Separated files (*.csv)| *.csv" | |
$OpenFileDialog.ShowDialog() | Out-Null | |
$OpenFileDialog.filename | |
} | |
$Input = Get-FileName |
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
# Eraser Bot chat data | |
# | |
# Thanks to Meanstryk for the additions | |
# -> http://www.planetquake.com/ramshackle | |
# Also thanks to Shawn "Benighted1" Lisk for more additions | |
# -> kclisk@bright.net | |
# | |
# OK, here's the deal. Bot's can say one of the following things: | |
# | |
# 1. Greetings |
OlderNewer