Skip to content

Instantly share code, notes, and snippets.

@Toanzzz
Toanzzz / proxy.yml
Last active August 12, 2020 08:11
A Traefik config file to deploy it to Docker Swarm. Usage: `docker stack deploy --prune -c _dc/proxy.yml proxy`
version: "3.8"
volumes: { traefikCer }
networks: { default: { name: proxy, external: true } }
services:
app:
image: traefik:v2.2
ports: ["80:80", "443:443"]
@Toanzzz
Toanzzz / delete-slack-messages.js
Last active January 21, 2020 18:53 — forked from firatkucuk/delete-slack-messages.js
Deletes slack public/private channel and chat messages.
#!/usr/bin/env node
// Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/
// Token can get from: https://api.slack.com/custom-integrations/legacy-tokens
// Pass it as a parameter: node ./delete-slack-messages.js TOKEN CHANNEL_ID
// Or use it without download the script: curl -Ls RAW_GIST_URL | node - TOKEN CHANNEL_ID
// GLOBALS #############################################################################################################
const [, , token, channel, _delay = 300] = process.argv