Skip to content

Instantly share code, notes, and snippets.

View pkoraca's full-sized avatar

Petar Koraca pkoraca

  • Berlin, Germany
  • 13:53 (UTC +02:00)
View GitHub Profile
@webaware
webaware / force-ssl-url-scheme.php
Last active April 4, 2025 15:56
For WordPress, force the protocol scheme to be HTTPS when is_ssl() doesn't work, e.g. on a load-balanced server where _SERVER['HTTPS'] and _SERVER['SERVER_PORT'] don't indicate that SSL is being used. NB: may not be needed now, see SSL Insecure Content Fixer and HTTP Detection: https://ssl.webaware.net.au/https-detection/
<?php
/*
Plugin Name: Force SSL URL Scheme
Plugin URI: https://gist.github.com/webaware/4688802
Description: Force the protocol scheme to be HTTPS when is_ssl() doesn't work
Version: 1.0.0
Author: WebAware
Author URI: http://webaware.com.au/
@ref: http://wordpress.org/support/topic/ssl-insecure-needs-35-compatibility
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active September 12, 2025 19:56
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname