This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <termios.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
const char BACKSPACE_KEY = 127; | |
const char RETURN_KEY = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage="usage: ./$(basename "$0") -s service [-d] [-m] [-c] app_name | |
where: | |
app_name: the name of the app | |
-s service: the service to change | |
-d disables the service (only put this option if you want to disable access) | |
-m sets the microphone as the service | |
-c sets the camera as the service | |
extra help: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <IOKit/IOKitLib.h> | |
#import <IOKit/graphics/IOGraphicsLib.h> | |
// this helped me out a lot <3: https://stackoverflow.com/questions/3239749/programmatically-change-mac-display-brightness | |
int main(int argc, char *argv[]) { | |
io_iterator_t iterator; | |
kern_return_t result = IOServiceGetMatchingServices(kIOMasterPortDefault, IOServiceMatching("IODisplayConnect"), &iterator); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import json | |
import subprocess | |
import secrets | |
import re | |
import requests | |
import base64 | |
import os | |
from pyperclip import copy | |
# Helpers |
OlderNewer