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
GREEN='\033[0;32m' | |
RED='\033[0;31m' | |
YELLOW='\033[0;33m' | |
NC='\033[0m' # No Color | |
$(git add -A) | |
commit=$(git commit -a -m "checkpoint" --no-verify --allow-empty | head -1 | sed -E 's/\[([^ ]*) ([^] ]*)(.*)/\2/') | |
$(git reset HEAD~1 > /dev/null 2> /dev/null ) |
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 | |
# | |
# This script will browse a Slack export folder and download all files in a new /export folder | |
# | |
# HOW TO: | |
# 1. As a Workspace admin, download an export of your Slack history (https://www.slack.com/services/export) | |
# 2. Make sure you have jq installed (https://stedolan.github.io/jq/) | |
# 3. Place this file at the root of your Slack export folder, next to channels.json | |
# 4. Run `bash slack-files-downloader.sh` in your terminal | |
# |
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
$(function(){ | |
// the height of the content, discluding the header/footer | |
var content_height = 652; | |
// the beginning page number to show in the footer | |
var page = 1; | |
var hasAddedBios = false; | |
function buildNewsletter(){ | |
if($('#newsletterContent').contents().length > 0){ | |
// when we need to add a new page, use a jq object for a template | |
// or use a long HTML string, whatever your preference |