Skip to content

Instantly share code, notes, and snippets.

View sb39's full-sized avatar
:electron:
Building something amazing!

srijeet biswas sb39

:electron:
Building something amazing!
View GitHub Profile
@sb39
sb39 / delete-slack-messages.js
Created March 30, 2021 03:39 — forked from firatkucuk/delete-slack-messages.js
Deletes slack public/private channel messages, private chat messages and channel thread replies.
#!/usr/bin/env node
// Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/
// Pass it as a parameter: node ./delete-slack-messages.js CHANNEL_ID
// CONFIGURATION #######################################################################################################
const token = 'SLACK TOKEN';
// Legacy tokens are no more supported.
// Please create an app or use an existing Slack App
@sb39
sb39 / m3u8-to-mp4.md
Created March 30, 2021 03:38 — forked from tzmartin/m3u8-to-mp4.md
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@sb39
sb39 / .gitlab-ci.yml
Last active October 15, 2020 05:58
deploy react app to gitlab pages
image: node:latest
stages:
- build
- deploy
cache:
paths:
- node_modules/