Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am gseanhall on github.
  • I am dhamma (https://keybase.io/dhamma) on keybase.
  • I have a public key whose fingerprint is AE55 74D8 4435 342E 5637 FB82 F106 FD07 FBA0 4904

To claim this, I am signing this object:

To use these you need to add them as bookmarks. For the bookmark target location include the entire string, beginning with 'javascript:'.
//List Org IDs on Manage Organizations Page
javascript: $('<th>Org ID</th>').insertBefore('#org-table thead tr th:first'); $('.orgname').each(function(){$(this).before('<td>'+$(this).parent().attr('data-item-id')+'</td>')});
//List Alert Profile IDs on Manage Alerts Page
javascript: $('option').each(function(){$(this).text($(this).val()+" - "+$(this).text())});
delete from pg_attribute where attrelid = 105113;
INSERT INTO pg_catalog.pg_attribute select 105113, q.* from ( select attname, atttypid, attstattarget, attlen, attnum, attndims, attcacheoff, atttypmod, attbyval, attstorage,attalign, attnotnull, atthasdef, attisdropped, attislocal, attinhcount, attcollation, attacl, attoptions, attfdwoptions  from pg_attribute where attrelid::regclass = 'path_periodic_rollup_data_20160711'::regclass)  as q
servcie postgresql-9.0 stop
mv /data/databases/db001 /data/databases/db001.dead
#### Create loop.sh
read -p "Enter password:" password
for IP in $(cat ip_list.txt)
do
echo $IP >> hwclock.txt
curl http://$IP -D cookie -s > useless_temp.txt && curl -s http://$IP/session_login.cgi -d user=root -d pass=$password -d page=%2Fproc%2Frun.cgi%3Fcmd%3D"$@"%26mode%3D0%26submit%3Drun%26user%3Droot -b cookie -L | sed -n '/<pre*/,/<\/pre>/p' >> webmin_curler.log
echo "" >> webmin_curler.log
done
####
@gseanhall
gseanhall / javaagent.json
Last active June 20, 2016 16:20 — forked from adam-hert/javaagent.json
Java agent config to exclude MagnoliaContextFilter class
{
"agent.logging":"info",
"agent.tracingMode":"always",
"agent.traceAjax":false,
"agent.jdbcInstAll":false,
"agent.jdbcInstParams":true,
"agent.jdbcSanitize":0,
"agent.excludeClasses" : ["de.arvatomobile.magnolia.filter.MagnoliaContextFilter"],
"monitor.jmx.interval":30000,