#MongoDB 3.2.x Security
##Network Ports The standard ports used by mongo are:
Process | Role | Default Port |
---|
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldsite.com', 'http://www.newsite.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = REPLACE (guid, 'http://www.oldsite.com.br', 'http://www.newsite.com'); | |
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://www.oldsite.com', 'http://www.newsite.com'); | |
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://www.oldsite.com','http://www.newsite.com'); |
var mobileCheck = { | |
ios: (function(){ | |
return navigator.userAgent.match(/iPhone|iPad|iPod/i); | |
}()), | |
android: (function(){ | |
return navigator.userAgent.match(/Android/i); | |
}()), | |
blackBerry: (function(){ | |
return navigator.userAgent.match(/BB10|Tablet|Mobile/i); | |
}()), |
<?php | |
/** | |
* return $images_id array() | |
*/ | |
function get_gallery_attachments(){ | |
global $post; | |
$post_content = $post->post_content; | |
preg_match('/\[gallery.*ids=.(.*).\]/', $post_content, $ids); | |
$images_id = explode(",", $ids[1]); |
{ | |
"parser": "babel-eslint", | |
"extends": ["airbnb", "airbnb/hooks", "prettier"], | |
"plugins": ["react", "react-hooks", "prettier"], | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true, | |
"jest": true | |
}, |
{ | |
"trailingComma": "es5", | |
"semi": false, | |
"singleQuote": true, | |
"bracketSpacing": true, | |
"jsxBracketSameLine": false | |
} |
#MongoDB 3.2.x Security
##Network Ports The standard ports used by mongo are:
Process | Role | Default Port |
---|
# SSL self signed localhost for rails start to finish, no red warnings. | |
# 1) Create your private key (any password will do, we remove it below) | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
{ | |
"patterns": [ | |
{ | |
"pattern": "(console\\.log\\(.*?\\))", | |
"scopes": [ | |
"storage.type.function.js", | |
"meta.function.json.js", | |
"source.js" | |
] | |
}, |
/** | |
iOS Media Queries | |
compatível com iPhone, iPhone 3G, iPhone 3GS, iPhone 4, iPhone 4S, iPad, and iPad 2 | |
Author @hullen | |
Fique a vontade em utilizar, colaborar e compartilhar! | |
*/ | |
/** | |
iPhone (4/4S) - modo paisagem | |
cor do link: laranja com fundo verde |