Skip to content

Instantly share code, notes, and snippets.

View nullifiedaccount3's full-sized avatar
๐Ÿ‘‘
Killing it

nullifiedaccount3

๐Ÿ‘‘
Killing it
View GitHub Profile
@nullifiedaccount3
nullifiedaccount3 / tail-slack.sh
Created September 13, 2016 05:33 — forked from shamasis/tail-slack.sh
Tail a file and output to slack
#!/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
<?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;
#!/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
#!/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