A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
#!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: |
# 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: |
# 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 | |
# |
version: '2' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
container_name: nginx-proxy | |
restart: always | |
network_mode: ME_default | |
volumes: |
# 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 | |
# | |
# |