Skip to content

Instantly share code, notes, and snippets.

@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"/>
@croian
croian / macKeyRemapGuide.md
Last active February 23, 2026 19:54
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

@cornfeedhobo
cornfeedhobo / Dockerfile
Last active March 27, 2026 17:23
flutter devcontainer example
FROM opensuse/tumbleweed:latest
RUN set -ex && \
rpm --import https://dl.google.com/linux/linux_signing_key.pub && \
zypper addrepo http://dl.google.com/linux/chrome/rpm/stable/x86_64 google-chrome && \
rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
zypper addrepo https://packages.microsoft.com/yumrepos/vscode vscode && \
zypper refresh && \
zypper install --no-confirm \
binutils \
@mietzen
mietzen / macos-bitwarden-cli-with-touch-id.md
Last active April 13, 2026 13:15
How to use use Bitwarden CLI with macOS Touch ID

How to use Bitwarden CLI with macOS Touch ID

If you want to use Bitwarden CLI for ssh have a look at: How to use use Bitwarden CLI for SSH-Keys in macOS

Wirtten and tested on macOS Ventura

Configure Touch ID for the sudo command

To allow Touch ID on your Mac to authenticate you for sudo access instead of a password you need to do the following.

@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)
@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)

@jeremybise
jeremybise / baseof.html
Last active August 3, 2025 13:34
Google Fonts via config with Hugo
<!-- Wherever your head tag is located, add the new partial -->
<head>
{{ partial "google-fonts" . }}
</head>
@xahare
xahare / Docker-on-qubes.md
Last active March 5, 2026 22:39
How to run docker on Qubes-OS
@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

#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten