Skip to content

Instantly share code, notes, and snippets.

@Daan-Grashoff
Daan-Grashoff / google_search_maps_addon.js
Last active April 28, 2024 05:43
Bring back the google maps button when searching on google
// ==UserScript==
// @name Google maps addon
// @namespace http://tampermonkey.net/
// @version 2024-03-21
// @description Bring google maps button back
// @author You
// @match https://www.google.com/search*
// @include https://www.google.tld/search*
// @icon https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png
// @grant none
@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="root@your-domain.example.com"
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 February 18, 2024 21:14
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