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 | |
| # | |
| # Show user stats (commits, files modified, insertions, deletions, and total | |
| # lines modified) for a repo | |
| git_log_opts=( "$@" ) | |
| git log "${git_log_opts[@]}" --format='author: %ae' --numstat \ | |
| | tr '[A-Z]' '[a-z]' \ | |
| | grep -v '^$' \ |
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
| code = """your IDA decompiler output here""" | |
| lines = code.split('\n') | |
| import re | |
| from enum import Enum | |
| mfp1 = re.compile('(\S*?) \S*? ([-+])\[(\S*) ([^\]]*)]\(([^\)]*)\)') | |
| depth1_objc_call = re.compile('([-+])\[(\S*) ([^\]]*)]\(([^\)]*)\)') |
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 python3 | |
| # mbox_split.py | |
| # | |
| # Split a mailbox into separate patch files, stripping the transfer encoding | |
| # and minimizing the headers along the way. | |
| # | |
| # Written by Paolo Bonzini <pbonzini@redhat.com> | |
| import argparse |
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
| // Original video tutorial | |
| // https://www.youtube.com/watch?v=6iSuc2vxT8g | |
| // 0. Install a Homebrew | |
| // https://brew.sh/ | |
| // 1. Install Ruby to your Mac | |
| // brew install ruby | |
| // 2. Install aria2 tool |
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
| import sys | |
| import json | |
| import re | |
| kslide = 0x0 | |
| if len(sys.argv) < 2: | |
| print("Usage: PanicParser.py [file path]") | |
| exit() |
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
| @interface _UIBackdropView : UIView | |
| -(id)initWithStyle:(long long)style; | |
| -(long long)style; | |
| @end | |
| @interface SBFloatingDockPlatterView | |
| @property (nonatomic, retain) _UIBackdropView * backgroundView; | |
| @end | |
| @interface SBFolderBackgroundView : UIView |
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
| #include <stdio.h> | |
| #import <Foundation/Foundation.h> | |
| int main(int argc, char **argv) { | |
| NSArray * options = @[ | |
| @"-h", | |
| @"--help", | |
| @"--get", | |
| @"--set", | |
| ]; |
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
| import AudioToolbox.AudioServices | |
| // 'Peek' feedback (weak boom) | |
| let peek = SystemSoundID(1519) | |
| AudioServicesPlaySystemSound(peek) | |
| // 'Pop' feedback (strong boom) | |
| let pop = SystemSoundID(1520) | |
| AudioServicesPlaySystemSound(pop) |