Skip to content

Instantly share code, notes, and snippets.

View r4m's full-sized avatar

Filippo Zanella r4m

View GitHub Profile
@r4m
r4m / delete_slack_files.rb
Created March 10, 2017 14:53
Script for quickly delete files from Slack
# Script to delete slack files starting from 7 days ago
require 'net/http'
require 'json'
api_key = "<YOUR-API-KEY-GOES-HERE>"
day_ago = 1488551417 # 7. Otherwise 30: 1486565133
user_url = "https://slack.com/api/users.list?token=#{api_key}"
uri = URI(user_url)
@r4m
r4m / README.md
Last active August 29, 2015 14:11
Controlling and rendering flash-message with Ember (v 1.9.0) and ember-cli (v0.1.4)

Dependencies

  • Ember 1.9.0 and ember-data 1.0.0-beta.12
  • Bootstrap-sass 3.0.2
  • jquery 1.11.1

All these packages can be installed via Bower. The code has been tested with ember-cli 0.1.4.

Usage