Skip to content

Instantly share code, notes, and snippets.

View onesneakymofo's full-sized avatar
🐢

Chris Autwell onesneakymofo

🐢
View GitHub Profile
@onesneakymofo
onesneakymofo / slack_delete.rb
Created November 16, 2018 18:54 — forked from jamescmartinez/slack_delete.rb
This Ruby script will bulk remove all Slack files older than 30 days. Just add your API token from https://api.slack.com/web#authentication into the token quotes at the top of the file.
require 'net/http'
require 'json'
require 'uri'
@token = ''
def list_files
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago
params = {
token: @token,
@onesneakymofo
onesneakymofo / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console