Skip to content

Instantly share code, notes, and snippets.

View lewalkingdad's full-sized avatar

Damien Biasotto lewalkingdad

  • Bondi Beach, New South Wales, Australia
  • 08:49 (UTC +11:00)
  • X @thql
View GitHub Profile
@lewalkingdad
lewalkingdad / kts.nix
Last active November 3, 2025 23:42
Kakoune Tree Sitter Nix
{
config,
pkgs,
lib,
...
}:
let
groups = [
"variable"
@lewalkingdad
lewalkingdad / modus-vivendi-tinted.kak
Created October 14, 2025 11:17
Kakoune Modus Vivendi Tinted - Tree Sitter - LSP
# Modus-Vivendi-Tinted theme for Kakoune
# Extended with Tree-sitter and LSP support
# Colors from official GNU Emacs Modus Themes palette
# Color palette - Official Modus Vivendi Tinted colors
declare-option str bg_main 'rgb:0d0e1c'
declare-option str bg_dim 'rgb:1d2235'
declare-option str fg_main 'rgb:ffffff'
declare-option str fg_dim 'rgb:989898'
declare-option str bg_alt 'rgb:4a4f69'
@lewalkingdad
lewalkingdad / flake.nix
Created March 19, 2025 00:56
Nix Flake Template For Elixir / Phoenix Dev Environment
{
description = "Elixir Phoenix Dev Environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
process-compose.url = "github:Platonic-Systems/process-compose-flake";
services-flake.url = "github:juspay/services-flake";
git-hooks.url = "github:cachix/git-hooks.nix";
};
@lewalkingdad
lewalkingdad / setup-guide.org
Last active October 1, 2025 03:45
Setup NixOS on Macbook w/ Apple Silicon Chip (LUKS + LVM + BTRFS)

A guide to setup NixOS with LUKS and BTRFS on a MacBook Pro

This is mostly a dumping of my thoughts and steps I had to go to setup my macbook with NixOS.

I cannot guarantee the accuracy of the information and nor being held accountable to any issue if somehow this guide ends up on the internet.

@lewalkingdad
lewalkingdad / build.log
Created March 29, 2023 12:25
jetbrains-jdk-jcef-17.0.6-b829.5 - build log
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/4zyifzdw3d8gwwk5r61xsiphvydnrjpy-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
patching script interpreter paths in configure
configure: interpreter directive changed from "#!/bin/bash" to "/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash"
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@lewalkingdad
lewalkingdad / PKGBUILD
Created July 16, 2020 02:00
Sublime-Merge 2020 - Archlinux
# Maintainer: Honghao Li <im@rasphino.cn>
# Maintainer: Damien Biasotto <damien.biasotto@gmail.com>
pkgname=sublime-merge
pkgver=2020
pkgrel=1
pkgdesc="Meet a new Git Client, from the makers of Sublime Text"
arch=('x86_64')
url="https://www.sublimemerge.com"
license=('custom')
@lewalkingdad
lewalkingdad / magit-advices.el
Created September 19, 2019 00:29
Advised some magit functions to refresh git modeline
;;Trigger a refresh of vc-modeline on some magit functions
(require 'magit)
(defun refresh-vc-state (&rest r) (message "%S" (current-buffer))(vc-refresh-state))
(advice-add 'magit-checkout-revision :after 'refresh-vc-state '((name . "magit-refresh-on-checkout-revision")))
(advice-add 'magit-branch-create :after 'refresh-vc-state '((name . "magit-refresh-on-branch-create")))
(advice-add 'magit-branch-and-checkout :after 'refresh-vc-state '((name . "magit-refresh-on-checkout-and-branch")))
(advice-add 'magit-branch-or-checkout :after 'refresh-vc-state '((name . "magit-refresh-on-branch-or-checkout")))
@lewalkingdad
lewalkingdad / pre-commit
Created August 11, 2016 07:25
PHP Pre-Commit
#!/usr/bin/env bash
# Add or remove keywords here
KEYWORDS_REGEX="var_dump\(|die\(?|Zend_Debug::|Mage::log\(|print_r\(|console\.(debug|info|log|warn)\("
# Add extensions to check here
EXTENSIONS_REGEX="(.php$|.phtml$|.js$)"
ERRORS_BUFFER=""
TEXT_DEFAULT="\\033[0;39m"
TEXT_INFO="\\033[1;32m"
@lewalkingdad
lewalkingdad / README.md
Created July 20, 2016 01:24
Dockerized Sonar

Sonar docker HOW-TO

Just add those lines to your docker-compose.yml :

  sonar_db:
    image: postgres
    environment:
      - POSTGRES_USER=sonar
      - POSTGRES_PASSWORD=sonar