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 DTEXEC_PATH="C:\Program Files\Microsoft SQL Server\110\DTS\Binn\dtexec.exe" | |
| %DTEXEC_PATH% /FILE batch_success.dtsx | |
| IF %ERRORLEVEL% NEQ 0 GOTO STOP_JOB | |
| %DTEXEC_PATH% /FILE batch_fail.dtsx | |
| IF %ERRORLEVEL% NEQ 0 GOTO STOP_JOB | |
| %DTEXEC_PATH% /FILE batch_success.dtsx | |
| IF %ERRORLEVEL% NEQ 0 GOTO STOP_JOB |
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
| <Process xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"> | |
| <Object> | |
| <DatabaseID>EDW</DatabaseID> | |
| <CubeID>EDW Metrics</CubeID> | |
| <MeasureGroupID>Metric Analysis</MeasureGroupID> | |
| </Object> | |
| <Type>ProcessFull</Type> | |
| </Process> |
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 table dbo.data ( | |
| id int identity(1,1) not null, | |
| value nvarchar(50) null ); | |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
| <head> | |
| <title>JSON - Adding Objects</title> | |
| <meta http-equiv="content-type" content="text/html;charset=utf-8" /> | |
| <meta name="generator" content="Geany 1.23" /> | |
| <script> | |
| // array[element][key] |
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
| #!/usr/bin/env bash | |
| scp -r -i .keys/mysshkey.pem package ubuntu@amazon_server.com:/home/ubuntu |
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
| MYSQL_PSWD = '' | |
| # MASTER - [email protected] | |
| TWILIO_ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
| TWILIO_AUTH_TOKEN = "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ" | |
| TWILIO_SUBACCOUNTS = { | |
| 'cust1':{'sid':'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', | |
| 'token':'YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY'}, |
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
| #!/usr/bin/env sh | |
| echo "git pull for jekyll_wp_blog" | |
| cd /home/scottt/sync_websites/jekyll_wp_blog && git pull | |
| jekyll build | |
| cd .. && rsync -a -f"- .git/" -f"- README.md" -f"- js_cache/" -f"+ *" --delete jekyll_wp_blog/_site/ troyscott.github.io/ | |
| cd /home/scottt/sync_websites/troyscott.github.io && git status | |
| echo "update troyscot.github.io website" | |
| git add . | |
| git commit -m 'automatic sit update' |
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
| <?php | |
| //header("Content-Type: application/json"); | |
| echo $_GET['callback'] . '(' . "{'name' : 'First 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>JSONP Example</title> | |
| </head> | |
| <body> | |
| <script src="//code.jquery.com/jquery.js"></script> | |
| <script> | |
| $( document ).ready(function() { |
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
| update dbo.WeeklySalesForecast | |
| set WeekNumber = case | |
| when CONVERT( INT,SUBSTRING(WeekNumber,5,3)) < 10 | |
| then 'Week 0' + SUBSTRING(WeekNumber,6,1) | |
| else WeekNumber end |