Skip to content

Instantly share code, notes, and snippets.

View hax4dazy's full-sized avatar
🤔
Somethings wrong I can feel it

hax4dazy

🤔
Somethings wrong I can feel it
View GitHub Profile
@hax4dazy
hax4dazy / db.py
Created August 24, 2024 00:31
Quick python script to check for dupes in a few directories. This scans all dirs and then puts their SHA1 hash into the database, then checks other files if they already exist wtihin the DB
from peewee import *
db = SqliteDatabase("database.db", pragmas={"foreign_keys": 1})
class MySQLModel(Model):
class Meta:
database = db
class Files(MySQLModel):
path = TextField()
Sparky Marky Episode 1: 0xD6F3627878856980DF2868BF62734AFB0E975E27B2C0015DE97B8732A0176223
Sparky Marky Episode 2: 0x6425CEC4B6BBAB0C513B7174B4005B2E45E3496F16D619933AA95A6FFAC5EBBE
@hax4dazy
hax4dazy / osi-model.md
Last active February 13, 2023 12:10
This is the OSI model as explained from my notes

OSI model

  1. Application layer Users / Apps that interface with the user
  2. Presentation layer Handles everything to do with file's / file extentions. Example: PNG, JPG, GIF
  3. Seesion layer Deals with ports
  4. Transport layer UDP / TCP comes into play here
  5. Network layer This is the layer where stuff gets sent out to the internet. Routers live on layer 3
  6. Data link layer This is the layer where switches live, MAC addreses get assigned here.
  7. Phisical Layer Everything that connects a device to the network, think of wifi signals, ethernet cables. Everything
@hax4dazy
hax4dazy / class-notes.md
Last active April 13, 2023 08:20
Cisco class notes

Cisco class notes


Creating VLAN

  1. Enable
  2. config terminal this can be abriviated to config t
  3. vlan xx This can be any number, its easier to start from 10
  4. OPTIONAL: name class Gives the VLAN a name, you don't have to do this but is handy when viewing VLAN information