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 bash | |
| # Download VMware Workstation for Linux | |
| # Handles legacy versions (12.x - 17.6.3) from Cloudflare CDN cache and | |
| # newer versions (17.6.4+) from Archive.org. | |
| # | |
| # Use '-k' to keep the CDN download file compressed, exiting after download. (Ignored for v17.6.4+) | |
| # Use '-v <Version>' to specify desired version directly. | |
| BASE_URL="https://softwareupdate-prod.broadcom.com/cds/vmw-desktop/" |
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 | |
| # Update package lists | |
| echo "Updating package lists..." | |
| sudo apt update | |
| # Install build-essential, kernel headers, and dkms | |
| echo "Installing build-essential, kernel headers, and dkms..." | |
| sudo apt install -y build-essential linux-headers-$(uname -r) dkms |
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 |
NewerOlder