Skip to content

Instantly share code, notes, and snippets.

@maranemil
maranemil / guide.md
Created July 1, 2026 13:02 — forked from DavraYoung/guide.md
Python Audio processing Guide

Python Audio processing Guide

Introduction

This guide is intended to provide a comprehensive overview of audio processing in Python. It will cover the basics of audio processing, including reading and writing audio files, audio manipulation, and audio analysis.

Reading and Writing Audio Files

I recommend using either pydub AudioSegment or librosa to read and write audio files in Python. Pydub is a simple and easy-to-use library for audio manipulation in Python, while librosa is a more advanced library that provides additional functionality for audio analysis.

from pydub import AudioSegment
@maranemil
maranemil / gist:287e35e8c82e4fbebac369926f5ec776
Created August 2, 2024 08:24
Mark all Github PR files as viewed or not-viewed
Mark all files as viewed/not-viewed
https://github.com/refined-github/refined-github/issues/2444
https://github.com/refined-github/refined-github/issues/2865
https://stackoverflow.com/questions/69945775/how-to-unview-toggle-all-the-viewed-files-on-github-pull-request
GitHub: Mark all as not viewed
javascript: document.querySelectorAll('.js-reviewed-checkbox').forEach(input => !input.checked || input.click());

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@maranemil
maranemil / transformKeys.php
Created May 22, 2022 16:33 — forked from goldsky/transformKeys.php
Convert under_score type array's keys to camelCase type array's keys and likewise
<?php
/**
* Convert under_score type array's keys to camelCase type array's keys
* @param array $array array to convert
* @param array $arrayHolder parent array holder for recursive array
* @return array camelCase array
*/
public function camelCaseKeys($array, $arrayHolder = array()) {
$camelCaseArray = !empty($arrayHolder) ? $arrayHolder : array();
@maranemil
maranemil / myscript.sh
Created October 17, 2021 19:31 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@maranemil
maranemil / glitch.sh
Created March 15, 2021 00:04
FFMPEG simple Glitch FX
ffmpeg -i in.mp4 -vf "
split [main][tmp];
[tmp]
lutyuv=y=negval:enable='(between(t,3,3.1))',
lutyuv=u='(val-maxval/2)*2+maxval/2':v='(val-maxval/2)*2+maxval/2':enable='(between(t,3,3.4))',
lutyuv="y=3*val":enable='(between(t,3,3.4))',
hue=s=3:enable='(between(t,3,3.4))',
eq=contrast=3:enable='(between(t,3,3.4))',
@maranemil
maranemil / videolist.txt
Last active November 30, 2020 10:07
Video Mix FUMIX 087
Credits for visuals:
Taryn Ashleigh Elliott https://www.instagram.com/tea_for_taryn/?hl=de
Peanut Butter Visuals https://www.instagram.com/peanutbuttervisuals/
Cinema Professionals https://www.instagram.com/thatbluemymind/
Paulo Renato https://www.instagram.com/paulorenato/
Pixabay https://www.instagram.com/pixabay/?hl=de
Piotr Wróbel https://www.instagram.com/ats_dron/
Paulo Renato https://www.instagram.com/paulorenato/
James Cheney https://www.instagram.com/cheneymediaproductions/
@maranemil
maranemil / videolist.txt
Last active November 30, 2020 10:06
Video Mix FUMIX 085
https://www.pexels.com/de-de/video/854638/ https://www.pexels.com/de-de/video/854662/
https://www.pexels.com/de-de/video/854697/ https://www.pexels.com/de-de/video/855257/
https://www.pexels.com/de-de/video/856077/ https://www.pexels.com/de-de/video/856666/
https://www.pexels.com/de-de/video/857026/ https://www.pexels.com/de-de/video/857069/
https://www.pexels.com/de-de/video/1234161/ https://www.pexels.com/de-de/video/1321208/
https://www.pexels.com/de-de/video/1390942/ https://www.pexels.com/de-de/video/1416529/
https://www.pexels.com/de-de/video/1448735/ https://www.pexels.com/de-de/video/1550080/
https://www.pexels.com/de-de/video/1649831/ https://www.pexels.com/de-de/video/1739010/
https://www.pexels.com/de-de/video/1806115/ https://www.pexels.com/de-de/video/2099595/
https://www.pexels.com/de-de/video/2257002/ https://www.pexels.com/de-de/video/2386442/
@maranemil
maranemil / ffmpeg.md
Created October 30, 2020 13:02 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@maranemil
maranemil / read_serial.py
Last active May 29, 2020 09:11
Python3 Read serial COM1 - simulate input Linux
# !/usr/bin/python
# sudo apt install python3-pip
# pip3 install pyxid
# sudo pip3 install --upgrade pyserial
# pip3 install --ignore-installed pyserial
# sudo apt-get install python3-serial
# python3 -c "import serial; print(serial.VERSION); print(serial.__dict__.keys()); print(serial.__file__)"