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
mvn install:install-file -Dfile=C:\ojdbc6.jar -DgroupId=ojdbc6 -DartifactId=ojdbc6 -Dversion=11.1.0.7.0 -Dpackaging=jar |
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
-- Drop Tables | |
BEGIN | |
FOR i IN (SELECT table_name FROM user_tables) | |
LOOP | |
EXECUTE IMMEDIATE('DROP TABLE ' || user || '.' || i.table_name || ' CASCADE CONSTRAINTS'); | |
END LOOP; | |
END; | |
--Drop triggers | |
BEGIN |
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
find /tmp -type f -name "*.tmp" -amin +30 -exec rm -f {} \; |
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 | |
# | |
# Init file for starting and stopping MongoDB Database. | |
# | |
# chkconfig: 345 80 20 | |
# description: MongoDB Database startup script | |
# Source function library. | |
#. /etc/rc.d/init.d/functions |
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
Sub DelCol() | |
' | |
' DelCol Macro | |
' | |
' | |
Dim wb As Workbook | |
Dim nLastCol As Long, i As Long | |
Set wb = ThisWorkbook | |
With wb.Worksheets(1) | |
nLastCol = .Cells(1, .Columns.Count).End(xlToLeft).Column |
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 | |
usage(){ | |
echo "Usage: $0 [-i INTERFACE] [-s INTERVAL] [-c COUNT]" | |
echo | |
echo "-i INTERFACE" | |
echo " The interface to monitor, default is eth0." | |
echo "-s INTERVAL" | |
echo " The time to wait in seconds between measurements, default is 3 seconds." | |
echo "-c COUNT" |
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
db = db.getSisterDB("config"); | |
var mongosConn = db; // assume we connected to a mongos to get going | |
var res = null; | |
function check() { | |
printjson(res); | |
if( !res || !res.ok ) { | |
throw "check(): not ok, stopping"; |
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
@GET | |
@Path("/{docType:}/{many:.*}") | |
public String getSomething(@PathParam("docType") String docType, @PathParam("many") String many) {...} |
OlderNewer