Skip to content

Instantly share code, notes, and snippets.

View skandix's full-sized avatar
🐺

hx skandix

🐺
  • Grimstad, Norway
  • 18:33 (UTC +01:00)
View GitHub Profile
@SebastianMusic
SebastianMusic / passwordlauncher.sh
Created February 13, 2026 18:45
Solve a simple challange before launching an application
#!/usr/bin/env bash
# usage: passwordlauncher.sh <name of app>
# example passwordlauncher.sh discord
#
# I use this script to wrap the executable in the .desktop file for apps which
# i sometimes open mindlessly and reflexively.
#
# The goal of this script is to give you a large enough cognitive challenge
# such that you can make the decision if you actually want to use the
# application you just tried to open or if it was just a reflex, without being
@Kethen
Kethen / readme.md
Last active November 1, 2024 19:53
So steam deck recovery image dropped, let's boot it (sorta) (non amd hardware)

Booting the Steam Deck recovery image

https://help.steampowered.com/en/faqs/view/1B71-EDF2-EB6D-2BB3

SteamOS runs a custom grub to cater it's needs for it's A/B partition design. So far the said custom grub does not boot for me on ovmf/intel uefi (maybe it boots on amd? some said they managed to just rufus the image and boot it)

skip to https://gist.github.com/Kethen/698cfa8cf387e131ebd36fbfbfe9272e#gamescope-and-non-amd-gpu if it just boots for you

Upon closer inspection the official bootloader does load some kind of amd firmware before booting the kernel

# https://twitter.com/lunasorcery/status/1295847638840020992
echo "[ Now building... 4 hours remaining ]"
sleep 3
echo "You can skip the wait by spending 40 gems."
echo "What would you like to do?"
read -p "> "
sleep 1
echo "You don't have any gems to spend!"
echo "What would you like to do?"
@nockstarr
nockstarr / Readme.MD
Created March 22, 2020 16:33
Install moloch
@araa47
araa47 / PyNixDirEnvReadme.md
Last active February 8, 2024 10:51
Python3 Dev Environment with Pipenv using Nix and direnv for Linux and macOS

System Set-Up

  1. Install nix on your system curl https://nixos.org/nix/install | sh
  2. . ~/.nix-profile/etc/profile.d/nix.sh
  3. Install direnv nix-env -i direnv
  4. Add hook into shell by running eval "$(direnv hook bash)" , you will need to add this to .bash_profile to make it presistant

Project Set-Up

Create a shell.nix file in your project with the following content. This has python 3.7 and pipenv as buildInputs

@adulau
adulau / ghidra-community.md
Last active November 11, 2023 13:16
Ghidra community - collection
@schmich
schmich / ducky.md
Last active January 18, 2026 08:51
Programming media keys on the Ducky One 2 Skyline

Programming Media Keys on the Ducky One 2 Skyline

To use media keys on the Ducky One 2 Skyline, you must record a macro to bind the media function to a hotkey combination, i.e. Fn plus some key.

Example

Important: In the instructions below, "Press X+Y+Z" means press and hold key X, press and hold key Y, press and hold key Z in that order, and then release all three.

As an example, to bind Fn+PgUp to the play/pause media function:

[~] rofi -dump-xresources
The script command 'window' has 1 options, but needs 2: <name>:<script>.
Invalid script switcher: window
! Enabled modi
rofi.modi: window,run,ssh
! Window opacity
rofi.opacity: 100
! Window width
rofi.width: 50
! Number of lines
@lopes
lopes / aes-cbc.py
Last active May 7, 2025 01:11
Simple Python example of AES in CBC mode. #python #cryptography #aes #cbc #poc
#!/usr/bin/env python3
#
# This is a simple script to encrypt a message using AES
# with CBC mode in Python 3.
# Before running it, you must install pycryptodome:
#
# $ python -m pip install PyCryptodome
#
# Author.: José Lopes
# Date...: 2019-06-14
@graceavery
graceavery / harryPotterAliases
Last active February 6, 2026 23:09
bash aliases for Harry Potter enthusiasts
alias accio=wget
alias avadaKedavra='rm -f'
alias imperio=sudo
alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"'
alias stupefy='sleep 5'
alias wingardiumLeviosa=mv
alias sonorus='set -v'
alias quietus='set +v'