Skip to content

Instantly share code, notes, and snippets.

View phanirithvij2000's full-sized avatar
💙
Heart's gone cold, recovering....

Phani Rithvij phanirithvij2000

💙
Heart's gone cold, recovering....
View GitHub Profile
@phanirithvij2000
phanirithvij2000 / gh_up.sh
Created October 31, 2021 17:31
Upload file to existing github release
# https://stackoverflow.com/questions/9973056/curl-how-to-display-progress-information-while-uploading#comment104234143_41860083
# https://stackoverflow.com/a/40216228/8608146
# https://stackoverflow.com/a/69788901/8608146
# https://unix.stackexchange.com/a/185039/312058
filepath=$1
filename=$(basename $filepath)
username=$2
reponame=$3
@phanirithvij2000
phanirithvij2000 / waveform.py
Created June 26, 2018 10:58 — forked from moeseth/waveform.py
Create Soundcloud style waveform from Audio in Python
from pydub import AudioSegment
from matplotlib import pyplot as plot
from PIL import Image, ImageDraw
import numpy as np
import os
src = "./test.mp3"
audio = AudioSegment.from_file(src)
data = np.fromstring(audio._data, np.int16)