Skip to content

Instantly share code, notes, and snippets.

@bradp
bradp / setup.sh
Last active April 18, 2025 02:11
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@JonathanTech
JonathanTech / InstallWindowsFeatures.bat
Last active June 9, 2019 13:33
My Current install batch for Chocolatey
choco windowsfeatures TelnetClient
choco windowsfeatures WindowsGadgetPlatform
choco windowsfeatures IIS-WebServerRole
choco windowsfeatures IIS-WebServer
choco windowsfeatures IIS-CommonHttpFeatures
choco windowsfeatures IIS-HttpErrors
choco windowsfeatures IIS-ApplicationDevelopment
choco windowsfeatures IIS-Security
choco windowsfeatures IIS-URLAuthorization
choco windowsfeatures IIS-RequestFiltering
@gabrielmerovingi
gabrielmerovingi / mycred-woo-coupon
Last active June 28, 2020 15:19
This custom shortcode allows your users to convert their myCRED points into a WooCommerce coupon, in order to give themselves a discount or partial payment on their order. In order for this to work, you need to set an exchange rate between points and your store currency and select. Requires myCRED 1.6+ and WooCommerce 2.4+
/**
* Convert myCRED Points into WooCommerce Coupon
* Requires myCRED 1.4 or higher!
* @version 1.3.1
*/
add_shortcode( 'mycred_to_woo_coupon', 'mycred_pro_render_points_to_coupon' );
function mycred_pro_render_points_to_coupon( $atts, $content = NULL ) {
// Users must be logged in
if ( ! is_user_logged_in() )