Skip to content

Instantly share code, notes, and snippets.

@Daan-Grashoff
Daan-Grashoff / README.md
Last active February 27, 2025 07:19
Bring back the google maps button when searching on google

Google Maps Button Restorer

This userscript brings back the Maps button in Google Search results, making it easy to search locations directly in Google Maps.

Features

  • Adds a Maps button next to the "All", "Images", "News" tabs in Google Search
  • Works across multiple Google domains (.com, .co.uk, .nl, .de, .fr)
  • Automatically updates when using Google's dynamic search
  • Maintains button presence during navigation
@atomtigerzoo
atomtigerzoo / check-mount-point.sh
Created July 11, 2018 09:01
Simple bash script to check if a mount point has been mounted, and if not, re-mount it or notify someone via email
#!/bin/bash
MOUNTPOINT="/some/mount-point"
EMAIL="[email protected]"
if cat /proc/mounts | grep ${MOUNTPOINT} > /dev/null; then
echo "${MOUNTPOINT} already mounted."
exit 0
fi
@majora2007
majora2007 / removeNonEnglish.py
Last active February 1, 2024 20:26
Remove foreign language audio and subtitle tracks from mkv files in bulk
#!/usr/bin/python
# Removes non-LANG audio tracks and subtitles from mkv files in a directory.
# Original script by greenbender at https://forum.videohelp.com/threads/343271-BULK-remove-non-English-tracks-from-MKV-container
# Modified by Joseph Milazzo for updated MkvMerge commands.
# 12/3/2021: Updated to Python 3.9
import os
import re
import sys
@kevinwright
kevinwright / proresproxy.sh
Last active October 18, 2024 16:51
Use ffmpeg to build prores proxies for Premiere Pro
#!/usr/bin/env bash
# Usage notes
# ===========
#
# proxy_watermark.png needs to be in the same directory as the script
# download from here: http://whoismatt.com/images/2016/7-july/adobe_proxy_logo.png
#
# on OSX, both pv and ffmpeg will need to be installed via homebrew
@kbrnsr
kbrnsr / dropbox.service
Last active January 9, 2022 15:24
Systemd unit file for dropbox, works with CentOS 7, should be in /etc/systemd/system/ as /etc/systemd/system/dropbox.service and permission 755, for the script fiile for starting and stopping dropbox see me gist here: https://gist.github.com/kbrnsr/571f0bdb865e8fb1d846
[Unit]
Description=Dropbox is a filesyncing sevice provided by dropbox.com. This service starts up the dropbox daemon.
After=network.target syslog.target
[Service]
Environment=LC_ALL=en_US.UTF-8
Environment=LANG=en_US.UTF-8
EnvironmentFile=-/etc/sysconfig/dropbox
ExecStart=/bin/dropbox start
ExecReload=/bin/dropbox restart