Skip to content

Instantly share code, notes, and snippets.

@topu
topu / diff
Created September 7, 2014 15:09
Updated music_track_listener.py for Gajim. Added support for Spotify music tracking.
99a100,126
> ## Spotify
> bus.add_signal_receiver(self._spotify_music_track_change,
> 'PropertiesChanged',
> 'org.freedesktop.DBus.Properties',
> path='/org/mpris/MediaPlayer2')
>
> def _spotify_music_track_change(self, interface, changed_props, invalidated_props):
> metadata = changed_props.get("Metadata", {})
> if metadata:
#!/bin/sh
#TODO rsync over ssh
#TODO lvm snapshots
#TODO mounting external encrypted drive
#TODO rotating backups
#TODO initial backup (no 'current' link)
readonly PATHTOBACKUP=/mnt/backup
@topu
topu / README.md
Created September 28, 2016 18:38 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Index:

.panel-margin {
margin: 0;
padding: 0;
}
.dash-row-header-title {
margin: 0;
padding: 0;
}
@topu
topu / run.tpl
Created July 2, 2022 05:41 — forked from efrecon/run.tpl
`docker inspect` template to regenerate the `docker run` command that created a container
docker run \
--name {{printf "%q" .Name}} \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
--rm \
{{- end}}
{{- if .Runtime}}