This file contains hidden or 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
pm = ondemand | |
pm.max_children = 75 | |
pm.start_servers = 10 | |
pm.min_spare_servers = 5 | |
pm.max_spare_servers = 20 | |
pm.process_idle_timeout = 10s | |
pm.max_requests = 500 |
This file contains hidden or 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 | |
# | |
# For create user `GRANT LOCK TABLES, SELECT ON DATABASE.* TO 'BACKUPUSER'@'%' IDENTIFIED BY 'PASSWORD';` | |
# | |
#### MySQL CREDENTIAL ### | |
HOST='localhost' | |
USER='root' |
This file contains hidden or 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 | |
# Run as root | |
set -e | |
apt-get update | |
apt-get install -y build-essential | |
apt-get install -y libncurses5-dev | |
useradd mysql |
This file contains hidden or 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
/** | |
* load the content via AJAX, | |
* and attempt to cache in sessionStorage | |
*/ | |
(function() { | |
var hasStorage = ("sessionStorage" in window && window.sessionStorage), | |
storageKey = "yourUniqueStorageKey", | |
now, expiration, data = false; | |
This file contains hidden or 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
<?php | |
// Eliminar cualquier jQuery para solo usar el del tema | |
function resolve_conflict_jquery() { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', get_template_directory_uri() . '/js/jquery.min.js', false, null, true); | |
wp_enqueue_script('jquery'); | |
} | |
add_action('wp_enqueue_scripts', 'resolve_conflict_jquery'); | |
?> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Geolocalización</title> | |
<script type="text/javascript" src="zepto.min.js"></script> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> | |
<script type="text/javascript" src="gmaps.js"></script> | |
<link rel="stylesheet" type="text/css" href="mapa.css" /> | |
<script type="text/javascript"> |
This file contains hidden or 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
“C:\Program Files\Oracle\VirtualBox\VBoxManage.exe” setextradata “EXAMPLE VM” GUI/Seamless on | |
“C:\Program Files\Oracle\VirtualBox\VBoxManage.exe” startvm “EXAMPLE VM” -type GUI |
This file contains hidden or 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
https://mega.nz/#!9g5BwCzY!jMV9Kng8xgsQ-gy60PY3xuJfy0G_OxLGF7nJZq93Rfw |
This file contains hidden or 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
int totalHeight = 0; | |
for (int i = 0; i < adapter.getCount(); i++) { | |
View listItem = adapter.getView(i, null, listView); | |
listItem.measure(0, 0); | |
totalHeight += listItem.getMeasuredHeight(); | |
} | |
ViewGroup.LayoutParams params = listView.getLayoutParams(); | |
params.height = 200 * (arrayData.size() + 1); |
This file contains hidden or 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
ListView listView = (ListView) findViewById(R.id.listView); | |
listView.setDivider(null); | |
listView.setDividerHeight(0); |