Skip to content

Instantly share code, notes, and snippets.

View damien-biasotto's full-sized avatar

Damien Biasotto damien-biasotto

  • Bondi Beach, New South Wales, Australia
  • X @thql
View GitHub Profile
@damien-biasotto
damien-biasotto / setup-guide.org
Created March 29, 2024 04:43
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.

@damien-biasotto
damien-biasotto / 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
@damien-biasotto
damien-biasotto / 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')
@damien-biasotto
damien-biasotto / 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")))
@damien-biasotto
damien-biasotto / ios_safari.log
Created January 9, 2018 21:53
iOS safari not responding log
This file has been truncated, but you can view the full file.
Jan 9 10:35:59 Damiens-iPhone com.apple.WebKit.WebContent(WebCore)[294] <Notice>: 0x147dd2770 - PerformanceMonitor::measurePostLoadCPUUsage: Process was using 0.1% CPU after the page load.
Jan 9 10:35:59 Damiens-iPhone searchd(PlugInKit)[214] <Error>: plug-in <private> pre-screen sees activating state
Jan 9 10:35:59 Damiens-iPhone pkd[88] <Notice>: allowing host 214 <private> to use plug-in <private>(<private>) uuid=17D07AC8-8EBE-4159-8E73-E0EA24A47E1E at <private>
Jan 9 10:35:59 Damiens-iPhone searchd(PlugInKit)[214] <Notice>: connection to plug-in <private>(17D07AC8-8EBE-4159-8E73-E0EA24A47E1E) lost
Jan 9 10:35:59 Damiens-iPhone searchd(PlugInKit)[214] <Error>: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.itunesu.SpotlightIndexExtension" UserInfo={NSDebugDescription=connection to service named com.apple.itunesu.SpotlightIndexExtension}
@damien-biasotto
damien-biasotto / 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"
@damien-biasotto
damien-biasotto / 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
@damien-biasotto
damien-biasotto / Dockerfile
Created July 9, 2016 02:04
Docker Compose CakePHP 3 Nginx + PHP-FPM + MailHog + Phpmyadmin
FROM php:fpm-alpine
RUN apk add --no-cache --update icu-libs icu icu-dev
RUN docker-php-ext-install intl pdo pdo_mysql
@damien-biasotto
damien-biasotto / docker-compose.yml
Created October 10, 2015 12:53
Croogo3 Docker
web:
image: occitech/cakephp:5-apache
ports:
- 80
links:
- db
- mail
volumes:
- .:/var/www/html
environment:
@damien-biasotto
damien-biasotto / .vimrc
Created September 21, 2015 20:30
My very messy vimrc
" compatible has to be the first of all ( use the real vimpower )
set nocompatible
" backup rules
set backup " enable backup files (.txt~)
set undofile " enable persistent undo
silent execute '!mkdir -p $HOME/.vim/tmp/backup'
set backupdir=$HOME/.vim/tmp/backup " where to store backup
silent execute '!mkdir -p $HOME/.vim/tmp/swap'