Skip to content

Instantly share code, notes, and snippets.

View GonzaloAlvarez's full-sized avatar
🙈

Gonzalo Alvarez GonzaloAlvarez

🙈
View GitHub Profile
#!/bin/bash -e
mkdir -p "$HOME/.bootstrap" && cd "$_"
curl -O "https://bootstrap.pypa.io/virtualenv.pyz"
$(command -v python3 || command -v python) virtualenv.pyz venv
source venv/bin/activate
python -m pip install --upgrade pip setuptools wheel ansible
python -m pip install dulwich --config-settings "--build-option=--pure" && python -c "from dulwich import porcelain;porcelain.clone('https://github.com/GonzaloAlvarez/provisioning', 'provisioning')"
[[ -d "$HOME/provisioning" ]] && cp -Rf "$HOME/provisioning" .
cd provisioning && ansible-galaxy install -r requirements.yml
ansible-playbook --connection=local --inventory=localhost --limit 127.0.0.1 playbooks/main.yml

Update the package list for the Synology DS216j

Execute the following code:

sudo -i
wget -O - https://gist.github.com/GonzaloAlvarez/ec2503ef09580aefc1fbef6a2e4446b0/raw/3a09d237f4591619c279ea9a8ebf4af0ea72e320/synology.sh | sh

These steps are taken from: https://gist.github.com/ffeldhaus/226f2c5743a7f631806d

@GonzaloAlvarez
GonzaloAlvarez / ghost-first-code
Last active March 22, 2021 16:45
First time, first fail
# 1: Define alphabet:
a = range(255)
# 2: Letter count:
n = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 0, 0, 0, 0, 0, 0, 3, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,