Skip to content

Instantly share code, notes, and snippets.

View HiFiPhile's full-sized avatar

Zixun LI HiFiPhile

  • Lyon, France
View GitHub Profile
@HiFiPhile
HiFiPhile / Add_compatible_spidev.patch
Created June 14, 2023 19:33 — forked from avinash-palleti/linux_4.4.patch
Adding Compatible spidev
From 3bca98328c1abe674de889ca64f37b0ad60e1e82 Mon Sep 17 00:00:00 2001
From: Avinash Reddy Palleti <[email protected]>
Date: Fri, 26 May 2017 18:47:15 +0530
Subject: [PATCH] Add compatible spidev
---
drivers/spi/spidev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
# /etc/pacman.d/hooks/999-kernel-efi-copy.hook
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Target = boot/vmlinuz*
Target = usr/lib/initcpio/*
Target = boot/*-ucode.img
[Action]
@HiFiPhile
HiFiPhile / bash.bashrc
Created October 22, 2019 10:29 — forked from 5chdn/bash.bashrc
termux bash.bashrc
PS1="\$(if [[ ${EUID} == 0 ]]; then echo '\[\033[0;31m\]\u@\h'; else echo '\[\033[0;32m\]\u@\h'; fi)\[\033[0;34m\] \w \\$\[\033[00m\] "
eval "`dircolors`"
alias ls='ls --color=auto'
alias ll='ls --color=auto -lshaF'
alias grep='grep --color=auto'
alias fbig="find . -size +128M -type f -printf '%s %p\n'| sort -nr | head -16"
alias rdir='mkdir -p ./$(cat /dev/urandom | tr -cd 'a-z0-9' | head -c 8)/$(cat /dev/urandom | tr -cd 'a-z0-9' | head -c 4)/'