Skip to content

Instantly share code, notes, and snippets.

View adamwulf's full-sized avatar

Adam Wulf adamwulf

View GitHub Profile
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 )
@adamwulf
adamwulf / slack-files-downloader.sh
Last active October 7, 2023 05:08 — forked from greird/slack-files-downloader.sh
Download all files from a Slack workspace export folder.
#!/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
#
$(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