Skip to content

Instantly share code, notes, and snippets.

View Lycea's full-sized avatar

Lycea

  • Somewhere near the lake of constance (Germany)
View GitHub Profile
@Lycea
Lycea / .spacemacs
Last active March 2, 2023 09:57
.spacemacs (temporary till dotfiles repo exists ...)
;; -*- mode: emacs-lisp; lexical-binding: t -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
@Lycea
Lycea / fix-fedora-flatpack
Created June 17, 2022 01:33
fedora fix potential flatpack crash issues (gnome-software)
#This line potentially fixes flatpack issues like crashes of gnome-software on fedora after installing fedora on a new pc
sudo rm -rf /var/lib/flatpak/
--code advent first day_sample fuel from mass
--part1 function
function calc_fuel(mass)
return math.floor(mass/3)-2
end
function calc_additional(fuel)