Skip to content

Instantly share code, notes, and snippets.

@djd0723
djd0723 / mlx_finetuning_gemma.ipynb
Created May 1, 2025 18:53 — forked from alexweberk/mlx_finetuning_gemma.ipynb
MLX Fine-tuning Google Gemma
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@djd0723
djd0723 / .gitignore
Created April 12, 2025 02:48 — forked from hieblmedia/.gitignore
Gitignore - Exclude all except specific subdirectory
#
# If all files excluded and you will include only specific sub-directories
# the parent path must matched before.
#
/**
!/.gitignore
###############################
# Un-ignore the affected subdirectory
@djd0723
djd0723 / how-to-view-source-of-chrome-extension.md
Created September 27, 2024 06:25 — forked from paulirish/how-to-view-source-of-chrome-extension.md
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@djd0723
djd0723 / how-to-view-source-of-chrome-extension.md
Created September 27, 2024 06:25 — forked from paulirish/how-to-view-source-of-chrome-extension.md
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@djd0723
djd0723 / chromiumUpdater.js
Created April 23, 2023 06:17 — forked from TayIorRobinson/chromiumUpdater.js
macOS Chromium Marmaduke build updater
// To use this simply install NodeJS (https://nodejs.org/)
// Then run node chromiumUpdater.js.
// You might want to put it in your crontab.
// Set to true for ASi builds
// Set to false for Intel builds
const APPLE_SILLICON = false
// Ignore No-Sync builds?
const SYNC_ONLY = true
// Show notifications
@djd0723
djd0723 / toolchain_osxcross.cmake
Created March 25, 2023 00:44 — forked from edp8489/toolchain_osxcross.cmake
cmake toolchain config file to cross-compile for macOS using osxcross
# specify properties of the host system
# i.e. system you're compiling ON
set(CMAKE_HOST_SYSTEM Linux)
set(CMAKE_HOST_SYSTEM_PROCESSOR x86_64)
# specify properties of the target system
# i.e. system you're compiling FOR
set(CMAKE_SYSTEM_APPLE)
set(CMAKE_SYSTEM_VERSION 20.4)
set(CMAKE_SYSTEM_PROCESSOR x86_64)
@djd0723
djd0723 / toolchain_osxcross.cmake
Created March 25, 2023 00:44 — forked from edp8489/toolchain_osxcross.cmake
cmake toolchain config file to cross-compile for macOS using osxcross
# specify properties of the host system
# i.e. system you're compiling ON
set(CMAKE_HOST_SYSTEM Linux)
set(CMAKE_HOST_SYSTEM_PROCESSOR x86_64)
# specify properties of the target system
# i.e. system you're compiling FOR
set(CMAKE_SYSTEM_APPLE)
set(CMAKE_SYSTEM_VERSION 20.4)
set(CMAKE_SYSTEM_PROCESSOR x86_64)
@djd0723
djd0723 / private_fork.md
Created February 28, 2023 09:25 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@djd0723
djd0723 / README.md
Created February 28, 2023 04:07 — forked from VysotskiVadim/README.md
Build memory trendline
  1. Record perfetto traces using the instruction. Make sure phone has some available memory on disk. Increase max trace size and length. Record only memory-related activities to reduce trace file size. You can stop recording and start a new one. Put all tracess from the session to one directory on your computer.
  2. install Pyton3 brew install python3
  3. pip3 install pandas perfetto
  4. Run ./analyse.py pathToTraceFolder applicationId. Pass directory with traces and application id a parameter, for example if you have traces in directory testTraces and you want to build memory threndline for an application com.mapbox.navigation.examples, run ./analyse.py testTraces com.mapbox.navigation.examples

If analyse.py fails because random port allocation fails, try running it one more time.

Result of the trace is a chart with memory usage (blue) + trend line(red). It additionally output cooficient of the trenline linear function to comm