Skip to content

Instantly share code, notes, and snippets.

Common "no reply" emails, EXCEPT google docs notifications (which I actually want)
<apps:property name='hasTheWord' value='from:(noreply OR no-reply OR donotreply) -docs.google.com' />
Common app & service notifications
<apps:property name='hasTheWord' value='has joined your Personal Meeting Room' />
<apps:property name='from' value='[email protected]' />
<apps:property name='from' value='[email protected]' />
<apps:property name='from' value='[email protected]' />
<apps:property name='from' value='[email protected]' />
<apps:property name='from' value='[email protected]' />
creating categories
1 / 1 (100.0%) [6100661 items/min]
creating users
1 / 3552 ( 0.0%) [9552619 items/min] Invalid email '[email protected]' for 'Trevor_Townsend'. Using '[email protected]'
Error on record: {:id=>"[email protected]", :email=>"[email protected]", :name=>"Trevor Townsend", :trust_level=>1, :staged=>true, :active=>false, :created_at=>Sun, 09 Sep 2018 05:53:05 UTC +00:00}
Traceback (most recent call last):
77: from script/import_scripts/mbox.rb:7:in `<main>'
76: from script/import_scripts/mbox.rb:8:in `<module:ImportScripts>'
75: from script/import_scripts/mbox.rb:14:in `<module:Mbox>'
74: from /var/www/discourse/script/import_scripts/base.rb:47:in `perform'
/* After switching stackingthebricks.com to ConvertKit in the last few months, I found a handful of things */
/* that seemed to slow me down/force additional scrolling, so I tried hiding them from the UI with these UserStyles */
/* Obviously, these are without warrantee and could potentially break, so don't blame me if they do. */
/* Also, I am not a designer so these may not make the UI better in _your_ eyes, but they make it better for me. 😅 */
/* Hide the dashboard graph (not useful enough to be there taking up 3/4 of the screen real estate every time I log in) */
.account-graph {display:none;}
.subscribers-index div[data-component='ReportsContainer'] { display:none;}
# BEGIN W3TC Browser Cache
<IfModule mod_mime.c>
AddType text/css .css
AddType text/x-component .htc
AddType application/x-javascript .js
AddType application/javascript .js2
AddType text/javascript .js3
AddType text/x-js .js4
AddType video/asf .asf .asx .wax .wmv .wmx
AddType video/avi .avi
/*Barley Overrides*/
if ( !isset($_GET['barley_editor']) || $_GET['barley_editor'] !== 'on' )
$_GET['barley_editor'] = 'off';
remove_filter('edit_post_link', 'barley_custom_edit_post_link');
// Change "Edit" to "Edit Advanced Options" when template uses edit_post_link
function indyhall_barley_custom_edit_post_link($output) {
if ( is_single() || is_page() ) { // Only replace this link on single or pages
$output = str_replace('Edit', 'Edit Advanced Options', $output);
/*Barley Overrides*/
if ( !isset($_GET['barley_editor']) || $_GET['barley_editor'] !== 'on' )
$_GET['barley_editor'] = 'off';
remove_filter('edit_post_link', 'barley_custom_edit_post_link');
// Change "Edit" to "Edit Advanced Options" when template uses edit_post_link
function indyhall_barley_custom_edit_post_link($output) {
if ( is_single() || is_page() ) { // Only replace this link on single or pages
$output = str_replace('Edit', 'Edit Advanced Options', $output);
function barley_check_conditions() {
global $current_user, $post;
if ( isset($_GET['barley_editor']) && $_GET['barley_editor'] == 'off' )
return false;
if ( (is_single() || is_page()) && (is_main_query()) && (in_the_loop()) ) {
if ( current_user_can( 'edit_others_posts' ) || ($post->post_author == $current_user->ID) ) {
return true;
curl https://api.stripe.com/v1/transfers \
-u sk_IHiqfU9wqFlw0TTOhqGINBkQXAR8g: \
-d amount=12345678 \
-d currency=usd \
-d recipient=rp_2xtdxyERwojXtS \
-d "description=Reason for this transfer"
{
"id": "btok_2yzG1vVgKGfEtq",
"livemode": true,
...
...
"bank_account": {
"object": "bank_account",
"id": "btok_2yzG1vVgKGfEtq",
...
curl https://api.stripe.com/v1/recipients/rp_2xtdxyERwojXtS \
-u sk_IHiqfU9wqFlw0TTOhqGINBkQXAR8g: \
-d bank_account=btok_2yzG1vVgKGfEtq