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
alias checkvenv='if [ "$VIRTUAL_ENV" = "$(pwd)/.venv" ]; then echo -e "\033[0;32m*** VIRTUAL_ENV OK ***\033[0m"; else echo "VIRTUAL_ENV does not match current directory, activating local venv"; if [ -f ".venv/bin/activate" ]; then source .venv/bin/activate; else echo "No .venv found in current directory"; fi; fi' |
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
version: "3.9" | |
services: | |
# From https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#core-stacks | |
jupyterlab: | |
image: jupyter/base-notebook | |
container_name: jupyter | |
user: root | |
ports: | |
- "8888:8888" |
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
sh -c "$(curl -fsSL \ | |
https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# Plugin: zsh-completions | |
git clone https://github.com/zsh-users/zsh-completions.git \ | |
~/.oh-my-zsh/custom/plugins/zsh-completions | |
# Plugin: zsh-syntax-highlighting | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \ | |
~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting | |
# Plugin: zsh-autosuggestions |
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
net stop wuauserv | |
CD %Windir% | |
CD SoftwareDistribution | |
DEL /F /S /Q Download | |
net start wuauserv | |
PAUSE |
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
# Check status | |
Write-Host "Checkeando wiffi" | |
while($true) | |
{ | |
$output = "" | |
$red = "" | |
$fecha = Get-Date | |
$red = netsh wlan show interfaces | select-string -Pattern '\sSSID','\sSeñal','\sEstado ' | Out-String |
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
FROM debian:buster-slim | |
RUN apt update -y && apt upgrade -y && apt install git build-essential -y | |
ENTRYPOINT ["tail", "-f", "/dev/null"] |
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 | |
#* It gets last Miniconda3 Linux version and install it | |
CONDA_INSTALLER_URL='https://repo.anaconda.com/miniconda/' | |
OUTPUT_INSTALLER='/tmp/Miniconda3-latest-Linux-x86_64.sh' | |
echo "*** Descargando instalador de Anaconda --> Miniconda3-latest-Linux-x86_64.sh" | |
curl "$CONDA_INSTALLER_URL"Miniconda3-latest-Linux-x86_64.sh --output $OUTPUT_INSTALLER | |
INSTALLER_MD5=$(curl -s $CONDA_INSTALLER_URL 2>&1 | awk '$1=$1' ORS=' ' | perl -n -e'/href="Miniconda3-latest-Linux-x86_64.sh.*?([a-f0-9]{32})/ && print $1' ) | |
GET_MD5=$(md5sum $OUTPUT_INSTALLER | awk '{ print $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/bash | |
# Removes old revisions of snaps | |
# CLOSE ALL SNAPS BEFORE RUNNING THIS | |
set -eu | |
if [ $EUID != 0 ]; then | |
sudo "$0" "$@" | |
exit $? | |
fi |
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 | |
if [ $EUID != 0 ]; then | |
sudo "$0" "$@" | |
exit $? | |
fi | |
echo -e "" | |
echo -e "\e[1;31m****************Update & dist-upgrade!!\e[0m" | |
echo -e "" |
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 "Installing Docker!" | |
sudo apt update | |
sudo apt install -y \ | |
sudo apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common jq |
NewerOlder