Skip to content

Instantly share code, notes, and snippets.

View rsenna's full-sized avatar
🏠
Working from home

Roger Senna rsenna

🏠
Working from home
  • Barcelona, Spain
  • 06:30 (UTC +02:00)
  • X @rsenna
View GitHub Profile
@CGamesPlay
CGamesPlay / import.py
Created December 14, 2024 00:58
Migrate Obsidian (or markdown directory) to Anytype markdown import
#!/usr/bin/env python3
# /// script
# dependencies = [
# "mistune==3.0.2",
# ]
# ///
import os
import sys
import hashlib
@pmarreck
pmarreck / comparison-of-shells.md
Last active June 12, 2026 22:52
Comparison of Bash, Elvish, NuShell, Murex, es-shell, fish, xonsh, PowerShell, Oil and Ion shells

Comparison of Bash, Elvish, NuShell, Murex, es-shell, fish, xonsh, PowerShell, Oils (Oil/OSH/YSH) and Ion shells

(Originally generated by ChatGPT and reviewed/edited by Claude; now corrected/expanded based on reader feedback. YMMV.)

(generated by chatgpt 4o and reviewed/edited by claude 3.5 sonnet, YMMV)

| Feature | Bash | Elvish | NuShell | Murex | es-shell | Fish | Xonsh | PowerShell | Oil

@GiovanniGrieco
GiovanniGrieco / Setup-Podman-on-LXC.md
Last active June 18, 2025 19:00
Setup Podman on LXC

Before you start, please NOTE: this guide does not cover rootless containers!

On an hypervisor with LXD installed, create a new container, ensuring that -c security.nesting=true -c security.privileged=true is set:

lxc launch -c security.nesting=true -c security.privileged=true images:fedora/35 my-container

If the container already exists, set this parameter through lxc config:

lxc config set my-container security.nesting=true
lxc config set my-container security.privileged=true

log4j RCE Exploitation Detection

You can use these commands and rules to search for exploitation attempts against log4j RCE vulnerability CVE-2021-44228 in a MacOS using ZSH.

Based on https://gist.github.com/Neo23x0/e4c8b03ff8cdf1fa63b7d15db6e3860b

Grep / Zgrep

This command searches for exploitation attempts in uncompressed files in folder /var/log and all sub folders.

@eggplants
eggplants / ALT-SH.md
Last active March 31, 2026 03:50
List of alternative shell-scripting languages (or shells)

Alternative shell-scripting languages (or shells)

  • sorted by repo name [a-z]

amirbawab/BashClass

BashClass is an Object Oriented Programming language that compiles to BASH 4.4

@davidteren
davidteren / nerd_fonts.md
Last active July 6, 2026 23:47
Install Nerd Fonts via Homebrew [updated & fixed]
@christopher-hopper
christopher-hopper / README.md
Last active June 23, 2026 12:06
macOS Zscaler stop | disable Zscaler on mac

Disable macOS Zscaler

The following script can be used to disable Zscaler on macOS. Zscaler is corporate spyware and security software that controls access to Internet resources and spoofs TLS certificates to allow inspection of encrypted communications on centrally managed corporate computers.

This script will not uninstall the Zscaler software.

@eiriktsarpalis
eiriktsarpalis / Atom.cs
Created June 22, 2019 12:20
Clojure-style atoms for C#
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Atom
{
public class Atom<T> where T : class
{
private T _value;
@christopher-hopper
christopher-hopper / macos-desktop-finder-toggle.sh
Last active June 23, 2026 12:06
macOS Desktop Finder Files Toggle
#!/bin/bash
# vim: ai ts=2 sw=2 et sts=2 ft=sh
#
# macOS Desktop Finder Files Toggle
#
# Toggle the use of Finder to display the contents of the Desktop folder as
# icons on the macOS desktop. Hides or Shows all Finder files icons on the
# Desktop.
#
# https://ss64.com/osx/defaults.html
@christopher-hopper
christopher-hopper / domains-test.sh
Last active June 23, 2026 12:07
Read domains from a file and follow each using an HTTP GET request
#!/usr/bin/env bash
# -----
# Read domains from a file and test HTTP GET request.
#
set -o errtrace
set -o pipefail
set -o errexit
set -o nounset