This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
OLD_IFS=$IFS | |
IFS=$'\0' | |
for i in *.webm; do | |
T=$(ffprobe -i $i -show_format -v quiet | sed -n 's/duration=//p' | awk -F. '{print $1-3}') | |
ffmpeg -i $i -ss $T -vframes 1 output/"${i%.*}.png" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time, json | |
from urllib.parse import urlparse, urlunparse | |
class tab: | |
def __init__(self, url, title): | |
self.url = url; self.title = title | |
self.favIconUrl = urlunparse(urlparse(url)._replace(path='favicon.ico',params='',query='',fragment='')) | |
self.pinned = False; self.muted = False | |
_id, res, tabs, urls = int(time.time() * 1000), [], [], [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
bot_key="<API Token from BotFather>" | |
# Need to send a message to your bot in order to see chat_id. | |
chat_id="<chat_id from https://api.telegram.org/bot<bot_key>/getUpdates>" | |
response=$(curl -s "https://api.telegram.org/bot$bot_key/sendMessage?chat_id=$chat_id&text=$@") | |
status=$(echo $response | cut -d ':' -f2 | cut -d ',' -f1) | |
echo "Sent: $status" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"SoS test" | |
] | |
}, | |
{ |