Configurar Nombre que salen en los commits
git config --global user.name "dasdo"
Configurar Email
git config --global user.email [email protected]
-- Table structure for table `countries` | |
CREATE TABLE IF NOT EXISTS `countries` ( | |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
`name` varchar(60) COLLATE utf8_unicode_ci NOT NULL, | |
`iso` varchar(2) COLLATE utf8_unicode_ci NOT NULL, | |
`iso3` varchar(3) COLLATE utf8_unicode_ci NOT NULL, | |
`dial` varchar(5) COLLATE utf8_unicode_ci NOT NULL, | |
`currency` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`currency_name` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL, |
Configurar Nombre que salen en los commits
git config --global user.name "dasdo"
Configurar Email
git config --global user.email [email protected]
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ | |
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.1",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},sl |
<?php | |
function multiple_download(array $urls, $save_path = '/tmp') | |
{ | |
$multi_handle = curl_multi_init(); | |
$file_pointers = []; | |
$curl_handles = []; | |
// Add curl multi handles, one per file we don't already have | |
foreach ($urls as $key => $url) { |
SELECT n.node_id, n.lat, n.lng, n.timestamp | |
FROM nodes AS n | |
INNER JOIN ( | |
SELECT node_id, MAX(timestamp) AS timestamp | |
FROM nodes | |
GROUP BY node_id | |
) AS mn | |
ON n.node_id = mn.node_id | |
AND n.timestamp = mn.timestamp; |
public function index() | |
{ | |
$config = Array( | |
'protocol' => 'smtp', | |
'smtp_host' => 'smtp3.netcore.co.in', | |
'smtp_port' => 25, | |
'smtp_user' => '[email protected]', | |
'smtp_pass' => 'Supp0rt', | |
'mailtype' => 'html', | |
'charset' => 'utf-8', |
Encrypting text fields in Mongoose is easy using Node's built-in crypto module. You might want to do this if you're using MongoDB as a service (see the recent MongoHQ security breach); or, if you're storing OAuth tokens that could, in the wrong hands, screw with somebody's account on a 3rd party service. (Of course, you should never encrypt passwords: those should be hashed.)
Imagine you have a Mongoose model like that shown below, which is modified only slighly from the example on the MongooseJS homepage.
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');
var User = mongoose.model('User', {
name: String,
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
#Removes access to the system folder by users. | |
#Additionally this will allow you to create a System.php controller, | |
#previously this would not have been possible. | |
#'system' can be replaced if you have renamed your system folder. | |
RewriteCond %{REQUEST_URI} ^system.* | |
RewriteRule ^(.*)$ /index.php?/$1 [L] |
<?php | |
/** | |
* QR Code + Logo Generator | |
* | |
* http://labs.nticompassinc.com | |
*/ | |
$data = isset($_GET['data']) ? $_GET['data'] : 'http://labs.nticompassinc.com'; | |
$size = isset($_GET['size']) ? $_GET['size'] : '200x200'; | |
$logo = isset($_GET['logo']) ? $_GET['logo'] : FALSE; |