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
| #!/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 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
| @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 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
| Param( | |
| [switch]$keepalive | |
| ) | |
| #region script config | |
| $dockerhost = "localdocker" | |
| $User = "docker" | |
| $PWord = (new-object System.Security.SecureString) #this is how you define blank password | |
| $keyfile = "C:\Path\To\keys" | |
| #endregion |
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
| #connect b2d ssh | |
| start cmd -ArgumentList @('/C','boot2docker','ssh') |
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
| @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 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
| Param( | |
| [Parameter(Mandatory=$true)] | |
| [string]$hostName, | |
| [Parameter(Mandatory=$true)] | |
| [string]$hostIp | |
| ) | |
| function IsAdministrator | |
| { | |
| $Identity = [System.Security.Principal.WindowsIdentity]::GetCurrent() |
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
| Param( | |
| [Parameter(Mandatory=$true)] | |
| [string]$hostName, | |
| [Parameter(Mandatory=$true)] | |
| [string]$hostIp | |
| ) | |
| function IsAdministrator | |
| { | |
| $Identity = [System.Security.Principal.WindowsIdentity]::GetCurrent() |
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
| @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 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
| #create data directory to contain any data we want persisted | |
| sudo mkdir /var/lib/boot2docker/data && sudo chown docker:staff /var/lib/boot2docker/data | |
| #pull busybox and set it up as a data volume container | |
| docker run -v /var/lib/boot2docker/data:/data --name data-share busybox true | |
| #pull svendowideit/samba and run it with the data-share container | |
| #docker run --rm -v $(which docker):/docker -v /var/run/docker.sock:/docker.sock svendowideit/samba data-share | |
| #make sure the samba share runs next time boot2docker starts |
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
| #pragma semicolon 1 | |
| #include <sourcemod> | |
| #include <sdktools> | |
| #include <sdkhooks> | |
| #include <cstrike> | |
| #include <adminmenu> | |
| #define _DEBUG 0 // Set to 1 for debug spew |