This file contains hidden or 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
| all: main | |
| USE_QT = 5 | |
| ifeq ($(USE_QT), 6) | |
| QT6_CXXFLAGS = -I/usr/include/x86_64-linux-gnu/qt6 | |
| QT_CXXFLAGS = $(QT6_CXXFLAGS) |
This file contains hidden or 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
| //requires: com.apple.private.iokit.batterydata entitlement | |
| extern "C" | |
| CFArrayRef IOPSCopyPowerSourcesByType(int type); | |
| int healthPercent; | |
| NSArray *sources = (__bridge NSArray *)IOPSCopyPowerSourcesByType(1); | |
| NSDictionary *batteryDict = sources[0]; | |
| if (sources && sources.count && batteryDict[@"Maximum Capacity Percent"]) { |
This file contains hidden or 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
| //Sourced from http://newosxbook.com/ent.jl?ent=&osVer=iOS13 | |
| abs-client | |
| absinthe-client | |
| adi-client | |
| allow-obliterate-device | |
| allow-softwareupdated | |
| appData | |
| application-identifier | |
| aps-connection-initiate | |
| aps-environment |
This file contains hidden or 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
| if [ $# != 2 ]; then | |
| echo "Usage: $0 /path/to/input_ipa /path/to/output_ipa" | |
| exit 1 | |
| fi | |
| if ! [ -f $1 ]; then | |
| echo "'$1' does not exist" | |
| exit 1 | |
| fi |
This file contains hidden or 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
| # Interpolate video frames for a higher frame rate | |
| ffmpeg -i source.mp4 -filter:v minterpolate -r 25 result.mp4 | |
| ffmpeg -i source.mp4 -vf minterpolate=50,tblend=all_mode=average,framestep=2 result.mp4 | |
| # Change the framerate (to 5 fps) of an input h264 raw video and convert to mkv | |
| ffmpeg -r 5 -i input.h264 -vcodec copy output.mkv | |
| # Crop a video to the bottom right quarter | |
| ffmpeg -i in.mp4 -filter:v "crop=in_w/2:in_h/2:in_w/2:in_h/2" -c:a copy out.mp4 |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import socket | |
| import fcntl | |
| import struct | |
| import array | |
| SIOCETHTOOL = 0x8946 | |
| ETHTOOL_GSTRINGS = 0x0000001b | |
| ETHTOOL_GSSET_INFO = 0x00000037 | |
| ETHTOOL_GSTATS = 0x0000001d |
This file contains hidden or 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 | |
| curl http://releases.llvm.org/6.0.0/llvm-6.0.0.src.tar.xz -O | |
| tar xvzf llvm-6.0.0.src.tar.xz | |
| rm llvm-6.0.0.src.tar.xz | |
| cd llvm-6.0.0.src | |
| # get clang | |
| pushd tools | |
| curl http://releases.llvm.org/6.0.0/cfe-6.0.0.src.tar.xz -O |
This file contains hidden or 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
| /* think this is good way to send ethernet frame, commented where needed. | |
| use code for experimentation ,use man pages if u want to build something from it... | |
| some useful man pages on my machine were: man 2 socket, man 7 socket, man 7 packet, man 7 netdevice, man 7 raw | |
| to slap a licence i'd say gpl-2 so that. https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | |
| this gist inspired me to make one which is more tuned to actual raw eth frames and is a bit more complete/correct | |
| in that regard in my opinion. | |
| https://gist.github.com/austinmarton/1922600 | |
This file contains hidden or 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/sh | |
| # so, by default, monitoring and injection cannot be used with Broadcom wl wifi drivers (such as those for Macs) | |
| # this makes it impossible to do stuff like crack wifi passwords with aircrack-ng | |
| # fortunately, there is a solution burried in https://www.broadcom.com/docs/linux_sta/README.txt | |
| echo 1 > /proc/brcm_monitor0 #enables monitor mode. That's it! | |
| # prism0 is now like "mon0" (monitor mode) |
NewerOlder