Skip to content

Instantly share code, notes, and snippets.

View xnite's full-sized avatar
🎮
I'm doing Minecraft development now. I'm hoping to push out plugin updates soon!

Robert Whitney xnite

🎮
I'm doing Minecraft development now. I'm hoping to push out plugin updates soon!
View GitHub Profile
@xnite
xnite / function.php
Last active December 4, 2017 22:11 — forked from swapnilshrikhande/function.php
Send mail with mailgun api by PHP CURL.
<?php
define('MAILGUN_URL', 'https://api.mailgun.net/v3/DOMAIN_NAME');
define('MAILGUN_KEY', 'KEY');
function sendmailbymailgun($to,$toname,$mailfromname,$mailfrom,$subject,$html,$text,$tag,$replyto){
$array_data = array(
'from'=> $mailfromname .'<'.$mailfrom.'>',
'to'=>$toname.'<'.$to.'>',
'subject'=>$subject,
'html'=>$html,
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
xnite@riseup.net:
83D4ECF1 35D1DF40 A384C019 67BD5CBE 6E9C5728
64E9DB2E 6634E6D4 170D7BE9 E44E6627 1BB98E1D
SSH Keys:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAEAQC/HMK1Lz/H048UFMXlpxtQiqnat1KjFHk2TS5P8tM8/eim2eSHOc6ERcqKhtNCqTAP8/CUXx8U1K4Ko6uZvzO/AeGLj20fgUqAk7ZM3d93ButuEcnTl4a15wLVDoIzPZhMqareoAXqQMv/EMVvvBuv+YSap9wvWzKafRbSKvCIJC8MIrL89BdpsO2I/7k9Bcczsg9Go/UDoTkblVleaP6LfM2GubNO7MjF31AL438TRibjW3+PFQ7FsNgl5UToHTnrmVUAaNln63woY9UBf9KDqcQq+/5RHrCtmAvq8ISbocKIJQ1IKOahdoLK9qRTrIpcSgsq9TSMxaY6EPa1JBFT9yavMb1HaVFUModzq94pu2OJWO5ui14+WNMD4V/KTaiTkLnEdd0Yv+hZbPxhMAdgD/oY1FlfqE8uucOTVCnSrQ98+oJa1HWe+4Eri3j8VHqJMEk7JQCmOxONkRUiSrW4SU4HWFXR3ZfZa0f6dcgIgwPy8QJYG+JI/w5No128dwgPcJ9IVynsMSI2gMcZVY14QsXkvueh4snMtR1gPJsW2o/rlB8NWPhVTO9D5cpmNMfpsA1pFq4MUOO9vAPc+N7zKiZySAqhx57PozWTOGSu5ZeVJmTIPc+CN++PZPHB5YrHqhU85MrNNWPwXrIg1/+Yd8BMxzTWUznwUkjLav3KPi+OC80iSJEdlepxBkWbXhElYOdYkdXCQrKn3JM/aT50hnNIKgYUcqsCYQQn3UvzASD029/4KcoGNoFXNF9XC+pLGHfsEwDaeyqw89PaZC8dRXvuaLGin49MQoUEzOegz7K8XBf

Keybase proof

I hereby claim:

  • I am xnite on github.
  • I am xnite (https://keybase.io/xnite) on keybase.
  • I have a public key ASC8M9TddC0JeVNqdMHIf0Wa7Rbi8LY4_orOE8rm1uLpFAo

To claim this, I am signing this object:

@xnite
xnite / wp-config.php
Created December 7, 2015 14:37
this conditional statement will modify Wordpress default behavior which redirects users to the primary url for your site. It will prevent this redirection & as long as the address used to access the website ends in `.onion`.
if( preg_match( '/\.onion$/', $_SERVER['HTTP_HOST'] ) )
{
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
}

Keybase proof

I hereby claim:

  • I am xnite on github.
  • I am xnite (https://keybase.io/xnite) on keybase.
  • I have a public key whose fingerprint is 1E06 328A 1C0D D681 5612 C102 CB60 8EEE B21F DBC5

To claim this, I am signing this object: