Skip to content

Instantly share code, notes, and snippets.

@fenech
fenech / delete.py
Created March 22, 2018 13:57
Delete large files from Slack
#!/usr/bin/env python3
import requests
import json
token = '' # your token here
limit = 1024 * 1024 # 1MB
def list_files(page=1):
params = { 'token': token, 'page': page }
@huyng
huyng / reflect.py
Created February 7, 2011 17:57
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
@deluan
deluan / dependency_pom.xml
Last active October 5, 2016 15:02
Adding shiro-faces taglib to your maven project
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-faces</artifactId>
<!-- See the latest version on the project's homepage -->
<version>2.0</version>
</dependency>