Skip to content

Instantly share code, notes, and snippets.

View LorhanSohaky's full-sized avatar
🏠
Working from home

Lorhan Sohaky LorhanSohaky

🏠
Working from home
View GitHub Profile
@LorhanSohaky
LorhanSohaky / initial-setup.sh
Last active July 7, 2023 21:06
dev-container-proxmox
# Instala auxiliares
sudo su -c "apt update && apt upgrade -y && apt install -y curl unzip vim make htop net-tools jq"
# Instala dependências dev
sudo su -c "apt install -y gcc build-essential zlib1g-dev libffi-dev libssl-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev"
# Install docker
sudo su -c "curl -sSL https://get.docker.com/ | sh"
sudo su -c "usermod -aG docker $USER"
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!

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
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
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
# 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
---
BasedOnStyle: LLVM
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: 'true'
AlignConsecutiveDeclarations: 'true'
AlignEscapedNewlines: Left
AlignOperands: 'false'
AlignTrailingComments: 'true'
AllowAllParametersOfDeclarationOnNextLine: 'false'
AllowShortBlocksOnASingleLine: 'true'