This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Flexbox big 4: | |
- display: flex; | |
- flex-direction | |
- align-items | |
- justify-content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( "login_headerurl", "custom_loginlogo_url" ); | |
function custom_loginlogo_url($url) { | |
return "https://nibiru.com.uy"; | |
} | |
function my_login_logo() { ?> | |
<style type="text/css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# info: WordPress installer in one command line | |
# options: DOMAIN USER | |
# | |
# Credits to Luka Paunović for wp-cli implememtation | |
#----------------------------------------------------------# | |
# Variable&Function # | |
#----------------------------------------------------------# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function shortcode_nibiru() { | |
if(is_front_page()){ | |
return '<p>' . get_bloginfo('name') . " " . date('Y') .' <a href="https://nibiru.com.uy" rel="dofollow">Diseño Web Uruguay</a></p>'; | |
}else{ | |
return '<p>' . get_bloginfo('name') . " " . date('Y'); | |
} | |
} | |
add_shortcode('nibiru_footer', 'shortcode_nibiru'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Script to change password in a list of nike+ accounts | |
#Works for Nike US and Nike EU | |
#The account file should contain email:password in each line for each account | |
ACCOUNTFILENAME="nikeemails.txt" | |
COUNTRY="US" | |
NEWPASSWORD="j-0k-oiJ-9jnoN0" | |