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 / 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 <[email protected]>
# 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 / 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