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
// ==UserScript== | |
// @name Fill input fields with dummy data | |
// @namespace https://gist.github.com/r-k-b/ | |
// @version 1.0.0 | |
// @description Tired of repeatedly filling in form fields every time you update a form? Use this to fill in sensible dummy data. | |
// @author Robert K. Bell | |
// @homepage https://gist.github.com/r-k-b/896acc86ef3e7552396af3cf742c2f08 | |
// @downloadURL https://gist.github.com/r-k-b/896acc86ef3e7552396af3cf742c2f08/raw/fill_input_fields_with_dummy_data.user.js | |
// @include *://*/* | |
// @grant none |
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
// ==UserScript== | |
// @name Expose links to individual Media Download items in BC | |
// @namespace https://gist.github.com/r-k-b/ | |
// @version 1.0.0 | |
// @description Expose links to the individual Media Download items in the Business Catalyst admin panel. | |
// @author Robert K. Bell | |
// @homepage https://bitbucket.org/snippets/bigbluedigital/zLzer | |
// @downloadURL https://gist.github.com/r-k-b/1a4bd40a8acd8eef13d4be2553a7c77c/raw/expose-mediadownload-ids.user.js | |
// @include *://*/* | |
// @grant none |
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
// ==UserScript== | |
// @name create links to cases from BC custom reports | |
// @namespace https://gist.github.com/r-k-b/ | |
// @version 1.0.0 | |
// @description create links to cases from BC custom reports | |
// @author Robert K. Bell | |
// @homepage https://gist.github.com/r-k-b/e2a393397080fd6dbc677f06164a03f0 | |
// @downloadURL https://gist.github.com/r-k-b/e2a393397080fd6dbc677f06164a03f0/raw/create-links-to-cases-from-bc-custom-reports.user.js | |
// @include *://*/* | |
// @grant none |
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 | |
if ip route list | grep 'default via 192.168.1.68' 1>/dev/null | |
then | |
ip route del default via 192.168.1.68 && | |
echo Removed adsl default route. | |
else | |
ip route add default via 192.168.1.68 && | |
echo Added adsl default route. |
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 | |
shopt -s nocasematch | |
tail -F /var/log/syslog -n 100 | grep --line-buffered -iE -e 'adsl link (up|down)' | while read -r line ; do | |
echo "Processing $line" | |
[[ $line =~ (adsl link (up|down)) ]] && | |
newState="${BASH_REMATCH[1]}" && | |
echo $newState && | |
spd-say "Hey! $newState" | |
done |
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 | |
WANIP="$(dig +short myip.opendns.com @resolver1.opendns.com)" && | |
echo "Wan IP: ${WANIP}" && | |
whois $WANIP | grep -iE -e 'netname:' -e 'e-mail:' -e 'irt:' | |
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
// ==UserScript== | |
// @name Show BC form field names in the Admin UI | |
// @namespace https://gist.github.com/r-k-b/ | |
// @version 1.0.0 | |
// @description Show Business Catalyst's form field identifiers (like `CAT_Custom_123456`) right in the GUI of the form builder. | |
// @author Robert K. Bell | |
// @homepage https://gist.github.com/r-k-b/525a10d814acf09611b794ee7ea9c326 | |
// @downloadURL https://gist.github.com/r-k-b/525a10d814acf09611b794ee7ea9c326/raw/show-bc-field-name-in-admin.user.js | |
// @include https://*.worldsecuresystems.com/* | |
// @grant none |
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
// ==UserScript== | |
// @name Show webapp field IDs in BC Admin | |
// @namespace https://gist.github.com/r-k-b/ | |
// @version 1.0.0 | |
// @description ... | |
// @author Robert K. Bell | |
// @homepage https://gist.github.com/r-k-b/eabcb44dfd4f712ce26aa32512c32abe | |
// @downloadURL https://gist.github.com/r-k-b/eabcb44dfd4f712ce26aa32512c32abe/raw/show-bc-webapp-field-ids.user.js | |
// @match https://*.worldsecuresystems.com/Admin/CustomContent* | |
// @grant none |
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
// ==UserScript== | |
// @name Break on alert() | |
// @namespace https://gist.github.com/r-k-b/ | |
// @version 1.0.0 | |
// @description Where is that damned `alert()` called from? This drops the trace in the console. If the Dev Tools are open, it'll also pause execution. | |
// @author Robert K. Bell | |
// @homepage https://gist.github.com/r-k-b/f804b3c2e7f6800f4c326ec11a190b8d | |
// @downloadURL https://gist.github.com/r-k-b/f804b3c2e7f6800f4c326ec11a190b8d/raw/break-on-alert.user.js | |
// @match *://*/* | |
// @grant none |