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/sh | |
aws --profile $1 iam get-user | jq '.User | {accountName: .UserName, accountId : .Arn | match("(arn:aws:iam::)(\\d{12})").captures[1].string }' |
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
package com.windriver.simpleserver; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.Produces; | |
import com.aol.micro.server.auto.discovery.Rest; | |
@Rest | |
@Path("foo") |
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
/* | |
* ---------------------------------------------------------------------------- | |
* Package: JS Date Format Patch | |
* Version: 0.9.11 | |
* Date: 2012-04-12 | |
* Description: In lack of decent formatting ability of Javascript Date object, | |
* I have created this "patch" for the Date object which will add | |
* "Date.format(dateObject, format)" static function, and the | |
* "dateObject.toFormattedString(format)" member function. | |
* Along with the formatting abilities, I have also added the |
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
options { | |
STATIC = false; | |
SUPPORT_CLASS_VISIBILITY_PUBLIC = true; | |
ERROR_REPORTING = false; | |
JAVA_UNICODE_ESCAPE = true; | |
UNICODE_INPUT = true; | |
NODE_USES_PARSER = false; | |
NODE_DEFAULT_VOID = true; | |
IGNORE_CASE = true; | |
VISITOR = true; |
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
options { | |
STATIC = false; SUPPORT_CLASS_VISIBILITY_PUBLIC = true; | |
ERROR_REPORTING = false; JAVA_UNICODE_ESCAPE = true; | |
UNICODE_INPUT = true; NODE_USES_PARSER = false; | |
NODE_DEFAULT_VOID = true; IGNORE_CASE = true; | |
VISITOR = true; LOOKAHEAD = 2; | |
FORCE_LA_CHECK = true; | |
} | |
PARSER_BEGIN(TestParser) |
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"?> | |
<sessions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<session xsi:type="database-session"> | |
<name>ksat</name> | |
<logging xsi:type="eclipselink-log"> | |
<log-level>ALL</log-level> | |
</logging> | |
<login xsi:type="database-login"> | |
<platform-class>org.eclipse.persistence.platform.database.MySQLPlatform</platform-class> | |
<user-name>erik</user-name> |
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
CREATE DATABASE db; | |
CREATE USER user IDENTIFIED BY PASSWORD 'password'; | |
GRANT ALL ON db.* TO 'user'@'localhost'; | |
GRANT ALL ON db.* TO 'user'@'%'; -- # support remote logins |
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
A StoredProcedure in a PL/SQL package uses a PL/SQL record type for arguments: | |
CREATE OR REPLACE PACKAGE NEST_REC_PACKAGE AS | |
TYPE TEST_NEST_REC IS RECORD ( | |
VALUE01 VARCHAR2(10), | |
VALUE02 NUMBER | |
); | |
TYPE TEST_REC IS RECORD ( | |
COLUMN01 VARCHAR2(10), | |
COLUMN02 NUMBER, |
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
from http://www.eclipse.org/forums/index.php?t=msg&th=164573&start=0& | |
Suppose we have an Address 'type' - | |
CREATE OR REPLACE TYPE ADDR_TYPE AS OBJECT ( | |
STREET VARCHAR2(40), | |
CITY VARCHAR2(40), | |
PROV VARCHAR2(40) | |
) |