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 | |
# Function to display usage | |
usage() { | |
echo "Usage: $0 [-r|--recursive] [-o|--output-dir <directory>] <file|directory>" | |
echo "Options:" | |
echo " -r, --recursive Process images in subdirectories (only applies to directories)" | |
echo " -o, --output-dir Directory to store all OCR text files (default: same as image)" | |
exit 1 | |
} |
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
javascript:(function(){const currentUrl=window.location.href;const match=currentUrl.match(/^https:\/\/github\.com\/([^\/]+)\/([^\/]+)(\/|$)/);if(match&&match.length>=3){const username=match[1];const repository=match[2];const userRepo=`${username}/${repository}`;navigator.clipboard.writeText(userRepo).then(function(){if(!currentUrl.endsWith('/transfer')){window.location.href=currentUrl.replace(/\/$/,'')+'/transfer';}}).catch(function(err){alert('Failed to copy to clipboard');});}else{alert('This bookmarklet only works on GitHub repository pages.');}})(); |
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
use rustc_lexer::{tokenize, Token, TokenKind}; | |
use std::io::{self, Read}; | |
enum Cmd { | |
Print(usize), | |
Space, | |
Skip(usize), | |
} | |
fn layout(toks: impl Iterator<Item = Token>) -> impl Iterator<Item = Cmd> { |
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 | |
set -x | |
PROTON="GE-Proton8-4" | |
APPID=813780 | |
CAPTURE_AGE_VERSION=1.6.1 | |
STEAM_PATH="${HOME}/.steam" | |
STEAMAPPS="${STEAM_PATH}/root/steamapps" | |
COMPATIBILITY_TOOLS="${STEAM_PATH}/root/compatibilitytools.d" |
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
1. No racism, sexism, bigotry, hate speech, profanity towards people or groups, and other attacks on people or groups. | |
2. No sharing of pirated software or encourage piracy in any channel. | |
3. No intent to abuse or trigger behaviour related to mental issues (e.g. autism spectrum, borderline, depression, dysphoria, stress etc.) | |
4. No discussions about politics/religion/ideology | |
5. There is a restricted area focused on Reverse Engineering; Invitation to this area can only be received through current members of that area. The best way to gain access is to show your previous work to one of these members. A mod has to approve any request. | |
6. Don't beg to be added to the restricted area. | |
7. Don't repeatedly ask the same question, people will update you when they know more. | |
8. Secret channels are marked with 🤐, don’t share information with people without access to them. | |
9. Doing the same work should be discouraged. Working together should be applauded. | |
10. New channels for projects can be made when requested by at le |
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
git checkout --orphan freshBranch | |
git add -A | |
git commit | |
git branch -D main | |
git branch -m main | |
git push -f origin main | |
git gc --aggressive --prune=all | |
git push -f origin main |
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
{ | |
"Bengalis": { | |
"1": 1, | |
"2": 1 | |
}, | |
"Poles": { | |
"1": 31, | |
"2": 31 | |
}, | |
"Slavs": { |
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
; IMPORTANT: Follow the instructions at | |
; https://docs.godotengine.org/en/stable/getting_started/workflow/export/changing_application_icon_for_windows.html | |
; and make sure the "Options > Application > Product Version" field is set | |
; in Godot's Export dialog before exporting your EXE file. Otherwise, | |
; Inno Setup will mistake the Godot version for your game's version. | |
; | |
; You can check whether you were successful by examining the .EXE file's | |
; properties dialog on Windows, or by using the `peres -v` command from `pev` | |
; on Linux. | |
; |
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
# Attempts to demangle all mangled symbols in the current program using the Rust | |
# mangling schemes, and replace the default symbol and function signature | |
# (if applicable) with the demangled symbol. | |
# | |
# License: MIT OR Apache-2.0 | |
#@author Jack Grigg <[email protected]> | |
#@category Symbol | |
from ghidra.app.util.demangler import ( | |
DemanglerOptions, |
NewerOlder