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 / practico final
Created June 3, 2017 19:28
Tabla de enrrutamiento IPv6 CCNA1
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 July 27, 2017 02:38
Interfaces of static IP
#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 June 25, 2017 19:04
CRUD SLIM EXAMPLE
<?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 June 29, 2017 04:11
Formulario basico Angular 2 + Bootstrap
<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 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'
@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 / 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 / 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 / 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 / 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>