Skip to content

Instantly share code, notes, and snippets.

View cretingame's full-sized avatar

Arnaud Sautaux cretingame

View GitHub Profile
@cretingame
cretingame / spotify.sh
Created July 10, 2024 08:05
Basic spotify commands through debus using dbus-send
#!/bin/bash
# Basic spotify commands through dbus using dbus-send
# https://community.spotify.com/t5/Desktop-Linux/Basic-controls-via-command-line/m-p/4360856#M15590
# https://gist.github.com/wandernauta/6800547
pause() {
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause
}
@cretingame
cretingame / edge.sh
Last active March 9, 2024 15:30
TTS
#!/bin/bash
# https://pypi.org/project/edge-tts/
# edge-tts -v fr-CH-ArianeNeural -t "test" | ffplay -v 0 -nodisp -autoexit -
#Name: fr-BE-CharlineNeural
#Name: fr-BE-GerardNeural
#Name: fr-CA-AntoineNeural
#Name: fr-CA-JeanNeural
@cretingame
cretingame / .tmux.conf
Last active July 15, 2019 09:19
New configuration file for tmux 2.8
# use C-a, since it's on the home row and easier to hit than C-b
#set-option -g prefix C-a
#unbind-key C-a
#bind-key C-a send-prefix
#set -g base-index 1
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
# vi is good
@cretingame
cretingame / initial_commit.sh
Created December 7, 2018 12:02
Diff initial commit
git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD
# https://stackoverflow.com/questions/40883798/how-to-get-git-diff-of-the-first-commit