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
/usr/bin/psql --host localhost --port 5432 --username db_owner db_name | |
CREATE OR REPLACE FUNCTION "reset_sequence" (tablename text) RETURNS "pg_catalog"."void" AS | |
$body$ | |
DECLARE | |
BEGIN | |
EXECUTE 'SELECT setval( ''' | |
|| tablename | |
|| '_id_seq'', ' | |
|| '(SELECT id + 1 FROM "' |
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
java -DSTOP.PORT=8079 -DSTOP.KEY=secret -jar start.jar | |
java -DSTOP.PORT=8079 -DSTOP.KEY=secret -jar start.jar --stop |
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 | |
USER="${1}" | |
HOST="${2}" | |
ALIAS="${3}" | |
if [ ! "${USER}" ] && [ ! "${HOST}" ] && [ ! "${ALIAS}" ]; then | |
echo | |
echo "Usage: installSSHKey username hostname alias" | |
echo |
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
(function($){ | |
//console.log($.fn.jquery) // which jquery are we using ? | |
$(function(){ | |
$("select[name$='-etype']").each(function(){ | |
show_target_methods($(this)); | |
}); | |
$("select[name$='-etype']").bind("change",function(e){ | |
console.log($(this)); |
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
pg_dump -h 172.26.76.100 -p 5432 -U username your_db | psql -h localhost -p 5432 -U username your_db |