Skip to content

Instantly share code, notes, and snippets.


Satan SatanGG

Block or report user

Report or block SatanGG

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am MrXXIV on github.
  • I am mrxxiv ( on keybase.
  • I have a public key whose fingerprint is 8625 1136 A5D2 C06B B955 847A C3EC 5F2D 1E0C D81C

To claim this, I am signing this object:

View Clean out WP + optional changes.
// Include functions from the library
$file_includes = [
// 'lib/assets.php', // Scripts and stylesheets
foreach($file_includes as $file) {
if (!$filepath = locate_template($file)) {
trigger_error(sprintf(__('Error locating %s for inclusion', 'sage'), $file), E_USER_ERROR);
require_once $filepath;
View FormType.php
namespace AppBundle\Form\Type
use AppBundle\Form\DataTransformer\ContactPersonLanguageModelTransformer;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class AcmeType extends AbstractType
View BasicNginxPHP
# Pass all .php files onto a php-fpm/php-fcgi server.
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
# This is a robust solution for path info security issue and works with "cgi.fix_pathinfo = 1" in /etc/php.ini (default)
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
SatanGG / Frontend user profile in WordPress
Last active Aug 29, 2015 — forked from chrisdigital/Frontend user profile in WordPress
Setting up a editable user profile in WordPress on the frontend.
View Frontend user profile in WordPress
//How to edit a user profile on the front end?
//Forcing nickname as display_name in custom edit profile template
#!/usr/bin/env bash
# names of latest versions of each package
export VERSION_PCRE=pcre-8.36
export VERSION_OPENSSL=openssl-1.0.2a
export VERSION_NGINX=nginx-1.7.12
# URLs to the source directories
You can’t perform that action at this time.