Skip to content

Instantly share code, notes, and snippets.

@frankrausch
frankrausch / change-speed-of-mp3.sh
Last active December 25, 2024 14:30
Slow down or speed up all MP3 files in a folder with FFmpeg.
#/bin/sh
speed="0.7"
mkdir "speed-${speed}x"
for f in *.mp3
do ffmpeg -i "$f" -filter:a "atempo=${speed}" "./speed-${speed}x/$f"
done
@rponte
rponte / Cliente.java
Last active October 14, 2020 02:35
Injecting @Autowired dependencies into self-instantiated objects with Spring
@Entity
@EntityListeners(RepositoryAwareListener.class)
public class Cliente {
@Autowired // that's important!
private transient ClienteRepository repository;
// atributos da entidade
public List<Orcamento> orcamentosAPartirDeDeterminadoAno(int ano){
# <tipo>(escopo): assunto
# If applied, this commit will...
# <corpo>
# Why was this change made?
#<rodapé>
# Relevant tickets, articles or other resources
@tacsio
tacsio / Git Configs
Last active September 15, 2022 01:10
My git config
git config --global user.name "Tarcisio Coutinho"
git config --global user.email "[email protected]"
git config --global color.ui true
git config --global alias.s status
git config --global alias.c checkout
git config --global alias.b branch
git config --global alias.lol log --oneline --graph --decorate
@dominictarr
dominictarr / handle_the_jandal.js
Created October 20, 2010 12:06
ways to process errors in node js
//test-uncaught-errors
var sys = require('sys')
, EventEmitter = require('events').EventEmitter;
function error1 (err){
sys.puts("Handle: " + err);
}
function error2 (err){
sys.puts("JANDAL: " + err);
}
function exit (){