Skip to content

Instantly share code, notes, and snippets.

View nfedera's full-sized avatar

Norbert Federa nfedera

View GitHub Profile
@nfedera
nfedera / Get-ExtendedAttribute.ps1
Created August 11, 2022 13:56 — forked from jborean93/Get-ExtendedAttribute.ps1
Gets extended attributes for a file on an NTFS volume
# Copyright: (c) 2021, Jordan Borean (@jborean93) <jborean93@gmail.com>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
class EncodingTransformAttribute : Management.Automation.ArgumentTransformationAttribute {
[object] Transform([Management.Automation.EngineIntrinsics]$engineIntrinsics, [object]$InputData) {
$outputData = switch ($InputData) {
{ $_ -is [Text.Encoding] } { $_ }
{ $_ -is [string] } {
switch ($_) {
@nfedera
nfedera / bluetooth.sh
Created September 4, 2019 14:14
Bluez4 helper script
#!/bin/bash
BTADAPTER=""
function set_default_adapter() {
RV=$(dbus-send --system --dest=org.bluez --print-reply / org.bluez.Manager.DefaultAdapter)
if [ $? -ne 0 ]; then
return -1
fi
BTADAPTER=$(echo $RV | sed 's/^.*"\(.*\)".*$/\1/')
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <linux/input.h>
@nfedera
nfedera / skytrax3_hacking_notes.md
Last active February 22, 2024 12:01
Skytraxx 3 Hacking Notes
#!/usr/bin/env python
# cc2m3u.py - channels.conf to m3u converter for Inverto IDL based Sat>IP boxes
#
# Copyright (c) 2015 Norbert Federa
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#