Skip to content

Instantly share code, notes, and snippets.

@pharaoh1
pharaoh1 / ios_14_downgrade.md
Created December 10, 2021 18:37
How to downgrade from iOS 15 to iOS 14

How to downgrade from iOS 15 to iOS 14

The latest SEP/BB as of right now is iOS 15.1, and is partially or fully compatible with iOS 14 depending on your device. See the appropriate section for exact compatibility info.

Prequisites

Notes

  • If the exploit fails even after multiple attempts or your device reboots out of DFU mode, you'll have to start over from the beginning and be quicker next time. (You don't have to redownload anything though.) You may have to force restart your device if it's stuck in DFU.
@danieldogeanu
danieldogeanu / WampSendmail.md
Last active July 31, 2024 17:22
How to configure Wamp Server to send email with sendmail.

1. Download and Configure Sendmail for Windows:

  • Download Sendmail for Windows;
  • Extract sendmail.zip and place the contents in an easily accessible place, like C:\sendmail;
  • Open the sendmail.ini file using a text editor such as notepad and edit the following values:
    [sendmail]
    smtp_server=mail.example.com
    smtp_port=465
    [email protected]
    

auth_password=your_password

@danieldogeanu
danieldogeanu / WampHTTPS.md
Last active March 7, 2025 21:57
How to enable HTTPS for WAMP Server.

After you've downloaded and installed WAMP Server, follow these steps:

  1. Generate SSL certificate using OpenSSL:
  • Add C:\wamp64\bin\apache\apache2.4.27\bin directory to the PATH so you can access openssl command from the command prompt (WAMP comes with its own version of OpenSSL already integrated, so you don't need to install it. You'll find it in this directory.).

    IMPORTANT: Please note that the path of your installation depends on your version of Apache! DO NOT copy and paste the paths presented in this gist as they will not match with yours!

  • Navigate to your user directory (C:\Users\%YOUR_USERNAME%\), create a new folder (.openssl), navigate to it with Powershell and run these commands:

    openssl genrsa -aes256 -out private.key 2048
    

openssl rsa -in private.key -out private.key

@damiencarbery
damiencarbery / wc-attribute-name-and-value.php
Last active October 9, 2024 00:28
Display attribute name and value in WooCommerce -Show the attribute name beside the attribute value in WooCommerce (in Cart, Checkout and order emails). https://www.damiencarbery.com/2019/09/display-attribute-name-and-value-in-woocommerce/
<?php
/*
Plugin Name: Display attribute name and value in WooCommerce
Plugin URI: https://www.damiencarbery.com/2019/09/display-attribute-name-and-value-in-woocommerce/
Description: Show the attribute name beside the attribute value in WooCommerce (in Cart, Checkout and order emails).
Author: Damien Carbery
Version: 0.2
*/
add_filter( 'woocommerce_product_variation_title_include_attributes', 'dcwd_product_variation_title_include_attributes', 10, 2 );
@vdbelt
vdbelt / cloudflare-purge-cache-service-worker.js
Created August 21, 2018 11:43
A CloudFlare service worker that proxies purge cache requests. Example: https://example.com/__purge_cache?zone=XX
addEventListener('fetch', event => {
event.respondWith(purgeCache(event.request))
})
async function purgeCache(request) {
const url = new URL(request.url)
@damiencarbery
damiencarbery / download-link-to-audio-player.php
Last active April 12, 2022 13:02
Append a Download link to the WordPress audio shortcode output
@jwalanta
jwalanta / OpenWrt detect new device and send text message.md
Last active March 31, 2025 18:22
Detect new network devices connecting to OpenWrt and send text message
@thorsten
thorsten / setUserAgent.js
Created May 9, 2016 15:12
Override user agent on all browsers
function setUserAgent(window, userAgent) {
// Works on Firefox, Chrome, Opera and IE9+
if (navigator.__defineGetter__) {
navigator.__defineGetter__('userAgent', function () {
return userAgent;
});
} else if (Object.defineProperty) {
Object.defineProperty(navigator, 'userAgent', {
get: function () {
return userAgent;
@caiotarifa
caiotarifa / wpcf7_send_to_mailchimp.php
Last active February 11, 2023 17:44
CONTACT FORM 7 -> MAILCHIMP 3.0
<?php
// -------------------------------------------------------------------------- //
// CONTACT FORM 7 -> MAILCHIMP //
// -------------------------------------------------------------------------- //
// © 2015 Caio Tarifa. All Rights Reserved. //
// -------------------------------------------------------------------------- //
function wpcf7_send_to_mailchimp() {
@Gen2ly
Gen2ly / md2wp
Created July 9, 2012 23:34
Convert Markdown to Wordpress blogging format
#!/bin/bash
# Convert Markdown to Wordpress blogging format
# Required program(s)
req_progs=(ascii2uni pandoc)
for p in ${req_progs[@]}; do
hash "$p" 2>&- || \
{ echo >&2 " Required program \"$p\" not installed."; exit 1; }
done