Skip to content

Instantly share code, notes, and snippets.

View mgesmundo's full-sized avatar

Marcello Gesmundo mgesmundo

View GitHub Profile
@mgesmundo
mgesmundo / xcode-keybindings-as-vscode.md
Created February 18, 2023 19:21 — forked from tranquan/xcode-keybindings-as-vscode.md
Xcode KeyBindings as VSCode

Add this to /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist Thanks to: https://gist.github.com/emotality/b1bcb2bb8a07921f9c8cad1c969daedf

<key>Duplication</key>
<dict>
    <key>Duplicate Current Line</key>
    <string>moveToBeginningOfLine:, deleteToEndOfLine:, yank:, insertNewline:, moveToBeginningOfLine:, yank:</string>
    <key>Duplicate Lines</key>
    <string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:</string>
@mgesmundo
mgesmundo / readme.md
Created October 14, 2020 18:17 — forked from ubergesundheit/readme.md
systemd traefik.service

systemd Service Unit for Traefik

Adapted from caddy systemd Service Unit

The provided file should work with systemd version 219 or later. It might work with earlier versions. The easiest way to check your systemd version is to run systemctl --version.

Instructions

We will assume the following:

@mgesmundo
mgesmundo / vue-json-schema-loader.js
Created August 23, 2020 08:17
Vue cli 3 json schema loader with reference and pointer implementation
const $RefParser = require('@apidevtools/json-schema-ref-parser')
/**
* Vue cli 3 usage example.
*
* // vue.config.js file
* module.exports = {
* chainWebpack: config => {
* config.module
* .rule('yaml')