Skip to content

Instantly share code, notes, and snippets.

View okize's full-sized avatar

Morgan Wigmanich okize

View GitHub Profile
@okize
okize / slack-export.sh
Created May 2, 2019 23:39 — forked from sagotsky/slack-export.sh
slack history exporter. override the three vars at the top. run the script for api token and dependency instructions. channels are public and have a # icon. private groups are private and have a lock icon.
#!/bin/bash
PRIVATE_GROUPS="thepit"
CHANNELS="avatar plm_website general health_insurance vim"
USERS="awilkie amonat bryanalves brittneysaint"
if [[ "$SLACK_TOKEN" == '' ]] ; then
echo 'Visit https://api.slack.com/custom-integrations/legacy-tokens to make yourself a slack token'
echo 'Set it with `export SLACK_TOKEN=abc123...`'
echo 'Then rerun this script'
@okize
okize / convert.js
Last active May 10, 2018 03:28
Script to convert a hex value to an Iterm colorization file dict
// example usage:
// $ node convert.js ccffcc
var _ = require('lodash');
var hexRgb = require('hex-rgb');
var isHex = require('is-hex');
var hex = process.argv[2];
var convert = function (color) {
if (0 < color < 256) {
@okize
okize / scss2sass.sh
Last active August 29, 2015 14:15 — forked from sanxac/scss2sass.sh
#!/bin/bash
for f in *.scss; do sass-convert $f ${f%scss}sass ; done
rm *.scss