Skip to content

Instantly share code, notes, and snippets.

View wnasich's full-sized avatar

Walter Nasich wnasich

  • Rosario, Santa Fe, Argentina
View GitHub Profile
@dizz
dizz / gist:2888334
Created June 7, 2012 11:37
enable ip forwarding
sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/' /etc/sysctl.conf
sysctl -p
@lavoiesl
lavoiesl / wordpress-change-url.php
Last active December 8, 2022 12:09
PHP script to replace site url in Wordpress database dump, even with WPML
#!/usr/bin/env php
<?php
/**
* PHP script to replace site url in Wordpress database dump, even with WPML
* @link https://gist.github.com/lavoiesl/2227920
*/
if (!empty($argv[1]) && $argv[1] == 'update') {
$file = file_get_contents('https://gist.github.com/lavoiesl/2227920/raw/wordpress-change-url.php');
if ($file === false) {