Skip to content

Instantly share code, notes, and snippets.

View themanyone's full-sized avatar

Henry Kroll III themanyone

View GitHub Profile
//testing the gist
/* random.c
*
* Copyright (C) 2012-2018 by Henry Kroll III, www.thenerdshow.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@themanyone
themanyone / skip_yt_ads.py
Last active September 28, 2024 00:32
Skip YouTube Ads, for Firefox
#!/usr/bin/python
# -*- coding: utf-8 -*-
LICENSE = """
Skip YouTube Ads - does what it says
Uses Python to launch a remote-controlled FireFox process.
Copyright (C) 2024 Henry Kroll III, www.thenerdshow.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@themanyone
themanyone / SETUID.md
Created October 4, 2024 07:40
make a script always run as root

How to make a script always run as root

Operation not permitted. Could it be because it is a bash script?

The error message Operation not permitted can occur because you are attempting to set the setuid bit on a Bash script.

Most modern Unix-like operating systems, including Linux, ignore the setuid bit on scripts for security reasons. Setting setuid on scripts can lead to various security vulnerabilities, such as privilege escalation attacks, which is why the operating system typically disallows it.

Why setuid Doesn’t Work on Scripts