Skip to content

Instantly share code, notes, and snippets.

@sagittarius-a
sagittarius-a / _idapro9_macarm_patch_guide.md
Created August 12, 2024 20:50
Guide: Patching IDA Pro 9.0 BETA

Patching the IDA Pro 9.0 BETA

Note

Obligatory disclaimer: this is for educational purposes only. I am not responsible for any damages caused by following this guide, or using any of the script(s) herein.

This guide prioritizes arm64 macOS, but may also work for other platforms.


Step 1 - Patching dylibs

@colinangusmackay
colinangusmackay / Custom.css
Last active September 29, 2024 09:37
Custom CSS file for Chrome
/*
This is a custom css file for Chrome. It can be used to create an
initial stylesheet for a document.
It should be placed in the following location:
Windows: C:\Users\<user>\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets
Mac: Mac: ~/Library/Application Support/Google/Chrome/Default/User StyleSheets/Custom.css
Linux (Chromium): ~/.config/chromium/Default/User StyleSheets/Custom.css
@nemotoo
nemotoo / .gitattributes
Last active September 29, 2024 09:36
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@hazratbilal0079
hazratbilal0079 / gist:f10edaf2567ac054cc6bbfc7c30e40c1
Created September 29, 2024 06:49
Add Custom role from frontend using php hook
hook name: registernewrole
Hook:
add_action( 'jet-form-builder/custom-action/registernewrole', 'register_new_user_role', 10, 2 );
function register_new_user_role( $request, $handler ) {
// Get the role name from the form field (assuming the field name is 'role_name')
$role_name = isset( $request['role_name'] ) ? sanitize_text_field( $request['role_name'] ) : '';
// Get the capabilities from the form field (assuming the field name is 'select_capabilities')
$capabilities = isset( $request['select_capabilities'] ) ? array_map( 'sanitize_text_field', (array) $request['select_capabilities'] ) : [];
@raysan5
raysan5 / raylib_vs_sdl.md
Last active September 29, 2024 09:34
raylib vs SDL - A libraries comparison

raylib_vs_sdl

In the last years I've been asked multiple times about the comparison between raylib and SDL libraries. Unfortunately, my experience with SDL was quite limited so I couldn't provide a good comparison. In the last two years I've learned about SDL and used it to teach at University so I feel that now I can provide a good comparison between both.

Hope it helps future users to better understand this two libraries internals and functionality.

Table of Content

@tohutohu
tohutohu / private-isu.yaml
Last active September 29, 2024 09:31
private-isu素振り用Cloud Formation 東京リージョンで作成してください
AWSTemplateFormatVersion: '2010-09-09'
Description: private-isu template
Parameters:
KeyPairName:
Description: "Amazon EC2 Key Pair"
Type: AWS::EC2::KeyPair::KeyName
GitHubUsername:
Description: "GitHub Username for SSH public key"
Type: String
@craigtp
craigtp / AdvancedDistributedSystemDesignCourseNotes.md
Created May 1, 2020 19:38
Notes on Udi Dahan's Advanced Distributed System Design Course

Advanced Distributed System Design Course - Udi Dahan

Notes by Craig Phillips

Fallacies of Distributed Computing

  • There are 11 fallacies of Distributed Computing:
    1. The network is reliable
    2. Latency isn’t a problem
    3. Bandwidth isn’t a problem
    4. The network is secure
  1. The topology won’t change
@ishad0w
ishad0w / aveyo_edge_removal.bat
Last active September 29, 2024 09:30
AveYo (Microsoft Edge Removal)
@(set "0=%~f0"^)#) & powershell -nop -c iex([io.file]::ReadAllText($env:0)) & exit /b
#:: just copy-paste into powershell - it's a standalone hybrid script
sp 'HKCU:\Volatile Environment' 'Edge_Removal' @'
$also_remove_webview = 1
## why also remove webview? because it is 2 copies of edge, not a slimmed down CEF, and is driving bloated web apps
$also_remove_widgets = 1
## why also remove widgets? because it is a webview glorified ad portal on msn and bing news cathering to stupid people
$also_remove_xsocial = 1
## why also remove xsocial? because it starts webview setup every boot - xbox gamebar will still work without the social crap
@piyushgarg-dev
piyushgarg-dev / README.md
Last active September 29, 2024 09:28
Kafka Crash Course