Skip to content

Instantly share code, notes, and snippets.

@sojeri
sojeri / mac-keyboard-shortcuts.md
Last active August 22, 2024 03:30
How do I get my Mac to act like a PC?!

On switching to a Mac:

One of my biggest concerns about getting into [Ada Developers Academy][ada] was the technology requirement: a late model MacBook. I've been a staunch Windows and Linux user for years, and I enjoy working with basic tools like keyboard shortcuts that behave the way I expect them to. Until the switch, I had considered keyboard shortcuts as solid and standardized as screwdrivers.

The keyboard shortcuts between Windows and Linux are pretty similar, perhaps because I've always run Linux on computers that were built for Windows. I could swap between computers easily, using the same keyboard shortcuts over and over. Ctrl+V here was the same as Ctrl+V there, Alt+Tab was Alt+Tab. Happy sigh. That is not what happened when I opened my MacBook!

In one application, Ctrl+V hid the mouse pointer. In another, it hid the pointer and acted like Page Down. A few of the keys had similar names but different behaviors, and some keys were missing entirely. I caught on pretty quickly that I could u

@xahare
xahare / Docker-on-qubes.md
Last active October 16, 2024 15:30
How to run docker on Qubes-OS
@samba2
samba2 / vscode-java-formatter.md
Created December 25, 2019 10:13
Visual Studio Code Java - Method Chain Formatting

Issue

By default VS Code Java squeezes chained methods into one line. The goal is to have VS Code Java behave similary to IntelliJ: the second and following methods are properly indented but not pulled back to the line which started the method chain.

In short:

Is (not good)

@rromanchuk
rromanchuk / README.md
Last active May 10, 2024 03:28
Building ffmpeg with x265 NEON arm64 cpu acceleration support (Ubuntu LTS, t4g, a1 ec2 family)
@croian
croian / macKeyRemapGuide.md
Last active May 5, 2024 15:26
A Complete Guide to Customizing Mac Keyboard Shortcuts

A Complete Guide to Customizing Mac Keyboard Shortcuts

To help make Mac keyboard shortcuts more like Windows/Linux, and/or just customize them to your liking and boost your productivity.

The instructions here worked for me on macOS Ventura 13.4.1 (22F82) and with Karabiner-Elements (where applicable) version 14.12.0.

This is the standard version of the guide, meant to be easy to use/understand by non-advanced users, and explicit/complete in its instructions. For a more terse guide / reference see the condensed version.

A Note on Command and Control

@smit-io
smit-io / formatter.xml
Created December 17, 2024 18:06 — forked from fbricon/formatter.xml
Java formatting : brace position on new line
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="13">
<profile kind="CodeFormatterProfile" name="myProfile" version="13">
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_type_declaration" value="next_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration" value="next_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration" value="next_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block_in_case" value="next_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block" value="next_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value="next_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_constant" value="next_line"/>