Skip to content

Instantly share code, notes, and snippets.

@7marcus9
7marcus9 / gist:3aa04c8a91f4e83823c4b2a610548f99
Last active October 19, 2017 07:02
HSH Nmap TCP Network Test
karsten@ubu-knb:~$ nmap XXX.X.XX.XX -sT
Starting Nmap 7.01 ( https://nmap.org ) at 2017-10-19 08:40 CEST
Nmap scan report for 7marcus9.xxx.xx (XXX.X.XX.XX)
Host is up (0.041s latency).
Not shown: 984 filtered ports
PORT STATE SERVICE
20/tcp closed ftp-data
21/tcp closed ftp
22/tcp open ssh
//*******************************************************************
// Welcome to CompileJava!
// If you experience any issues, please contact us ('More Info') -->
//*******************************************************************
import java.lang.Math; // headers MUST be above the first class
// one class needs to have a main() method
public class HelloWorld
{
@7marcus9
7marcus9 / LED.BAS
Last active September 16, 2018 17:46
APA102 RGB LED (x86 Parport)
DECLARE SUB ledInit ()
DECLARE SUB ledEnd ()
DECLARE SUB ledSend (bright!, r!, g!, b!)
DECLARE SUB sendBit (bit!)
DECLARE SUB sendByte (inb!)
REM Pin D0 (Pin 2) = DATA
REM Pin D1 (Pin 3) = CLOCK
CLS
void hello()
{
char name[?];
//__x86.get_pc_thunk.bx
puts("What's your name?");
fgets(&name, 0x20, stdin);
if(strchr(name, '%') && strchr(name, 'n')) exit(1);
printf("Hello ");
printf(name);
}
@7marcus9
7marcus9 / test.asm
Last active January 11, 2020 20:24
12F629
;gpasm -p P12f629 test.asm
#include <p12f629.inc>
__CONFIG _MCLRE_ON & _CP_OFF & _WDT_OFF & _INTRC_OSC_NOCLKOUT ;Internal osc.
cblock 0x20
CNT_A
; CNT_B
numStep = 360
filename = "c:/tmp/screenshot_{}.png"
import ScreenCapture
cap = ScreenCapture.ScreenCaptureLogic()
layoutManager = slicer.app.layoutManager()
threeDWidget = layoutManager.threeDWidget(0)
threeDView = threeDWidget.threeDView()
threeDView.setPitchRollYawIncrement(360/numStep)
/*
gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -fomit-frame-pointer -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC -c -o codec_clearmode.o codec_clearmode.c
gcc -shared -Xlinker -x -o codec_clearmode.so codec_clearmode.o
*/
/*** MODULEINFO
<depend>codec2</depend>
<support_level>core</support_level>
@7marcus9
7marcus9 / doc.md
Last active February 6, 2024 14:41
Smart Building Gateway MT2683

Overview

  • SOC: AR9344-DC3A
  • RAM: 2x A3R13E40DBF-8E
  • Flash1: winbond 25Q80DVSOG
  • Flash2: ESMT F59L1G81A
  • ZWave PHY/µc: SD3502A-CNE3

UART

UART ist rechts neben dem SOC (4x Testpoint unter Quarz)

  • TP 5 = GND
@7marcus9
7marcus9 / wg_mkconf.sh
Created December 19, 2023 22:48
Script to create P2P Wiregaurd Config
#!/bin/sh
privA=$(wg genkey)
privB=$(wg genkey)
pubA=$(echo $privA | wg pubkey)
pubB=$(echo $privB | wg pubkey)
echo Public IP A:
read publicIPA
echo Public Port A