Skip to content

Instantly share code, notes, and snippets.

View gausam's full-sized avatar

Sam gausam

View GitHub Profile
@gausam
gausam / email.md
Created May 9, 2024 19:44
How a 17-year-old got a $150,000+ job with me

From: "Noah Kagan" noah@okdork.com

Sent: Thursday, 09 May 2024 13:07

Subject: How a 17-year-old got a $150,000+ job with me**


|**This email is from THIS podcast - iTunes - Spotify****It’s 2006.My buddy Dave McClure introduced me to a guy named Aaron who was building a product called mint.com (at the time it was called MyMint).I was super impressed. “This is the best product I’ve ever seen,” I told him.I noticed he was looking for a Director of Marketing - so I pitched him on why I would be a great fit.He laughed at me. “But you don’t know anything about marketing.”Fair point. So I spent the next week creating a 6-month marketing plan and launch strategy. Over 80 hours of researching online,

@gausam
gausam / yoco-custom-description.php
Created March 15, 2021 16:54
[Yoco WooCommerce] Use the order's display order number as the transaction description during checkout.
<?php
/**
* This recipe modifies the Yoco plugin to use the order's display order number
* as the transaction description during checkout.
*
* It is intended for use with the Yoco Payments plugin for WooCommerce:
* https://wordpress.org/plugins/yoco-payment-gateway/
*
* You can add this recipe to your site by creating a custom plugin
@gausam
gausam / pmpro-customizations.php
Created October 23, 2020 10:34
Modify the checkout page to show Register Helper fields after Billing Address fields.
<?php
/**
* This recipe modifies the checkout page to show Register Helper fields after Billing Address fields.
*
* It is intended for use with the Register Helper Add On:
* https://www.paidmembershipspro.com/add-ons/pmpro-register-helper-add-checkout-and-profile-fields/
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
@gausam
gausam / query.sql
Created October 22, 2020 10:57
Set the end date for all active members on a membership level.
/*
SQL query to update the membership end date for all active members on the membership level with ID X.
This example sets it to midnight of August 31 2021.
Please replace X with the correct membership level ID.
As always, backup your database before running raq queries of this form.
*/
UPDATE wp_pmpro_memberships_users SET enddate = '2021-08-31 23:59:59' WHERE status = 'active' AND membership_id = X;
@gausam
gausam / pmpro-customizations.php
Last active October 23, 2020 08:46
Customise the Sponsored Add On's "Would you like to create extra account(s)" title.
<?php
/**
* This recipe customises the Sponsored Add On's "Would you like to create extra account(s)" title.
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
@gausam
gausam / pmpro-customizations.php
Created October 21, 2020 14:41
Change the order of fields on the on the Member Profile Edit page.
<?php
/**
* This recipe changes the order of fields on the on the Member Profile Edit page.
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
@gausam
gausam / pmpro-customizations.php
Created October 19, 2020 10:38
Customise the confirmation text on the confirmation page.
<?php
/**
* This recipe customises the confirmation text on the confirmation page.
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
@gausam
gausam / pmpro-customizations.php
Created October 16, 2020 11:47
Add phone and shipping method fields to the checkout page, and change order of countries in Country field, with UK as the default.
<?php
/**
* This recipe adds custom phone and shipping method fields to the checkout page.
* It will also change the order of countries in the Country field and set the UK
* as the default.
*
* It is intended for use with the Register Helper and Shipping Address Add Ons:
* https://www.paidmembershipspro.com/add-ons/pmpro-register-helper-add-checkout-and-profile-fields/
* https://www.paidmembershipspro.com/add-ons/shipping-address-membership-checkout/
@gausam
gausam / pmpro-customizations.php
Created October 14, 2020 06:30
Replace the term "Log In" with "Sign In".
<?php
/**
* This recipe replaces the term "Log In" with "Sign In".
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
@gausam
gausam / pmpro-customizations.php
Created October 12, 2020 06:52
Copy an additional email address when admin approval is required for a specific membership level.
<?php
/**
* This recipe copies an additional email address when admin approval is
* required for a specific membership level.
*
* It is intended for use with the Approval Process for Membership Add On:
* https://www.paidmembershipspro.com/add-ons/approval-process-membership/
*
* You can add this recipe to your site by creating a custom plugin