Skip to content

Instantly share code, notes, and snippets.

View payingattention's full-sized avatar
🏠
(Waiting patiently for4ticket # https://github.com/keybase/client/issues/14640.)

// /∫ ∫∫ ∫prosodyVvVereableContext( (( [[ [( ( payingattention

🏠
(Waiting patiently for4ticket # https://github.com/keybase/client/issues/14640.)
View GitHub Profile
@payingattention
payingattention / ComcastInject.html
Created November 25, 2018 05:28 — forked from ryankearney/ComcastInject.html
This is the code Comcast is injecting into its users web traffic.
<script language="JavaScript" type="text/javascript">
// Comcast Cable Communications, LLC Proprietary. Copyright 2012.
// Intended use is to display browser notifications for critical and time sensitive alerts.
var SYS_URL='/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do';
// var image_url='http://servicealerts.comcast.net:8080/images/mt';
var image_url='http://xfinity.comcast.net/constantguard/BotAssistance/notice/images';
var headertext1='<strong>Comcast Courtesy Notice</strong>';
var textline1='You have reached 90% of your <b>monthly data usage allowance</b>.';
var textline2='Please sign in for more information and to remove this alert.';
var acknowledgebutton='<a href=\"#\" onClick="document.location.href=\''+SYS_URL+'?dispatch=redirect&redirectName=login&paramName=bmUid\'" title="Sign in to acknowledge" style="color: #FFFFFF;"><img alt="Sign in to acknowledge" src="'+image_url+'/mt_signin.png"/></a>';

###Invite your readers to leave you a Bitcoin tip on Reddit

Reddit's Bitcoin implementation is ideal for beginners. Here's how to get them to give it a try.

####Structure

require 'digest/md5'
=begin
About:
This script automatically runs on a 2-second loop, searches the current directory for haml & sass files that have been modified since the last iteration and builds them as needed into a file with the same name minus the .haml/sass extension. I wrote it so I could use Haml & Sass to develop Wordpress themes.
How-to:
1) Name your source files with the extension you'd like them to have, then add ".haml" or ".sass" as appropriate...
For example: index.php.haml and styles.css.sass
<?php
/*
Plugin Name: Disable Wptexturize
Description: Removes most calls to this incredible slow function.
Version: 1.0
Author: Thomas Scholz
Author URI: http://toscho.de
License: GPL
*/
@payingattention
payingattention / shoestrap-custom-templates.php
Last active December 17, 2015 23:29 — forked from aristath/shoestrap-custom-templates.php
Shoestrap WordPress Plugin Drop-In Overrides Shoestrap WordPress Theme Defaults
<?php
/*
Plugin Name: Shoestrap Custom Templates
Plugin URI: http://shoestrap.org
Description: This plugin replaces the default templates with our custom ones using the hooks provided by the <a href="http://shoestrap.org/downloads/shoestrap">Shoestrap</a> theme
Version: 1.00
Author: Aristeides Stathopoulos
Author URI: http://aristeides.com, http://shoestrap.org/forums/topic/template-actions-file, https://gist.github.com/aristath/5496734, https://gist.github.com/payingattention/5689514
*/
// send text email
sendEmail({
subject: "Hello, World!",
text: "This mail has been sent from the frontend",
to: "joe@exam.pl"
})
// send multipart text / html email
sendEmail({
subject: "Hello, World!",
device('192.168.2.2')
.do( 'coffee' )
.then( wakeMeUpCallback )
// convert a dom element to a PDF and download it
convert( $('.invoice') ).to( 'invoice.pdf' ).download()
// convert another website to a png and show it on the page
convert( $('.invoice') ).to( 'invoice.pdf' ).prependTo( $('.screenshots') )
// sign up
account.signUp('joe@example.com', 'secret');
// sign in
account.signIn('joe@example.com', 'secret');
// sign in via oauth
account.signInWith('twitter');
// sign out
<?php
/*
Plugin Name: Post Meta Revisions
Description: Revisions for the 'foo' post meta field
Version: 1.0
Author: John Blackbourn
Plugin URI: http://lud.icro.us/post-meta-revisions-wordpress
*/