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
Welcome to Scala version 2.11.7 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_79). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> import collection.immutable._ | |
import collection.immutable._ | |
scala> import math.Ordering._ | |
import math.Ordering._ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<merge-header xmlns='http://docs.openrepose.org/repose/merge-header/v1.0'> | |
<request> | |
<header>accept</header> | |
</request> | |
</merge-header> |
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
alias whichjava="/usr/libexec/java_home -V" | |
export JAVA_VER=1.8.0_45 # how you would default to Java 8 | |
export JAVA_VER=1.7.0_79 # actually set default to Java 7 | |
export JAVA_HOME=$(/usr/libexec/java_home -v $JAVA_VER) | |
export PATH=$JAVA_HOME/bin:$PATH |
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
import java.util.regex.Pattern | |
pattern = Pattern.compile("GUID:\\p{XDigit}{8}-\\p{XDigit}{4}-\\p{XDigit}{4}-\\p{XDigit}{4}-\\p{XDigit}{12} - Beginning Feed Cache Invalidator Thread request.*", Pattern.DOTALL) | |
matcher = pattern.matcher("GUID:b4e8773e-6868-4f24-9536-38a38f1df369 - Beginning Feed Cache Invalidator Thread request.\n") | |
matcher.matches() |
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 | |
sql="select name,type from dbo.sysobjects where type in ('P', 'R', 'U', 'V') and uid = 1 order by type,name\nGO" | |
sql_file="list_tables.sql" | |
tables_file="tables.txt" | |
ddl_dir="ddl" | |
tar_file="database.tar.gz" | |
server="some_server" | |
user="some_user" | |
password="some_password" |