Skip to content

Instantly share code, notes, and snippets.

@masterchop
masterchop / python_3_email_with_attachment.py
Created June 15, 2018 02:33 — forked from rdempsey/python_3_email_with_attachment.py
Use Python 3 to send an email with an attachment using Gmail
#!/usr/bin/env python
# encoding: utf-8
"""
python_3_email_with_attachment.py
Created by Robert Dempsey on 12/6/14.
Copyright (c) 2014 Robert Dempsey. Use at your own peril.
This script works with Python 3.x
NOTE: replace values in ALL CAPS with your own values
@masterchop
masterchop / ffserver.conf
Created April 19, 2019 22:47 — forked from peterhellberg/ffserver.conf
MJPEG stream from Webcam using FFServer and FFMpeg
HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 200
MaxClients 100
MaxBandWidth 500000
CustomLog -
<Feed camera.ffm>
File /tmp/camera.ffm
FileMaxSize 200M
@masterchop
masterchop / Fisheye.shader
Created July 10, 2020 05:42 — forked from ogoshen/Fisheye.shader
RealSense T265 Fisheye Undistort Unity
Shader "Custom/Fisheye" {
Properties {
_MainTex ("MainTex", 2D) = "white" {}
// _UVMap ("UVMap", 2D) = "black" {}
_Gamma ("Gamma", float) = 0.45
}
SubShader {
Tags { "QUEUE"="Transparent" "IGNOREPROJECTOR"="true" "RenderType"="Transparent" "PreviewType"="Plane" }
Pass {
@masterchop
masterchop / remove-ads.js
Created September 13, 2020 21:21 — forked from hungdoansy/remove-ads.js
User script used in TamperMonkey to remove ads in Facebooks' news feed
// ==UserScript==
// @name Hide sponsored items
// @namespace whatisthis
// @version 0.1
// @description try to sanitize Facebook
// @author Sy Hung Doan
// @match https://www.facebook.com/*
// @match https://facebook.com/*
// @grant none
// ==/UserScript==
@masterchop
masterchop / googleSERPClickTrackingDisabler.user.js
Created November 1, 2020 19:00 — forked from erikvold/googleSERPClickTrackingDisabler.user.js
This userscript disables Google's click tracking for search results.
// ==UserScript==
// @name Google SERP Click Tracking Disabler
// @namespace googleSERPClickTrackingDisabler
// @include http*://*.google.tld/search?*
// @datecreated 2010-01-29
// @lastupdated 2010-01-29
// @version 0.1
// @author Erik Vergobbi Vold
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @description This userscript disables Google's click tracking for search results.
@masterchop
masterchop / Dark Theme Whatsapp Web.user.js
Created November 1, 2020 19:00 — forked from ruggertech/Dark Theme Whatsapp Web.user.js
Using this script with TamperMonkey you can have your whatsapp web turned into an un-noticeable dark theme app
// ==UserScript==
// @name Dark Theme Whatsapp Web
// @namespace http://userstyles.org
// @description My custom theme for Whatsapp Web. With orange and dark shades.
// @author David Jiménez
// @homepage https://userstyles.org/styles/109575
// @include https://web.whatsapp.com/
// @run-at document-start
// @version 0.20170512183823
// ==/UserScript==
@masterchop
masterchop / degoogle.js
Created November 1, 2020 19:02 — forked from Dan8267/degoogle.js
Changes Google URLs to regular URLs to avoid tracking and allowing copy and paste.
// ==UserScript==
// @name Degoogle
// @namespace Dan8267
// @description Changes Google URLs to regular URLs to avoid tracking and allowing copy and paste. Also removes annoying box.
// @include http://www.google.com/*
// @include https://www.google.com/*
// @require https://code.jquery.com/jquery-3.1.0.min.js
// @version 2
// @grant none
// ==/UserScript==
@masterchop
masterchop / instaclip.user.js
Created November 1, 2020 19:03 — forked from tangyl/instaclip.user.js
instaclip.user.js
// ==UserScript==
// @name InstaClip Poster
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Create InstaClip post from current video page
// @author Yilong Tang yilongt@opera.com
// @match https://www.facebook.com/*
// @match https://www.instagram.com/*
// @match https://www.youtube.com/*
// @match http://road-to-champion-2018.op-mobile.opera.com/assets/view/instaclip.html
@masterchop
masterchop / instaclip.user.js
Created November 1, 2020 19:03 — forked from tangyl/instaclip.user.js
instaclip.user.js
// ==UserScript==
// @name InstaClip Poster
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Create InstaClip post from current video page
// @author Yilong Tang yilongt@opera.com
// @match https://www.facebook.com/*
// @match https://www.instagram.com/*
// @match https://www.youtube.com/*
// @match http://road-to-champion-2018.op-mobile.opera.com/assets/view/instaclip.html
@masterchop
masterchop / remove_google_tracking_redirection.user.js
Created November 1, 2020 19:04 — forked from fluks/remove_google_tracking_redirection.user.js
Userscript for removing redirection and tracking(?) data from Google search results
// ==UserScript==
// @name Remove Google Redirect And Tracking From Search Results
// @description Userscript for removing redirection and tracking(?) data from Google search results.
// @version 1
// @author fluks
// @include https://*.google.*/search?*
// ==/UserScript==
document.querySelectorAll('h3.r > a')
.forEach(e => {