Skip to content

Instantly share code, notes, and snippets.

View obiknows's full-sized avatar
🥋
cookin'

Obinna obiknows

🥋
cookin'
  • ask me
View GitHub Profile
@obiknows
obiknows / hw1prelab.md
Created January 23, 2017 22:23
HW1 Prelab
  1. What will happne if you type man man in Linux?
  2. How can you use the command ls to find out about the size of file /etc/lilo.conf
  3. What happens if you have two files with names file1 and file2 and you type mv file1 file2? Which option of mv issues a warning?
  4. What is the command that you issue if you are in directory / and want to copy the file /mydata to directory /labdata
  5. What is the command that you issue if your are in directory / and want to copy all files and directories under directory /mydirectory to directory /newdirectory?
  6. What happens if you type the command rm * in a directory?
  7. What is the command that you issue if you want to delete all files and directories under the directory /mydirectory
@obiknows
obiknows / hw2prelab.md
Last active January 31, 2017 07:23
HW2 Prelab

Pre Lab 2

by Samuel Nnodim (son2105)
  1. Write the syntax for an ifconfig command that sets the IP address of theinterface eth0 to 128.143.2.3/16 with broadcast address 128.143.255.255.

    You could write: ifconfig eth0 128.143.2.3/16 broadcast 128.143.255.255

@obiknows
obiknows / hw3prelab.md
Created January 24, 2017 15:54
HW3 Prelab
  1. What is the IOS command to change the MTU (Max Transimission Rate) for an interface on a Cisco router?
  2. How does a router determine whether datagrams to a particular host can be directly delivered through one of its interfaces?
  3. Which systems generate ICMP route redirect messages-- routers, hosts , or both?
  4. What is the default maximum TTL value used by traceroute when sending UDP datagrams?
  5. Describe the role of a default gateway in a routing table?
  6. What is the network prefix of IP address 192.110.50.3/24?
  7. Explain the difference between a network IP address and a network prefix.
  8. An organization has been assigned the network number 140.25.0.0/16 and it neeeds to create networks that support up to 60 hosts on each IP network. What is the max number of networks that can be set up? Explain.
@obiknows
obiknows / networks_hw1.md
Created January 29, 2017 04:58
Networks HW1 - Wireshark Intro

Networks HW 1

Samuel Nnodim (son2105)

What to hand in

The goal of this first lab was primarily to introduce you to Wireshark. The following questions will demonstrate that you’ve been able to get Wireshark up and running, and have explored some of its capabilities. Answer the following questions, based on your

@obiknows
obiknows / lab1.md
Last active January 31, 2017 07:24
Lab 1

Lab Report 1

Samuel Nnodim (son2105)

Brandon Bakhshai (bab2209)

Exercise 4(A)

Attach /labdata/etcfile_1

@obiknows
obiknows / hw8prelab.md
Last active April 20, 2017 18:19
HW 8 Prelab
  1. host is a DNS lookup utility that can be used with a domain name to return a corresponding IP address.

a. The top-level domain is the highest level domain name in a domain name. b. The CNAME is a domain name that is an alias for another domain name. c. A Resolver is another name for the client-side of DNS and is responsible for iniaiting the query to be translated. d. A Name server is another name for the server-side of DNS and is responsible to hosting DNS records and responding to resolvers. e. A label is a part of a DNS domain name that is delimitted by dots. f. A FQDN is the full domain name of a host on the Internet g. BIND is software run on DNS servers that translates domain names to IPs and vice-versa. h. Inverse lookup or reverse lookup is a DNS query that sends an IP address with the aim of receiving the corresponding domain name.

@obiknows
obiknows / tbrack.intermediate
Last active May 11, 2017 02:21
tbrack.wl test
make clean && make
./warhol.native -c < tests/tbrack.wl > tbrack.ll
lli tbrack.ll
; ModuleID = 'Warhol'
@fmt = private unnamed_addr constant [4 x i8] c"%d\0A\00"
declare i32 @printf(i8*, ...)
Test:
make clean && make
./warhol.native -c < tests/tfun.wl > tfun.ll
lli tfun.ll
Source:
fun int prt3() {
print(3);
return 0;
}
Test:
make clean && make
./warhol.native -c < tests/tppp.wl > tppp.ll
lli tppp.ll
Source:
fun int main() {
int[2] k;
k[0] = 0;
@obiknows
obiknows / zscroll.html
Created June 6, 2017 00:30
Scrolling along the Z-Axis
<html>
<head>
<title>Scrolling along the Z-Axis</title>
<!--
Example from http://eng.wealthfront.com/2012/03/scrolling-z-axis-with-css-3d-transforms.html
Assumes browser window is sized at a height of 400px (the size of the black box).
-->
<style>
body{height:600px;}
#viewport {