Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Lorhan Sohaky LorhanSohaky

🏠
Working from home
View GitHub Profile
View 2023.ics
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//UFSCar Calendar//UFSCar//
X-WR-CALNAME:UFSCar Calendar
X-WR-TIMEZONE:America/Sao_Paulo
BEGIN:VEVENT
SUMMARY:Feriado (Sexta Feira Santa).
DTSTART;TZID=America/Sao_Paulo:20230407T000000
DTEND;TZID=America/Sao_Paulo:20230408T000000
DTSTAMP:20230305T220723Z
@LorhanSohaky
LorhanSohaky / LOAD_SSD.md
Last active May 31, 2021 21:19
This is a workaround to make the SSD 2.5" work!
View LOAD_SSD.md

This is a workaround to make the SSD 2.5" work!

  1. Create /etc/initcpio/install/load_ssd and /etc/initcpio/hooks/load_ssd
  2. Edit /etc/mkinitcpio.conf
  3. Run sudo mkinitcpio -P
@LorhanSohaky
LorhanSohaky / .bashrc
Last active December 8, 2019 18:03
BASH PS1 with git branch
View .bashrc
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\[\033[01;31m\]$(parse_git_branch)\[\033[00m\]$\[\033[00m\] '
@LorhanSohaky
LorhanSohaky / .vimrc
Last active December 8, 2019 18:03
.vimrc
View .vimrc
set number
set smarttab
set cindent
set tabstop=2
set shiftwidth=2
set expandtab
set encoding=UTF-8
syntax on
@LorhanSohaky
LorhanSohaky / Makefile.mk
Last active September 8, 2018 23:38
Makefile MASM
View Makefile.mk
# Remember to use in the .asm file
# INCLUDE Irvine32.inc
# INCLUDELIB User32.Lib
# INCLUDELIB Kernel32.Lib
# INCLUDELIB Irvine32.Lib
ML=ml
LINK=link
MASMPATH=C:\masm32
View .clang-format
---
BasedOnStyle: LLVM
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: 'true'
AlignConsecutiveDeclarations: 'true'
AlignEscapedNewlines: Left
AlignOperands: 'false'
AlignTrailingComments: 'true'
AllowAllParametersOfDeclarationOnNextLine: 'false'
AllowShortBlocksOnASingleLine: 'true'