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
Verificar si todo esta en orden | |
http://www.mail-tester.com/web-vUjIFq | |
configurar postfix + opendkim | |
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy | |
En el tutorial explica mal la parte de DNS | |
1.- Crear registro A -> mail | |
2.- Crear Mx 0 -> mail.example.com | |
3.- Crear TXT @ -> "v=spf1 mx ip4:...." | |
4.- Crear TXT mail._domainkey ->"v=DKIM1; g=*; k=rsa; ...." | |
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
Interesting Jquery | |
____________________________________________________________________________________ | |
//Añadir elementos a un select | |
$('#mySelect') | |
.append($("<option></option>") | |
.attr("value",key) | |
.text(value)); | |
_____________________________________________________________________________________ | |
selection tag select for select value | |
example : $('#species select option[value="' + + '"]').prop('selected',true); |
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
@extends('adminv.master') | |
@section('title_page') Crear Usuarios @stop | |
@section('description_page') Gestion de usuario @stop | |
@section('content') | |
<form action="{{route('admin.usuario.store')}}" method="post" enctype="multipart/form-data" class="form-horizontal" > | |
<input type="hidden" name="_token" id="csrf-token" value="{{ Session::token()}}" /> | |
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
package com.example.aliso.sd.activity; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.view.View; | |
import android.widget.Toast; | |
import android.view.Menu; | |
import android.view.MenuItem; |
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
curl -i -X POST \ | |
-d 'pretty=1' \ | |
-d 'setting_type=domain_whitelisting' \ | |
--data-urlencode 'whitelisted_domains=["YOUR_DOMAIN"]' \ | |
-d 'domain_action_type=add' \ | |
-d 'access_token=ACCESS_TOKEN' \ | |
'https://graph.facebook.com/v2.8/me/thread_settings' |
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
En el controller | |
$destinationPath = 'uploads/imagenes'; | |
$extension = $request->file("image")->getClientOriginalExtension(); | |
$fileName = rand(11111,99999).'.'.$extension; | |
$request->file($type)->move($destinationPath, $fileName); | |
$uri = $destinationPath."/".$fileName; | |
En la vista para crear | |
El nombre del $request->file("image") --> image es el mismo que el de name="image" |
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
[{"name":"Bears","color":"Blue","position":{"x":177,"y":85},"modelclass":"Bear","increment":false,"timestamp":false,"softdelete":false,"column":[{"colid":"c217","name":"id","type":"increments","length":"0","order":0,"defaultvalue":"","enumvalue":""},{"colid":"c218","name":"name","type":"string","length":"200","order":1,"defaultvalue":"","enumvalue":""},{"colid":"c219","name":"danger_level","type":"string","length":"200","order":2,"defaultvalue":"","enumvalue":""}],"relation":[{"extramethods":"","foreignkeys":"","name":"fish","relatedmodel":"Fish","relationtype":"hasOne","usenamespace":""},{"extramethods":"","foreignkeys":"","name":"trees","relatedmodel":"Trees","relationtype":"hasMany","usenamespace":""},{"extramethods":"","foreignkeys":"bear_id, picnic_id","name":"picnics","relatedmodel":"Picnics","relationtype":"belongsToMany","usenamespace":""}],"seeding":[]},{"name":"Fish","color":"Yellow","position":{"x":1063,"y":14},"modelclass":"Fish","increment":false,"timestamp":false,"softdelete":false,"column":[{"c |
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
<?php | |
class Crontab { | |
/* | |
(c) Gustav Genberg 2017 | |
This script uses PHP shell_exec! Make sure it is enabled before using! | |
Also make sure that the user running this script (usually www-data) have access to the crontab command! |
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
Restaurar copia de seguridad remotamente | |
ELiminamos la copia de seguridad | |
dropdb -h 192.168.188.4 -p 5432 -U postgres -W siipp | |
Creamos la bd | |
createdb -h 192.168.188.4 -p 5432 -U postgres -W siipp | |
Restauramos la copia de seguridad | |
psql -h 192.168.188.4 -p 5432 -U postgres -W siipp < archivo.sql |
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
<VirtualHost *:80> | |
ServerName siipp.tarija.gob.bo | |
ServerAlias www.siipp.tarija.gob.bo | |
DocumentRoot /var/www/html | |
# Alias /capacitacion /var/www/capacitacion/ | |
<Directory "/var/www/html/"> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny |
OlderNewer