Skip to content

Instantly share code, notes, and snippets.

View alphanetEX's full-sized avatar
thunder stealth

Anderson A. alphanetEX

thunder stealth
View GitHub Profile
@alphanetEX
alphanetEX / contacto.component.html
Created July 14, 2017 03:13
Validacion nivel 2 Angular
<div class="texto-encabezado text-xs-center">
<div class="container">
<h1 class="display-4 wow bounceIn">{{title}}</h1>
<p class="wow bounceIn" data-wow-delay=".3s">{{subtitle}}</p>
</div>
</div>
<div class="col-md-8 ">
<div class="card " [@carduserprofile]>
@alphanetEX
alphanetEX / styles.css
Created July 14, 2017 03:08
CSS Legacy
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@-webkit-keyframes spin {
@alphanetEX
alphanetEX / legacy.php
Last active July 12, 2017 01:49
Codigo Legacy
<?php
$app->get('/producto', function(Request $request, Response $response){
$consulta = "SELECT * FROM productos ORDER BY id_producto DESC;";
try{
$db = new db();
$db = $db->conectar();
$query = $db->query($consulta);\
@alphanetEX
alphanetEX / clietes.php
Created July 11, 2017 16:11
consulta php slim
<?php
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;
$app = new \Slim\App;
//Obtener todos los clientes
@alphanetEX
alphanetEX / contacto.component.html
Created July 6, 2017 01:12
Angular2 ++ Validator
<div class="texto-encabezado text-xs-center">
<div class="container">
<h1 class="display-4 wow bounceIn">{{title}}</h1>
<p class="wow bounceIn" data-wow-delay=".3s">{{subtitle}}</p>
</div>
</div>
@alphanetEX
alphanetEX / contacto.component.html
Created July 5, 2017 21:36
Formulario Rractivo Angular 2
<div class="texto-encabezado text-xs-center">
<div class="container">
<h1 class="display-4 wow bounceIn">{{title}}</h1>
<p class="wow bounceIn" data-wow-delay=".3s">{{subtitle}}</p>
</div>
</div>
@alphanetEX
alphanetEX / app.routing.ts
Created July 5, 2017 16:31
enrutamiento estatico con Angular
import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {ProductosComponent } from './productos.component';
import { HomeComponent } from './home/home.component';
import { EmpresaComponent} from './empresa/empresa.component';
import { NoticesComponent } from './notices/notices.component';
import { ContactoComponent } from './contacto/contacto.component';
import { NotificationsComponent } from './notifications/notifications.component';
import { RegistrosComponent } from './registros/registros.component';
@alphanetEX
alphanetEX / productos.component.html
Last active July 5, 2017 03:04
Basic List Produtcs on Angular2
<ul class="cd-gallery">
<li *ngFor="let tienda of tiendas" class="restaurante-item">
<a href="">
<ul class="cd-item-wrapper">
<li class="selected">
<img src="http://localhost/slim/uploads/alphanet_png-01.png" alt="Preview image" *ngIf="tienda.imagen && tienda.imagen !== 'null'" >
</li>
<li class="move-right" data-sale="true" data-price="$22">
</li>
@alphanetEX
alphanetEX / XAS-N-FIREWALL.log
Last active February 17, 2019 02:49
IP%Tables
Tipos de filtros o Tablas
iptables -L //un filtrador sencillo
iptables -t nat -L //muestra el filtro de Traducción de direcciones de red
iptables -t mangle -L //adjunta las dos anteriores tablas
estructura del filtrador sencillo
INPUT //paquetes de entrada
FORWARD //paquetes que se redirigen
OUTPUT //paquetes de salida
@alphanetEX
alphanetEX / certified.conf
Last active August 4, 2017 15:38
Configuracion de certificados SSL Debian y Ubuntu
apt-get install openssl
apt-get install openssl openssl-blacklist-extra
cd /etc/apache2/
openssl genrsa -des3 -out LLaveSSL.key
openssl req -new -key LLaveSSL.key -out miCertificado.csr
-------------------------------------------------Imagen Shutter---------------------------------------------
Country Name (2 letter code) [AU]:SV
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:San Salvador
Organization Name (eg, company) [Internet Widgits Pty Ltd]:'name of business'