Skip to content

Instantly share code, notes, and snippets.

View rusty-snake's full-sized avatar
🔮

rusty-snake

🔮
View GitHub Profile
@rusty-snake
rusty-snake / systemd_cmds.md
Created December 21, 2019 16:55
systemd commands

systemd commands

systemd

CMD DESC
busctl Introspect the bus.
coredumpctl List or retrieve coredumps from the journal.
@rusty-snake
rusty-snake / firecfg.patch
Last active July 20, 2021 08:46
Alternative firecfg .desktop cleaning | Use >> https://github.com/rusty-snake/firecfg.py <<
--- a/src/firecfg/main.c
+++ b/src/firecfg/main.c
@@ -486,8 +486,5 @@ int main(int argc, char **argv) {
if (arg_debug)
printf("%s %d %d %d %d\n", user, getuid(), getgid(), geteuid(), getegid());
- // fix .desktop files in ~/.local/share/applications directory
- fix_desktop_files(home);
-
return 0;
@rusty-snake
rusty-snake / build-firejail-rpm.sh
Last active August 13, 2021 09:58
Build a firejail rpm and install it.
#!/bin/bash
# Copyright © 2020,2021 rusty-snake
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@rusty-snake
rusty-snake / noprofile.md
Last active November 8, 2021 08:52
A firejail profile which is weaker than --noprofile. Only for debugging purpose.
We couldn’t find that file to show.
@rusty-snake
rusty-snake / 2-dimensional-array.bash
Created January 2, 2021 10:38
two dimensional arrays in bash
#!/bin/bash
# Copyright © 2020 rusty-snake
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@rusty-snake
rusty-snake / maintenance-status.md
Last active March 31, 2026 06:52
Proposal to easily show the maintenance status of a project.

maintenance status

maintenance-status: passively-maintained version: 3.1.0

Proposal to easily show the maintenance status of a project.

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be

@rusty-snake
rusty-snake / xdg-open.c
Last active March 28, 2025 16:29
xdg-open.c – A xdg-open drop-in wrapper to make xdg-open work nicely with firejail.
/*
* Copyright © 2021 rusty-snake
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
@rusty-snake
rusty-snake / powersafe-undo.sh
Created September 23, 2021 08:01
Tweak battery usage on a Linux with GNOME desktop. powertop needs to be installed.
#!/bin/bash
# Copyright © 2020 rusty-snake
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#!/usr/bin/python3
# Copyright © 2020,2021 rusty-snake
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: