This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 1 | sudo tee /proc/sys/vm/drop_caches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mv /usr/bin/systemctl /usr/bin/systemctl.old | |
curl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py > /usr/bin/systemctl | |
chmod +x /usr/bin/systemctl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set NGROK_PUBLIC_URL "" | |
echo "Start ssh-access ngrok in background" | |
nohup ngrok start ssh-access &>/dev/null & | |
echo -e "Extracting ngrok port..." | |
while [ -z "$NGROK_PUBLIC_URL" ]; | |
sleep 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Stopping background ngrok process..." | |
kill -9 $(ps -ef | grep 'ngrok' | grep -v 'grep' | awk '{print $2}') | |
echo "ngrok stopped" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------# | |
# Remove start message | |
set fish_greeting | |
#------------------------------------------------------------------------------# | |
# WSL Setttings | |
set -gx DISPLAY $(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):0.0 | |
set -gx LIBGL_ALWAYS_INDIRECT 1 | |
#------------------------------------------------------------------------------# | |
# Docker Settings | |
set -gx DOCKER_BUILDKIT 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setting options | |
options(width = 80) | |
# we set the cloud mirror, which is "network-close" to everybody, as default | |
local({ | |
r <- getOption("repos") | |
r["CRAN"] <- "https://cloud.r-project.org" | |
options(repos = r) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pacman -S rust | |
cargo install bandwhich bat du-dust fd-find grex hyperfine nu procs ripgrep sd tealdeer tokei zellij zoxide | |
cargo install starship --locked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
format = """ | |
$os\ | |
$username\ | |
$hostname\ | |
$localip\ | |
$shell\ | |
$directory\ | |
$fossil_branch\ | |
$git_branch\ | |
$git_commit\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'Criando diretório nushell...' | |
mkdir -p ${HOME}/.config/nushell/ | |
echo 'Configurando nushell...' | |
echo 'mkdir ~/.cache/starship\\nstarship init nu | save -f ~/.cache/starship/init.nu\\n\\nalias cat = batcat --style=auto\\nalias ls = exa --icons -la\\nalias r = radian' >> ${HOME}/.config/nushell/env.nu | |
echo '$env.config = {show_banner: false}\\n\\nsource ~/.cache/starship/init.nu' >> ${HOME}/.config/nushell/config.nu | |
echo 'Configurando starship...' |