This file contains hidden or 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 | |
tail -n0 -F "$1" | while read LINE; do | |
(echo "$LINE" | grep -e "$3") && curl -X POST --silent --data-urlencode \ | |
"payload={\"text\": \"$(echo $LINE | sed "s/\"/'/g")\"}" "$2"; | |
done |
This file contains hidden or 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
<?php | |
if ( ! class_exists( 'WP_List_Table' ) ) { | |
require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); | |
} | |
if ( ! class_exists( 'Snapshot_View_Table_Archives' ) ) { | |
class Snapshot_View_Table_Archives extends WP_List_Table { | |
var $item; |
This file contains hidden or 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 | |
# HAVE A LOOK AT https://gist.github.com/3135855 FIRST ON HOW THIS WORKS | |
# keyring_password.sh [ "name of key" [, "store-this_Password ]] | |
# It either echoes the stored password, or stores a new item | |
if [ ! "$1" ]; then | |
exit 1 | |
fi | |
_PWNAME="$1" # A placeholder name for this password in the keychain |
This file contains hidden or 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 | |
# HAVE A LOOK AT https://gist.github.com/3135855 FIRST ON HOW THIS WORKS | |
# keyring_password.sh [ "name of key" [, "store-this_Password ]] | |
# It either echoes the stored password, or stores a new item | |
if [ ! "$1" ]; then | |
exit 1 | |
fi | |
_PWNAME="$1" # A placeholder name for this password in the keychain |