Skip to content

Instantly share code, notes, and snippets.

View julianxhokaxhiu's full-sized avatar
🚀
Impossible Is Nothing.

Julian Xhokaxhiu julianxhokaxhiu

🚀
Impossible Is Nothing.
View GitHub Profile
@v2-dev
v2-dev / scan-l2.py
Created September 24, 2017 09:24
find every device connected to the subnet with the pair MAC Address <---> Subnet IP using scapylibrary
#! /usr/bin/env python
# scan-layer2 : arpings a subnet to find every device connected to the subnet
import sys
if len(sys.argv) != 2:
print ("Usage: scan-layer2 \n eg: scan-layer2.py 192.168.1.0/24")
sys.exit(1)
from scapy.all import srp,Ether,ARP,conf
ans,unans=srp(Ether(dst="ff:ff:ff:ff:ff:ff")/ARP(pdst=sys.argv[1]),timeout=10)
@xsot
xsot / instructions.md
Last active March 3, 2024 13:42
sed maze solver

Usage

sed -E -f solver.sed input where input is a file containing the maze.

For best results, resize your terminal to match the height of the maze. To disable animations, delete the lines containing p.

Maze format

The solver assumes the following:

  • The maze only contains the characters # \nSE
  • Every line has the same number of characters
  • There is only one start (S) and end (E)
@steven2358
steven2358 / ffmpeg.md
Last active September 2, 2025 03:53
FFmpeg cheat sheet
@HarlemSquirrel
HarlemSquirrel / pulseaudio-dlna.service
Last active December 9, 2024 02:43
a pulseaudio-dlna Unit file for systemd
## Systemd user unit file for pulseaudio-dlna
# Copy to: ~/.config/systemd/user/pulseaudio-dlna.service
# Enable: systemctl --user enable pulseaudio-dlna
[Unit]
Description=PulseAudio-DLNA Service
[Install]
WantedBy=default.target
@Brainiarc7
Brainiarc7 / fix-intel_wifi_aer-avell_g1513_fire_v3
Created July 16, 2018 13:21 — forked from flisboac/ fix-intel_wifi_aer-avell_g1513_fire_v3
Temporary fix for AER's excessive `severity=Corrected` logging for Intel Wireless (Avell G1513 Fire V3) (Arch Linux)
silly gist hack, why do we need you? :(
//
// Author: Jonathan Blow
// Version: 1
// Date: 31 August, 2018
//
// This code is released under the MIT license, which you can find at
//
// https://opensource.org/licenses/MIT
//
//
@MIvanchev
MIvanchev / article.md
Last active August 12, 2025 14:36
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@DavidKuennen
DavidKuennen / minimal-analytics-snippet.js
Last active August 28, 2025 15:49
Minimal Analytics Snippet
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {
1. Create new tiny url
```
curl -i -X POST -H "Content-Type:application/json" -d '{"url": "http://example.com"}' 'http://t.bdaily.club'
Response:
{
"msg": "ok",
"data": {
"tiny_url": "http://t.bdaily.club/ssddz",
@nicebyte
nicebyte / dyn_arr.h
Last active February 25, 2025 10:29
dyn_arr
#pragma once
#define DYN_ARR_OF(type) struct { \
type *data; \
type *endptr; \
uint32_t capacity; \
}
#if !defined(__cplusplus)
#define decltype(x) void*