Skip to content

Instantly share code, notes, and snippets.

View lagergren's full-sized avatar

Marcus Lagergren lagergren

View GitHub Profile
HotSpot Internals Wiki
https://wiki.openjdk.java.net/display/HotSpot/Main
High-level introduction to HotSpot
https://www.infoq.com/articles/Introduction-to-HotSpot
Jvm-Mechanics https://github.com/dougqh/jvm-mechanics.git
Open Heart Surgery: Analyzing and Debugging the Java HotSpot VM at the OS Level (by Volker Simonis, JavaOne 2014)
https://www.youtube.com/watch?v=k7IX_diKCEo
@dkgndianko
dkgndianko / clone_github_org_repos.sh
Last active October 8, 2025 17:40
Clone all repositories belonging to a given org or user at Github. You must install `gh` command (`brew install gh` under mac) and be authenticated (`gh auth login`).
org=myorg_is_here
gh repo list $org --limit 100 | cut -f 1 | xargs -L1 gh repo clone $1
@navyxliu
navyxliu / PEA_C2.md
Last active January 22, 2023 17:09
RFC: Partial Escape Analysis in HotSpot C2

RFC: Partial Escape Analysis in HotSpot C2

Summary

Reduce object-oriented overhead of a method compiled by C2 compiler. The C2 parser delays heap allocation and initialization to the place from which the object is about to escape. The optimization reduces allocation and initialization cost of an object on the paths of flowgraph where it is not escaped.

Goals

  • Perform flow-sensitive escape analysis
  • Delay heap allocation and initialization of an object until it is about to escape.
@GetVladimir
GetVladimir / Force-RGB-Color-on-M1-Mac.md
Last active January 16, 2026 13:45
Force RGB Color on M1 Mac

Force RGB Color on M1 Mac

How to Force RGB Color Output instead of YPbPr on your M1 Apple Silicon Mac for an External Monitor.

This step-by-step video tutorial will guide you through the procedure of forcing RGB color output on your M1 Mac.

Force RGB Color on M1 Mac

Here is the direct link to the video tutorial: https://www.youtube.com/watch?v=Z1EqH3fd0V4

The video also has Closed Captions (Subtitles) that you can enable, to make it easier to follow if needed.

@jdleslie
jdleslie / citrix_ctrl_alt_win.json
Last active December 3, 2025 06:22
Map Apple modifiers (Ctrl, Option, Command) to Windows modifiers (Ctrl, Win, Alt) in Citrix Workspace using Karabiner Elements, with working Alt+Tab and Windows key shortcuts
{
"title": "Citrix Receiver/Workspace modifiers for Ctrl, Alt, Windows order",
"rules": [
{
"description": "In Citrix, add fn modifier to tab so it is forwarded",
"manipulators": [
{
"from": {
"key_code": "tab",
"modifiers": { "optional": [ "any" ] }
@dive
dive / fix-emacs-permissions-catalina.el
Created September 29, 2019 09:55
Fix Emacs permissions on macOS Catalina
;;; package --- Fix permissions for Emacs.app on macOS Catalina
;;; Author: Artem Loenko
;;; Mail-To: <[email protected]>
;;; Commentary:
;;; Code:
(defconst _default-emacs-app-plist-path "/Applications/Emacs.app/Contents/Info.plist")
(defconst _temp-buffer-name "*fixing Emacs permissions*")
(defconst _temp-buffer (get-buffer-create _temp-buffer-name))
(with-current-buffer _temp-buffer (erase-buffer))
@abelcallejo
abelcallejo / README.md
Last active January 30, 2026 17:18
Creating bootable Linux USB using Mac

Creating bootable Linux USB using Mac

mac

CentOS, Ubuntu, Slackware, etc. Whatever Linux-based OS it is, you can create a bootable USB for it by using a Mac.

1. Prepare the .iso file

Download it, copy it, whatever it takes to prepare that Linux-based OS .iso file

2. Convert the .iso file into a .img.dmg

@fnky
fnky / ANSI.md
Last active January 30, 2026 18:48
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@erdincay
erdincay / sugh.sh
Last active October 8, 2025 17:41
su GitHub (downloading all repositories from a given user)
#!/bin/bash
if [ -z "$1" ]; then
echo "waiting for the following arguments: username + max-page-number"
exit 1
else
name=$1
fi
if [ -z "$2" ]; then
@RabaDabaDoba
RabaDabaDoba / ANSI-color-codes.h
Last active January 26, 2026 20:15 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"