Skip to content

Instantly share code, notes, and snippets.

@alphanetEX
alphanetEX / practico final
Created Jun 3, 2017
Tabla de enrrutamiento IPv6 CCNA1
View practico final
Tabla practico final ipv6
direccion ISP 2015:abc:bebe::/48
XAS-CENTRAL-SV
2015:abc:bebe:1::1/64 serial0/0/0 // salida panama
2015:abc:bebe:2::1/64 serial0/0/1 // salida guatemala
2015:abc:bebe:3::1/64 serial0/2/0 // salida honduras
2015:abc:bebe:4::1/64 serial0/2/1 // salida nicaragua
@alphanetEX
alphanetEX / table of odroid.
Last active Jul 27, 2017
Interfaces of static IP
View table of odroid.
#iface wlan0 inet static
allow-hotplug eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask x.x.x.x
gateway x.x.x.x
network x.x.x.x
broadcast x.x.x.x
@alphanetEX
alphanetEX / xas-market.php
Last active Jun 25, 2017
CRUD SLIM EXAMPLE
View xas-market.php
<?php
require_once 'vendor/autoload.php';
$app = new \Slim\Slim();
$db = new mysqli("localhost", "name_of_user", "name_of_passwd", "name_of_db");
$app->get("/producto", function() use($db, $app) {
// sleep(3);
@alphanetEX
alphanetEX / contacto.component.html
Created Jun 29, 2017
Formulario basico Angular 2 + Bootstrap
View contacto.component.html
<div class="col-md-8">
<div class="card " [@carduserprofile]>
<div class="container">
<div class="row">
<div class="col-md-8">
<h2 class="m-b-2">contacto</h2>
@alphanetEX
alphanetEX / certified.conf
Last active Aug 4, 2017
Configuracion de certificados SSL Debian y Ubuntu
View certified.conf
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'
View XAS-N-FIREWALL.log
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 / productos.component.html
Last active Jul 5, 2017
Basic List Produtcs on Angular2
View productos.component.html
<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 / app.routing.ts
Created Jul 5, 2017
enrutamiento estatico con Angular
View app.routing.ts
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 / contacto.component.html
Created Jul 5, 2017
Formulario Rractivo Angular 2
View contacto.component.html
<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>
View contacto.component.html
<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>