Skip to content

Instantly share code, notes, and snippets.

// 1. Fix bad naming.
class ShoppingCart {
UUID getShopingCartId() { ... }
boolean checkFreeShippingEligibility() { ... }
void removeOrderItem(OrderItem orderItem) { ... }
void addOrderItem(OrderItem orderItem) { ... }
Collection<OrderItem> getOrderItems() { ... }
}
@myin142
myin142 / commands.txt
Last active July 5, 2024 19:52
Useful commands
# Remove vocal from song
ffmpeg -i song.mp3 -af pan="stereo|c0=c0|c1=-1*c1" -ac 1 karaoke.mp3
# Cut video
ffmpeg -i input.mp4 -ss 00:00:10 -to 00:00:36 -c copy output.mp4
# MP4 to OGV
ffmpeg -i input.mp4 -c:v libtheora -q:v 7 -c:a libvorbis -q:a 4 output.ogv
# Concat multiple videos