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
set echo off | |
set verify off | |
set serveroutput on size 100000 | |
-- Hosted at http://lastinfinitetentacle.blogspot.com/2012/03/empty-oracle-schema-leave-empty-schema.html | |
-- Disable all contraints | |
BEGIN | |
FOR c IN | |
(SELECT c.owner, c.table_name, c.constraint_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
// hosted at http://lastinfinitetentacle.blogspot.com.au/2011/10/csv-parser-in-javascript.html | |
var textToArray = function (txtLine, del, txtQual) { | |
"use strict"; | |
var datArr = [], newStr = ""; | |
while (txtLine.length > 0) { | |
if (txtLine.substr(0, txtQual.length) === txtQual) { | |
// get quoted block | |
newStr = txtLine.substr(0, txtQual.length + txtLine.indexOf(txtQual, txtQual.length)); | |
datArr.push(newStr.substr(txtQual.length, newStr.length - txtQual.length * 2)); | |
} |
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
# described at http://lastinfinitetentacle.blogspot.com.au/2013/06/viewing-d-link-dcs-932l-ip-camera-from.html | |
avconv -r 15 -f mjpeg -i http://USERNAME:PASSWORD@IP-ADDRESS/video.cgi -i http://USERNAME:PASSWORD@IP-ADDRESS/audio.cgi -vcodec mpeg4 -f mpegts file:///dev/stdout | vlc file:///dev/stdin | |
# silent version | |
avconv -r 15 -f mjpeg -i http://USERNAME:PASSWORD@IP-ADDRESS/video.cgi -vcodec mpeg4 -f mpegts file:///dev/stdout | vlc file:///dev/stdin |
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 | |
rem sourced from http://stackoverflow.com/questions/5273937/how-to-replace-substrings-in-windows-batch-file | |
setlocal enabledelayedexpansion | |
set INTEXTFILE=test.txt | |
set OUTTEXTFILE=test_out.txt | |
set SEARCHTEXT=bath | |
set REPLACETEXT=hello | |
set OUTPUTLINE= | |
for /f "tokens=1,* delims=¶" %%A in ( '"type %INTEXTFILE%"') do ( |
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 perl | |
# forking tiny HTTP server | |
# a toy web server | |
# thanks to | |
# [email protected] - https://gist.githubusercontent.com/keiya/2782414/raw/811565ccfa479a9e12d0653e2f5118e68e7fda37/server.pl | |
use strict; | |
use warnings; |
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
select * from ( | |
select '43077535605' as abn, 1 as correct | |
union all | |
select '33 102 417 032' as abn, 1 as correct | |
union all | |
select '29002589460' as abn, 1 as correct | |
union all | |
select '33 102 417 032asdfsf' as abn, 0 as correct | |
union all | |
select '444' as abn, 0 as correct |
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
select * from ( | |
select '000 000 019' as acn, 1 as correct | |
union all | |
select '009 749 964' as acn, 1 as correct | |
union all | |
select '006 999 980' as acn, 1 as correct | |
union all | |
select '005999977' as acn, 1 as correct | |
union all | |
select '000 000 019asdfsf' as acn, 0 as correct |
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
select * from ( | |
select '000 000 019' as acn, 1 as correct | |
union all | |
select '009 749 964' as acn, 1 as correct | |
union all | |
select '006 999 980' as acn, 1 as correct | |
union all | |
select '005999977' as acn, 1 as correct | |
union all | |
select '000 000 019asdfsf' as acn, 0 as correct |
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
select * from ( | |
select '43077535605' as abn, 1 as correct | |
union all | |
select '33 102 417 032' as abn, 1 as correct | |
union all | |
select '29002589460' as abn, 1 as correct | |
union all | |
select '33 102 417 032asdfsf' as abn, 0 as correct | |
union all | |
select '444' as abn, 0 as correct |
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
# install SVN | |
# tested with Slik SVN 1.14.2 from https://sliksvn.com/download/ | |
#CONFIGURATION | |
#where should Subversion store its data? | |
$svn_data = "D:\Temp\repo" | |
#where will your downloaded mod files be kept? | |
$dir_download = "$env:USERPROFILE\Downloads" |
OlderNewer