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
''' | |
Script to archive Slack messages from a channel list. | |
You have to create a Slack Bot and invite him to private channels. | |
View https://github.com/docmarionum1/slack-archive-bot for how to configure your account. | |
Then provide the bot token to this script with the list of channels. | |
''' | |
TOKEN='xoxb-xxxxx-xxxxxx-xxxxxxxxxxx' | |
channels = { |
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
def my_gist_hash (): | |
return 'cd452b0f316b16d5a9dab1983795a3cc' | |
def my_addon_version (): | |
return '1.18.4' | |
def my_version (): | |
return my_addon_version() + '-gist-r3' | |
# priv: revision 4 |
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
def my_gist_hash (): | |
return 'a056ebf6ae5c46b2989a549f62702e3c' | |
def my_addon_version (): | |
return '1.18.3' | |
def my_version (): | |
return my_addon_version() + '-gist-r8' | |
# priv: revision 45 |
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
def my_gist_hash (): | |
return 'ebb973eae84b4001ebe82229164610ea' | |
def my_addon_version (): | |
return '1.18.2' | |
def my_version (): | |
return my_addon_version() + '-gist-r9' | |
# priv: revision 24 |
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
def my_gist_hash (): | |
return '3312e9f0ee2e9268d849057364c7fa9f' | |
def my_addon_version (): | |
return '1.18.1' | |
def my_version (): | |
return my_addon_version() + '-gist-r11' | |
# priv: revision 70 |
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
def my_gist_hash (): | |
return '46c0cd04c2287f0ec449e883a72cef48' | |
def my_version (): | |
return '1.18.0-gist-r7' | |
# priv: revision 69 | |
def inc(int_array, by = 1000): | |
int_array[0] += by |
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 | |
# default | |
if [ -z ${CURL+x} ]; then | |
CURL="/usr/bin/curl" | |
fi | |
if [ -z ${ECHO+x} ]; then | |
ECHO="/usr/bin/echo" | |
fi | |
if [ -z ${CUT+x} ]; then |
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 | |
# execute-gist.bash is at https://gist.github.com/ypchen/aceeaf43144844f1f4275202259b690c | |
if [ -z "${1}" ] || [ -z "${2}" ] || [ -z "${3}" ]; then | |
echo "${0}" "to_email" "subject" "body" "[optional]from_email" | |
exit 1 | |
fi | |
execute-gist.bash 5b1b1af9750cb54b6e1e88fe9a91d2f7 "${1}" "${2}" "${3}" "${4}" |
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 | |
# default | |
if [ -z ${CURL+x} ]; then | |
CURL="/usr/bin/curl" | |
fi | |
# mg_domain, api_key, MSG_SUBJ_PREFIX, MSG_FROM_EMAIL, & CURL if necessary | |
CONF="${HOME}/.Mailgun.conf" | |
source ${CONF} |
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
def my_gist_hash (): | |
return 'b31d56a0eefcefbd36fc4538c9b40289' | |
def my_version (): | |
return '1.0.0-gist-r93' | |
# priv: revision 93 | |
sites = [ | |
{ |
NewerOlder