Skip to content

Instantly share code, notes, and snippets.

View luksfarris's full-sized avatar

Lucas Farris luksfarris

View GitHub Profile

General helpful configs

# don't auto rebase - create merge commit
git config --global pull.rebase false
# auto push new branch
git config --global --add --bool push.autoSetupRemote true
# reuse recorded resolution
git config --global rerere.enabled true 
@luksfarris
luksfarris / pycharm_precommit.md
Last active March 31, 2025 11:04
PyCharm/VSCode config & pre-commit hooks

.pre-commit-config.yaml

repos:
  - repo: https://github.com/ambv/black
    rev: 23.1.0
           - id: black
           language_version: python3.10
  - repo: https://github.com/PyCQA/flake8
@luksfarris
luksfarris / bluetooth.md
Created October 11, 2023 08:22
Bluetooth on Dell XPS Ubuntu 22

Configurations

Just some info: there's a bunch of configurations on /etc/bluetooth/main.conf. There's a few things configure there:

FastConnectable=true
ReconnectAttempts=7
ReconnectIntervals=1, 2, 4, 8, 16, 32, 64
AutoEnable=true
@luksfarris
luksfarris / recipe-book.md
Last active September 24, 2025 16:30
Recipe Book

Recipe Book

Oven-Baked Beef Jerky Recipee

Ingredients

  1. Find a thick cut of decent beef. Aim for the thickness of your thumb, but if you can't find a thick steak, it's ok, you can still cut horizontal strips instead of vertical ones.
    1. Buy around 2kg of meat (to make the process energy-efficient). If you have a lot of room in your oven, buy more.
    2. The less fat, the better. Fat spoils faster.
  2. Get gluten-free soy sauce.
@luksfarris
luksfarris / lucas.zsh-theme
Last active July 4, 2025 09:58
oh-my-zsh custom theme
# COLORS: green, red, cyan, yellow, blue, magenta, white, reset
CURRENT_BG='NONE'
() {
local LC_ALL="" LC_CTYPE="en_US.UTF-8"
SEGMENT_SEPARATOR=$'\ue0b0'
}
prompt_segment() {
@luksfarris
luksfarris / swift-cheat-sheet.md
Last active April 12, 2018 15:20
Swift 4.1 Cheat Sheet - By Lucas Farris

Swift 4.1 Cheat Sheet for Students, by Lucas Farris

Variables & Constants

var variable = "Hi, I'm a variable"
let constant = "Hi, I'm a constant"
print(variable)
@luksfarris
luksfarris / Frechet.swift
Created April 11, 2018 14:37
Swift Frechet Distance
//
// Frechet.swift
// frechet distance algorithm
//
// Created by Lucas Farris on 18/11/16.
// Copyright © 2016 Farris. All rights reserved.
//
import UIKit