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 / tooLazy4gitRepo.txt
Created February 10, 2021 03:40
producer consumer simple
HEY RANDOM STRANGER, NOTHIN' TO SEE HERE, BUT DO LEAVE A COMMENT IF U HAVE ANY POINTS TO ADD
---------------------------------------------------------------------------------------------
[run]
gcc main.c buffer.c -lpthread && ./a.out
[comments]
* This is too simple and I have used a fixed sized ring ( circular queue ) buffer, so I don't have to deal with overflow
* hardcorded the randomness into the code : see "sleep(rand()%5);" please adjust accordingly
* Seems to be working, but i dunno if this satisfies all the condition
module mem_ram_sync(
clk,
rst,
read_rq,
write_rq,
rw_address,
write_data,
read_data
);
input clk;
@Blackhawk95
Blackhawk95 / abstract_mem.cc
Last active November 26, 2018 11:26
Gem5 abstract_mem.cc (ongoing modification)
/*
* Copyright (c) 2010-2012,2017 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the functionality of the software
* licensed hereunder. You may use the software subject to the license
* terms below provided that you ensure that this notice is replicated
However, NVM has certain disadvantages for write references,
due to its high dynamic energy consumption for writes and low bandwidth compared to DRAM writes.
Literature review:
@Blackhawk95
Blackhawk95 / Sources.txt
Created August 8, 2018 10:58
Notes for Vishal
IP Geofencing :
[1] Venkata N. Padmanabhan, Lakshminarayanan Subramanian, “An
investigation of geographic mapping techniques for internet hosts”,
Proceedings of ACMSIGCOMM, p.173-185, August 2001, San
Diego, CA, USA
In this paper, we ask whether it is possible to build an IP address to geographic location mapping service for Internet hosts. Such a service would enable a large and interesting class of location-aware applications.
This is a challenging problem because an IP address does not inherently contain an indication of location. We present and evaluate three distinct techniques, collectively referred to as IP2Geo,
for determining the geographic location of Internet hosts. The first technique, Geo Track, infers location based on the DNS names of the target host or other nearby network nodes.
@Blackhawk95
Blackhawk95 / lru.cc
Created August 6, 2018 13:03
Equal Writes
/*
* Copyright (c) 2012-2013 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the functionality of the software
* licensed hereunder. You may use the software subject to the license
* terms below provided that you ensure that this notice is replicated
\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{subcaption}

Heimdall : Mitigating the Internet of Insecure Things

  • IoT - {define}
    • Architecture [from background]
    • uses cloud API’s - gateway is required
  • Applications of IoT - {examples}
  • Growth of IoT
    • 2025 - 6 trillion $ ( Mckinsey & Company : Economic growth)
    • 2020 - 20.8 billion devices ( Gartner : Sales)
  • Threats
@Blackhawk95
Blackhawk95 / networktools.txt
Last active June 5, 2021 06:43
How to install every network tool #not_perfect
To run almost all tools, run using their name (mostly using sudo [not recommended] )
eg: to run iptraf :- sudo iptraf
[for more info on ALL tools: manpages will help, [ for eg: " man iptraf " to get more info on iptraf WITHOUT internet]
1. Iptraf
sudo apt-get install iptraf
Learn More:
@Blackhawk95
Blackhawk95 / firstsomething.txt
Created April 10, 2018 17:58
ns3firstoutput
abhijithm@archlabs ~/Workspace/ns-allinone-3.27/ns-3.27 (git)-[master] % ./waf --run "scratch/wifilab1 --nwifisource=5"
Waf: Leaving directory `/home/abhijithm/Workspace/ns-allinone-3.27/ns-3.27/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (28.465s)
Hidden station experiment with RTS/CTS disabled:
Max Packets per trace file exceeded
Flow 1 (10.0.0.1 -> 10.0.0.6)
PDR 0.02576802
Collision Rate 372735bps
End to End delay 1.63582