Skip to content

Instantly share code, notes, and snippets.

@sabicalija
sabicalija / regex-snort-101.js
Created January 11, 2021 17:02
RegExp Example for snort+
const alert = `++ [0] /home/payman/snort_src/snort3/captures/test_case/knxnetip/header/02_knxnetip_invalid_header_size.pcap
pkt:1 gid:147 sid:2 rev:0
timestamp:08/20-01:50:54.000000
eth(DLT): 0A:01:01:01:01:01 -> 0A:02:02:02:02:02 type:0x0800
ipv4(0x0800): 172.22.10.76 -> 172.22.12.76
Next:0x11 TTL:255 TOS:0x0 ID:4660 IpLen:20 DgmLen:51
udp(0x11): SrcPort:3671 DstPort:41975 Len:23
knxnetip.raw[65]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@sabicalija
sabicalija / course.html
Created December 22, 2020 07:33
StudyATHome Internationally - Snippets (WCAG Conformance)
<html lang="en-US" class=" ">
<head>
<title>The Connected Car | StudyATHome Internationally</title>
<style type="text/css">
svg:not(:root).svg-inline--fa {
overflow: visible;
}
.svg-inline--fa {
@sabicalija
sabicalija / day-1.md
Created November 18, 2020 14:45
Web Accessibility Schulung

W3C ARIA Best Practices

HÜ:

  • Screenreader test
  • 1 Seite mit QuickRef analysieren

"Wenn's Scheiße programmiert ist, dann hast natürlich ein Problem." Gerhard Nussbaum, 18. Nov 2020

Web Accessibility Toolbar for IE

@sabicalija
sabicalija / EXERCISE.md
Last active October 30, 2019 15:41
TM4C1294NCPDT Timer

Exercises

Practice makes perfect!

Exercise 01: Toggle

Implement a simple timer application which toggles the board LED with a frequency configurable with a macro.

#define FREQUENCY (8) // in Hz
@sabicalija
sabicalija / server.js
Created October 21, 2019 18:43
Node.js - Example: HTTP
const http = require("http");
const fs = require("fs");
const welcomePage = `<html>
<head><title>My First Page</title></head>
<body><h1>Hello from my Node.js Server!</h1></body>
</html>`;
const defaultPage = `<html>
<head><title>My First Page</title></head>
<body>
@sabicalija
sabicalija / toggle-led-server.js
Created October 20, 2019 23:50
Johnny 5 goes Raspberry Pi 3
const { Board, Led} = require("johnny-five");
const { RaspiIO } = require("raspi-io");
const board = new Board({
io: new RaspiIO()
});
const http = require("http");
const host = "127.0.0.1";
const port = 80;
let led = null;
@sabicalija
sabicalija / EXERCISE.md
Last active June 4, 2024 07:34
TM4C1294NCPDT Interrupts

Exercises

Practice makes perfect!

Exercise 01: Register ISR for GPIO IRQs (static)

Use the provided template and register an Interrupt Service Routine (ISR), statically, which toggles the LEDs on the board. Register the ISR with the tm4c startup file (tm4c1294ncpdt_startup_c) for a GPIO Interrupt Request (IRQ) to the port connected to the user switches. TIPS: Don't forget to use keywords such as extern and interrupt, which are possibly not written in the startup code.

@sabicalija
sabicalija / AsTeRICS tag state
Created February 6, 2019 08:11
AsTeRICS tag state
File generated with:
git log --tags --simplify-by-decoration --pretty="format:%ci %H %d"
const fetch = require("node-fetch");
let api = "https://api.github.com/repos/asterics/AsTeRICS/";
let raw = "https://raw.githubusercontent.com/asterics/AsTeRICS/";
let path = "Documentation/ACS-Help/HTML/";
let tags = "https://api.github.com/repos/asterics/AsTeRICS/tags/";
let sections = ["Plugins", "ACS", "ARE"];
let link = `${api}contents/${path}Plugins`;