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 | |
GVERSION="1.4.2" | |
GFILE="go$GVERSION.linux-amd64.tar.gz" | |
LVERSION="27.2.1" | |
LFILE="liteidex$LVERSION.linux-64-qt4.tar.bz2" | |
GOPATH="$HOME/go" | |
if [ -d "$HOME/.go" ]; then | |
echo "Installation directories already exist $HOME/.go $HOME/go" | |
exit 1 |
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 | |
:START | |
cls | |
echo Temporary WSUS Script | |
echo ============================== | |
echo This script will flip between using the internal WSUS server and Microsoft's servers. | |
echo. | |
set /p WSUSSETTING=Type [W] to use WSUS or [C] to clear the setting and use MS servers: | |
IF /i (%WSUSSETTING%) == (W) goto CONTINUE |
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 | |
SETLOCAL EnableDelayedExpansion | |
IF /I "%~1"=="timestamp" ( | |
CALL :ECHOTIMESTAMP | |
GOTO END | |
) | |
rem directory structure to delete | |
SET "DELETE=c:\_delete\???<<<change this>>>???" |
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
################################################################################# | |
## | |
## PostgreSQL unattended install | |
## Author: Stefan Prodan | |
## Date : 16 Oct 2014 | |
## Company: VeriTech.io | |
################################################################################ | |
Function Install-Postgres | |
{ |
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
############################################# | |
## | |
## PostgreSQL base backup automation | |
## Author: Stefan Prodan | |
## Date : 20 Oct 2014 | |
## Company: VeriTech.io | |
############################################# | |
# path settings | |
$BackupRoot = 'C:\Database\Backup'; |
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 Monitor() { | |
var sites = tables.getTable('Sites'); | |
sites.read({ success: function(results) { | |
results.forEach(function(site) { | |
var httpRequest = require('request'); | |
httpRequest.get(site.url, function(err, response, body) { | |
//check response status |
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<UsingTask TaskName="JavaScriptCompressorTask" AssemblyFile="$(MSBuildProjectDirectory)\$(OutputPath)RequireJsNet.Compressor.dll" /> | |
<!--Folder deploy--> | |
<Target Name="MinifyForBuild" AfterTargets="CopyAllFilesToSingleFolderForPackage" Condition="'$(Configuration)'=='Release'"> | |
<MsBuild Projects="$(MSBuildProjectFile)" Targets="Minify" Properties="RootDir=$(_PackageTempDir)" /> | |
<Message Text="Minifying for build" Importance="high"/> | |
</Target> | |
<Target Name="Minify" Condition="'$(Configuration)'=='Release'"> |
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
############################################# | |
## | |
## Monitor ASP.NET WebAPI Enpoints | |
## Author: Stefan Prodan | |
## Date : 7 Apr 2014 | |
## Company: VeriTech.io | |
############################################# | |
#Base url | |
$urlPrefix = "http://localhost/MyApp.Server/"; |
NewerOlder