-i
- ignore errors
-c
- continue
-t
- use video title as file name
--extract-audio
- extract audio track
/* Hide Google smartlock login popup */ | |
iframe[src^="https://smartlock.google.com/"] { | |
display: none !important; | |
} | |
/* Brighter Netflix and YouTube videos */ | |
video[src^="blob:https://www.netflix.com/"], | |
video[src^="blob:https://www.youtube.com/"] { | |
filter: brightness(1.4); | |
} |
#!/bin/bash | |
wget -O /tmp/wallpaper.jpg https://source.unsplash.com/3840x2160/?wallpapers | |
gsettings set org.gnome.desktop.background picture-uri file:///tmp/wallpaper.jpg | |
gsettings set org.gnome.desktop.screensaver picture-uri file:///tmp/wallpaper.jpg | |
# Don't forget to make it executable via: chmod +x random-wallpaper.sh | |
# To schedule every 10 minutes: | |
# Run: crontab -e |
@echo off | |
setlocal enableextensions | |
chcp 65001 | |
set input=%1 | |
set device=%2 | |
set loglevel=quiet | |
for %%i in ("%~f1") do set dirname=%%~dpi | |
for %%i in ("%~f1") do set extension=%%~xi | |
set tempfile=%dirname%%RANDOM%-temp.m4a |
using terms from application "Mail" | |
on perform mail action with messages theMessages for rule theRule | |
tell application "Mail" | |
repeat with eachMessage in theMessages | |
try | |
say content of eachMessage as string | |
end try | |
end repeat | |
end tell | |
end perform mail action with messages |
#!/bin/bash | |
# date: 2015-01-24 | |
# Inspiration from: http://www.gtkdb.de/index_7_1302.html | |
payload=$(cat <<EOF | |
<?xml version="1.0" encoding="utf-8"?> | |
<s:Envelope | |
s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | |
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> |
# Will allow to use a .gif extension. | |
# Script can now be used as www.mydomain.com/pokemon.gif | |
RewriteEngine on | |
RewriteRule ^(.*).gif giphy.php?tag=$1 [L,QSA] |
<?php | |
/* | |
Backup script for trakt.tv (API v2). | |
Live demo: https://darekkay.com/blog/trakt-tv-backup/ | |
*/ | |
// create a Trakt app to get a client API key: http://docs.trakt.apiary.io/#introduction/create-an-app | |
$apikey = "CLIENT_API_KEY"; |
using terms from application "Mail" | |
on perform mail action with messages theMessages for rule theRule | |
set credentials to do shell script "security find-internet-password -g -s github.com 2>&1 | awk ' | |
/^password:/ { | |
sub(\".*password: \\\"\", \"\") | |
sub(\"\\\".*\", \"\") | |
password = $0 | |
} | |
/acct/ { |
#!/bin/sh | |
# | |
# Erstellt eine lokale Sicherung von /home/username, /var/www/virtual/username und der Datenbanken des Benutzers | |
# | |
# Voraussetzungen: | |
# Auf dem lokalen Computer sind die uberspaces in ~/.ssh/config wie folgt konfiguriert: | |
# Host uberspacename | |
# HostName sternenkonstellation.uberspace.de | |
# User uberspacename | |
# |