Skip to content

Instantly share code, notes, and snippets.

View Blackhawk95's full-sized avatar
๐Ÿ˜•
Rebuilding stuffs

Abhijith M Blackhawk95

๐Ÿ˜•
Rebuilding stuffs
View GitHub Profile
@Blackhawk95
Blackhawk95 / iptables.txt
Last active April 10, 2018 17:24
iptables commands rocks
3.
abhijithm@archlabs ~ % ping 192.168.43.35
PING 192.168.43.35 (192.168.43.35) 56(84) bytes of data.
^C
--- 192.168.43.35 ping statistics ---
32 packets transmitted, 0 received, 100% packet loss, time 37674ms
4.
HAHA i blockedd facebook
abhijithm@archlabs ~ % sudo iptables -A OUTPUT -p tcp -m string --string "facebook.com" --algo kmp -j REJECT
@Blackhawk95
Blackhawk95 / thirdsomething.txt
Last active April 10, 2018 07:01
ns3 third output
CODE
---------i think u already took this ------------
#include <iostream>
#include <string>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/csma-module.h"
@Blackhawk95
Blackhawk95 / secondsomething.txt
Last active April 10, 2018 07:00
ns3 ouput second
CODE
---code---u already took----
output for 1
[jeevan@jeevan-pc ns-3.27]$ ./waf --run "scratch/dsdvwifi_0_1 -nwifisource=4 --saturated=false"
Waf: Entering directory `/home/jeevan/networklab/ns-allinone-3.27/ns-3.27/build'
Waf: Leaving directory `/home/jeevan/networklab/ns-allinone-3.27/ns-3.27/build'
@Blackhawk95
Blackhawk95 / load_store.v
Created April 5, 2018 03:01
load and store for 8 bit ALU for ADD lab
module load_store(address,data,load_or_store);
input [7:0] address;
inout [7:0] data;
input load_or_store;
reg [7:0] regmem [255:0];
wire [7:0] address;
//assign load_or_store=1'b0;
always @(*)
begin
@Blackhawk95
Blackhawk95 / idk.cc
Last active April 2, 2018 07:33 — forked from patiljeevanr/idk.cc
ethernet tcp
#include <iostream>
#include <string>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/csma-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
#include "ns3/ipv4-global-routing-helper.h"