Skip to content

Instantly share code, notes, and snippets.

@markwhat1
markwhat1 / youtube-dl.py
Last active June 22, 2020 01:16 — forked from nneonneo/youtube-dl.py
YouTube-DL for Pythonista - download YouTube videos on your iPhone/iPad!
#!python3
'''
Directions:
- install youtube-dl via Pip (e.g. using the StaSh command: https://github.com/ywangd/stash)
- add this script as a Share extension through Settings -> Share Extension Shortcuts
- while watching a video in the YouTube site or app, just share the video to Pythonista and select this script
- the video will download, and when it's done you can share the video file itself with any app (e.g. VLC)
Advanced usage:
@markwhat1
markwhat1 / funtalk.ps1
Created August 31, 2018 02:24 — forked from jrgcubano/funtalk.ps1
Fun script powershell to talk with remote computer
# Link: http://www.reddit.com/r/PowerShell/comments/1khn9o/a_fun_script_for_friday_make_your_friends/
# A fun script for Friday - make your friend's computer start talking to him/her (self.PowerShell)
# submitted 1 year ago * by Sinisterly
# A co-worker of mine stumbled upon this nifty blog article on how to make a text-to-speech call using PowerShell.
# The article gives two examples:
# - Call the SAPI.SPVoice COM object
# - Load the reference to System.Speech
# Where can this come in fun? Well, if you throw PSRemoting in, of course! In my testing, if you use the second method (or the pared down script below) you can make your victim's computer start talking to him or her. Here's how you do it:
# 1. Provide a distraction so that your victim leaves their computer unlocked, and make yourself administrator on their workstation (only needed if you aren't already an admin!)
# 2. Enable PSRemoting on their workstation. A method for doing this would be using PSExec:
@markwhat1
markwhat1 / query_examples.sql
Last active July 28, 2023 15:34
Open Dental Query Examples
This file has been truncated, but you can view the full file.
Home Welcome to the Open Dental Query Examples Page
These query examples were written for other practices, usually for a specific purpose. There may be additional changes needed to return the results you want.
Queries are sorted chronologically, with queries written for older versions listed first and queries written for newer versions listed last.
We recommend looking at higher numbered queries first, because older queries may not work in new versions.
If you find a query you like, copy/paste the query into Open Dental to run it. See User Queries
If needed, change any required variables before running. Look at the query comments for variable descriptions.
If you need help finding a query, modifying a query, or would like a custom query, fill out and submit a Query Request Form
@markwhat1
markwhat1 / parameter-list.md
Last active February 4, 2024 20:46
Tautulli custom notifcation messages

Notification Parameters

  • If the value for a selected parameter cannot be provided, it will display as blank.
Global Definition
{tautulli_version} The current version of Tautulli.
{tautulli_remote} The current git remote of Tautulli.
{tautulli_branch} The current git branch of Tautulli.
{tautulli_commit} The current git commit hash of Tautulli.
{server_name} The name of your Plex Server.
@markwhat1
markwhat1 / delete_gmusic_dupes.py
Last active April 27, 2019 10:09
Improved Google Music duplicate deletion script
#!/usr/bin/env python
# created by shuichinet https://gist.github.com/shuichinet
# forked from https://gist.github.com/shuichinet/8159878 21 Nov 2015
# using minor edits by fcrimins https://www.reddit.com/user/fcrimins
# from https://www.reddit.com/r/google/comments/2xzgyv/remove_duplicate_songs_from_google_play_music/csh6mrh
# also using clever edits by Morgan Gothard https://medium.com/@mgothard
# updated for Python 3.5 by John M. Kuchta https://medium.com/@sebvance 22 Nov 2016 (hey I was busy)
# compiled by John M. Kuchta https://medium.com/@sebvance
# thanks to shuichinet, fcrimins and Mr. Gothard for their work
@markwhat1
markwhat1 / boxstarter.ps1
Last active January 18, 2018 16:52 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Modified by: Mark Whatcott
# Last Updated: 2018-01-18
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
@markwhat1
markwhat1 / docker-compose.yaml
Last active January 10, 2018 04:07
Forked option with nginx-proxy and Let's Encrypt setup
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
restart: always
network_mode: ME_default
volumes:
@markwhat1
markwhat1 / docker_run_commands.md
Last active December 20, 2017 03:31
Usenet server configuration setup (from reddit user /u/postmaster3000)

Deluge with VPN

Deluge is a lightweight, free, cross-platform BitTorrent client.

The image below is from binhex/arch-deluge-vpn. It will install Deluge, a VPN client, and Privoxy.

This is the Docker command:

docker run --restart=always -d \

--cap-add=NET_ADMIN \

@markwhat1
markwhat1 / Plex, usenet and torrent docker-compose file
Last active November 13, 2018 20:43 — forked from ajohnsen/Plex, Sonarr, Radarr, Jackett, OpenVPN+Transmission docker-compose file
Plex, NZBGet, Sonarr, Radarr, OpenVPN, Transmission, Jackett - docker-compose file
# to run: docker-compose run
#
# Create a .evn file in the same folder as this file and change the variables.
# MOUNT_POINT=/tmp/
# VPN_PROVIDER=changeme
# VPN_CONFIG=changeme
# VPN_USERNAME=changeme
# VPN_PASSWORD=changeme
#
#
@markwhat1
markwhat1 / bobp-python.md
Created October 6, 2017 18:42 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens