Skip to content

Instantly share code, notes, and snippets.

View hardik250186's full-sized avatar

Hardik Solanki hardik250186

View GitHub Profile
@hardik250186
hardik250186 / wp_post_migration.php
Created February 12, 2025 05:26 — forked from kaioken/wp_post_migration.php
Wordpress Post Migration
<?php
/**
* Wordpress migration from another wordpress site via its API
*/
$path = '/home/websitefolder/public';
$wordpressUrl = 'https://migratingwordpresssite.com';
$redisHost = '127.0.0.1';
@hardik250186
hardik250186 / nginx.conf
Created May 31, 2018 12:12 — forked from punit5658/nginx.conf
Nginx Configuration
gzip on;
gzip_static on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_min_length 512;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml;