Skip to content

Instantly share code, notes, and snippets.

View boram's full-sized avatar

Boram Yoon boram

  • Santa Monica, CA
View GitHub Profile
@boram
boram / slack_delete.rb
Created November 10, 2018 03:24 — 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,
@boram
boram / collision.rb
Created August 29, 2018 21:39 — forked from simi/collision.rb
require 'securerandom'
require 'set'
tokens = Set.new
i = ENV['I'].to_i
length = ENV['KEY_LENGTH'].to_i
i.times do |i|
@boram
boram / docker-destroy-all.sh
Created April 3, 2018 22:41 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@boram
boram / app.js
Created May 29, 2013 06:47 — forked from jgwhite/app.js
var App = Em.Application.create();
App.ApplicationController = Em.Controller.extend();
App.ApplicationView = Em.View.extend({ templateName: 'application' });
App.HomeController = Em.Controller.extend();
App.HomeView = Em.View.extend({ templateName: 'home' });
App.AuthController = Em.Controller.extend({