Skip to content

Instantly share code, notes, and snippets.

View im7mortal's full-sized avatar

Petr im7mortal

View GitHub Profile
@im7mortal
im7mortal / http_get.go
Created September 25, 2015 05:02 — forked from ijt/http_get.go
Example of using http.Get in go (golang)
package main
import (
"fmt"
"http"
"io/ioutil"
"os"
)
func main() {
@im7mortal
im7mortal / slack_delete.py
Created November 17, 2016 23:13 — forked from jackcarter/slack_delete.py
Delete Slack files older than 30 days. Rewrite of https://gist.github.com/jamescmartinez/909401b19c0f779fc9c1
import requests
import time
import json
token = ''
#Delete files older than this:
ts_to = int(time.time()) - 30 * 24 * 60 * 60
def list_files():