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
""" | |
pip install -U deep-translator srt | |
This translates a non-english SRT subtitle file to english, with lame accuracy. | |
Persists at every 5 subtitles. | |
""" | |
from deep_translator import GoogleTranslator | |
import srt |
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
/* | |
## way to run.. then open http://localhost:8888 in Chrome & Cast your Tab | |
export SERVE_VIDEO_FILE="/path/to/video.mp4" ; \ | |
export SERVE_HTTP_PORT=":8888" ; \ | |
go run serve.go | |
*/ | |
package main | |
import ( | |
"fmt" |
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
This uses ABK License layered atop MIT License. | |
1. ABK License | |
2. MIT License | |
****************************************************************************** | |
1. ABK License | |
URL: https://github.com/abhishekkr | |
****************************************************************************** |
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
#!/usr/bin/env bash | |
git-ignore(){ | |
if [[ $# -eq 0 ]]; then | |
cat >> ./.gitignore << GITIGNORE | |
*swn | |
*swo | |
*swp | |
*~ | |
*.tmp |
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
#!/usr/bin/env python3 | |
""" | |
Toggle the first & second bytes. | |
Syntax: python <py-file> filename | |
""" | |
import sys | |
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
#!/usr/bin/env python2 | |
""" | |
What-To-Play-First-For-Disk-Space | |
Requirements: | |
* Python (https://en.wikipedia.org/wiki/Python_(programming_language)) | |
* FFMPEG (https://en.wikipedia.org/wiki/FFmpeg) | |
This utility helps with two problems: | |
* Need to empty some disk-space quickly but have lots of videos/podcasts on it yet to finish. |
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
filters_to_delete: | |
- "to:(lists.launchpad.net)" | |
- "from:(@bewakoof.net)" | |
- "from:(chtah.net)" | |
- "from:(@daniwebmail.com)" | |
- "from:(@dzone.com)" | |
- "from:([email protected])" | |
- "from:(@eletters.whatsnewnow.com)" | |
- "from:([email protected])" | |
- "from:(@email.udemy.com)" |
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
{ctx = new AudioContext(); | |
t = {b: ctx.currentTime}; | |
o = ctx.createOscillator(); | |
o.connect(ctx.destination); | |
o.frequency.value = 500; | |
o.frequency.exponentialRampToValueAtTime(166,t.b+5); | |
o.start(t.b); | |
o.stop(t.b+5);} |
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
#!/usr/bin/env bash | |
set -e | |
[[ ! -z "$1" ]] && export LOCAL_BIN="$1" | |
[[ -z "${LOCAL_BIN}" ]] && export LOCAL_BIN="${HOME}/bin" | |
[[ ! -d "${LOCAL_BIN}" ]] && mkdir -p "${LOCAL_BIN}" | |
[[ -z "${NODEJSVERSION}" ]] && export NODEJSVERSION="6.11.2" | |
[[ -z "${NODEJSOS}" ]] && export NODEJSOS="linux" |
NewerOlder