Skip to content

Instantly share code, notes, and snippets.

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

fly flyingluscas

🏠
Working from home
View GitHub Profile
5 4 3 3 2 3 4 3 2 1
1 3 5 6 4 3 2 6 5
1 3 5 6 4 3 2 7 5 5 1° 7 7 6 7 1° 7 6 5
5 4 3 3 2 3 4 3 2 1
1 3 5 6 4 3 2 6 5
1 3 5 6 4 3 2 7 5 1
2 3 4 2 4 3 2 1 2 1

Instalação do arch linux com full disk encription LVM on LUKS

Garantir se fez o boot utilizando EFI

ls /sys/firmware/efi # Deve haver arquivos nesse folder

Checar conexão com a internet.

ping 1.1.1.1

Keybase proof

I hereby claim:

  • I am flyingluscas on github.
  • I am flyingluscas (https://keybase.io/flyingluscas) on keybase.
  • I have a public key ASDPaK9AX5CRkoEFJaKx6Oppoja_RK1j37Tg2HSV5-ujdQo

To claim this, I am signing this object:

@flyingluscas
flyingluscas / docker-compose.yml
Last active November 26, 2020 21:13
keep mongodb data stored inside a named volume from docker
version: '3.1'
volumes:
# Cria um volume nomeado chamado "mongo-data" onde vamos guardar os dados do mongo, documentação completa de como funciona: https://docs.docker.com/compose/compose-file/#volume-configuration-reference
mongo-data:
driver: local
services:
mongo:
image: mongo
@flyingluscas
flyingluscas / docker-compose.yml
Created May 14, 2017 08:33
CS 1.6 Server with Docker
version: '2'
services:
cstrike:
image: jarlefosen/cs16
container_name: cs16_server
ports:
- 26900:26900/udp
- 27020:27020/udp
- 27015:27015/udp
@flyingluscas
flyingluscas / ShellFunctions.md
Last active November 20, 2019 21:25
Shell functions to run things like NPM, Composer and PHP using Docker.

Shell functions to run things using Docker.

Versions

Control the versions using environment variables, put this in your .bashrc or .zshrc.

PHP_VERSION=7.1
NODE_VERSION=8.0
@flyingluscas
flyingluscas / MyUbuntuThemeConfigurations.md
Last active February 26, 2019 13:19
My Ubuntu Theme Configurations

My Ubuntu Theme Settings

Install Theme

$ sudo add-apt-repository ppa:noobslab/themes
$ sudo apt-get update
$ sudo apt-get install flatabulous-theme

Install Icons Pack

@flyingluscas
flyingluscas / radix-sort.js
Created February 20, 2019 17:05
Radix Sort WIP
const unsortedArray = [123, 49, 7, 333]
const radix = (arr) => {
const max = Math.max(...arr).toString().length
const buckets = new Array(10)
let arrayWithLeftPaddedZeros = []
for (let i = 0; i < arr.length; i++) {
arrayWithLeftPaddedZeros[i] = arr[i].toString().padStart(max, '0')
}
@flyingluscas
flyingluscas / goCircleCIGo.js
Last active November 1, 2018 18:44
Go CircleCI Go
setInterval(() => {
if (document.querySelector('.css-1jwka9i').innerText === 'FAILED' || document.querySelector('.css-1jwka9i').innerText === 'CANCELED') {
document.querySelector('.css-1kqc31n').click()
document.querySelector('#menu-1 button:first-child').click()
console.log('Job reloaded!')
}
}, 60000)
@flyingluscas
flyingluscas / goTravisGo.js
Last active October 17, 2018 12:45
Go Travis Go
setInterval(() => document.querySelectorAll('.jobs-list li.failed .action-button--restart').forEach(button => button.click()), 60000)