Skip to content

Instantly share code, notes, and snippets.

@felipendc
felipendc / git.md
Created December 13, 2021 22:28 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

sudo add-apt-repository universe && sudo apt-get update && sudo apt-get install android-tools-adb android-tools-fastboot
@felipendc
felipendc / ArchLinuxWSL2.md
Created April 25, 2021 23:48 — forked from ld100/ArchLinuxWSL2.md
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.

Installing Arch Linux

@felipendc
felipendc / gist:5780bc59f153fa963629ceb76a9e9627
Created February 6, 2021 15:46
Removendo/Excluindo GRUB pelo Windows Fácil!
diskpart
list disk
select disk 0, 1, etc.
list vol (e procure por um volumete Fs: FAT32, Informações: Sistema)
select vol 0, 1, etc.
assign letter=j: (ou letra maiúscula e ou sem :)
exit (pra sair do diskpart)
cd /d J:
dir
@felipendc
felipendc / git clear the repo base (vicyos-repo)
Last active January 3, 2021 06:35 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
@felipendc
felipendc / git change the branch name
Last active May 5, 2020 10:07 — forked from ccopsey/gist:9866a0bcb0b39ade04fe
Rename master branch on GitHub
git branch -m master newname
git push origin newname
# Change "Default Branch" in settings/options in GitHub
git push origin :master
@felipendc
felipendc / .Xresources
Last active February 1, 2020 06:07 — forked from pta2002/.Xresources
[colors]
; Nord theme ============
; HEFFTOR-HLWM Polybar Tiling Windows Manager Colors Backup
;background = ${xrdb:color0:#222}
;background = #312438
;foreground = ${xrdb:color7:#222}
;foreground-alt = ${xrdb:color4:#222}
;primary = ${xrdb:color2:#222}
How to compile LOS
TO DOWNLOAD THE SOURCE CODE:
https://github.com/LineageOS/android
.........................
BUILDING ROM TUTORIAL FOR POCO F1
............................
to add this to the bahsrc file:
Compiling a PE
Script
sudo apt-get install libncurses5
https://github.com/PixelExperience/manifest
...............................................
Sync
@felipendc
felipendc / How to install Nvidia drivers on ubuntu 410.txt
Last active October 24, 2018 19:21
How to install Nvidia drivers on ubuntu 410
How to install Nvidia drivers on ubuntu 410
https://askubuntu.com/questions/1077061/how-do-i-install-nvidia-and-cuda-drivers-into-ubuntu
Ubuntu 18.04, CUDA 10.0 and NVIDIA 410 drivers:
NOTE: CUDA 9.x is not available through NVIDIA's ubuntu1804 repo.
These instructions are for installing CUDA through the repository instead of the .deb installation.