Skip to content

Instantly share code, notes, and snippets.

# Install PIP
curl -LO https://bootstrap.pypa.io/get-pip.py
python get-pip.py --user
export PATH=$HOME/.local/bin:$PATH
# Install ansible
pip install ansible --user
# Run ansible
ansible --version
UserReadableName = Fairphone FP3 (api28)
Build.HARDWARE = qcom
Build.RADIO = unknown
Build.BOOTLOADER = unknown
Build.FINGERPRINT = Fairphone/FP3/FP3:9/8901.2.A.0096.20191001/10011803:user/release-keys
Build.BRAND = Fairphone
Build.DEVICE = FP3
Build.VERSION.SDK_INT = 29
Build.MODEL = FP3
Build.MANUFACTURER = Fairphone
@yoghi
yoghi / CN-cloud-disk-providers.md
Created February 29, 2020 11:07 — forked from weakish/backup-providers.md
reviews of vps, storage, mail forward

Cloud disks in China

Cloud disks with API in China

  • space: 100GB+
  • file limit: 100MB (web) 1GB(client)
@yoghi
yoghi / debian_upgrade.yml
Created March 15, 2020 18:14 — forked from maethor/debian_upgrade.yml
Ansible playbook to update and upgrade Debian hosts
---
- hosts: all
sudo: yes
tasks:
- name: Update packages list
apt: update_cache=yes
when: ansible_os_family == 'Debian'
- name: List packages to upgrade (1/2)
@yoghi
yoghi / proxy.md
Created May 8, 2020 22:07 — forked from yougg/proxy.md
complete ways to set http/socks/ssh proxy environment variables

set http or socks proxy environment variables

# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT

# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT

# set http proxy with user and password (with special characters)