Skip to content

Instantly share code, notes, and snippets.

WisdomPathHQ> enable
WisdomPathHQ# configure terminal
WisdomPathHQ(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.100
WisdomPathHQ(config)#ip dhcp pool InternalPool
WisdomPathHQ(dhcp-config)#network 192.168.1.0 255.255.255.0
WisdomPathHQ(dhcp-config)#default-router 192.168.1.1
WisdomPathHQ(dhcp-config)#default-router 192.168.1.1
WisdomPathHQ(dhcp-config)#exit
WisdomPathHQ(config)#exit
WisdomPathHQ#
@dkarandana
dkarandana / CustomerRouter.txt
Last active May 14, 2021 10:19
Customer Router Configuration
Router> enable
Router # configure terminal
Router (config) # hostname WisdomPathHQ
Router (config) # int Fa0/0
Router (config-if) # ip address 192.168.1.1 255.255.255.0
Router (config-if) # no shutdown
Router (config-if) # exit
Router (config) # int Se0/2/0
Router (config-if) # ip address 202.1.1.2 255.255.255.0
@dkarandana
dkarandana / App.js
Created August 31, 2020 20:41
React native Offline Sample - Lab4
/**
* React native Offline App - Lab 4
*/
import React from 'react';
import {
SafeAreaView,
StyleSheet,
View,
var TVShows = [{
name: "Planet Earth II",
IMDB: 9.5,
year: 2016,
thumb: "https://images-na.ssl-images-amazon.com/images/M/MV5BZWYxODViMGYtMGE2ZC00ZGQ3LThhMWUtYTVkNGE3OWU4NWRkL2ltYWdlL2ltYWdlXkEyXkFqcGdeQXVyMjYwNDA2MDE@._V1_UX182_CR0,0,182,268 _AL_.jpg"
},
{
name: "Band of Brothers",
IMDB: 9.5,
year: 2001,
$.fn.myBlog = function(){
return this.each(function(){
var $this = $(this);
$this.addClass('Welcome to my Blog');
});
};
$(function(){
$('h1').myBlog();
/******************************************
Hold Multiple Records as an Array[]
*******************************************
while ($movie = $results->fetch_assoc()) {
$classes = ( ++$row % 2 == 0 ) ? 'even' : 'odd';
$movieRecords .= <<<TABLE
<tr class="{$classes}">
<?php
require 'connections.php';
$sql = "SELECT * FROM movies";
/* mysqli is the connection we build in the connections.php */
$results = $mysqli->query( $sql );
if ( ! $results ) {
@dkarandana
dkarandana / connection.php
Last active December 18, 2018 07:13
PHP MySQL Connection
<?php
defined('DB_SERVER') ? null : define("DB_SERVER", "localhost");
defined('DB_USER') ? null : define("DB_USER", "******");
defined('DB_PASS') ? null : define("DB_PASS", "******");
defined('DB_NAME') ? null : define("DB_NAME", "IMDBTop100");
$mysqli = mysqli_connect( DB_SERVER, DB_USER, DB_PASS, DB_NAME);
if ( !$mysqli ) {
@dkarandana
dkarandana / webpack.config.js
Created July 23, 2018 06:55
Webpack Config
const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const EntryList = require('./weback.entrylist');
const IS_PROD = (process.env.NODE_ENV === 'prod') ? true : false;
/* output path */
const OUT_DIR_ABS = path.resolve('./dist');