- [lenovo_y1_v1][1]
- [hiwifi hc5861][8]
- [openwrt hiwifi][9]
newwifi is MTK board(MediaTek MT7620A), find the builds for ramips
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
In case you want to run ansible
(or ansible-playbook
) command against a set of hosts that makes sense only for one run,
you can don't bother to create one-time inventory file, but simply define a comma-separated list of hosts as argument of --invertory
option (or its short form that's simply -i
) as follows:
ansible --inventory=myhost1,myhost2,myhost3 all -m setup -a 'filter=*name*'
(note that all
in this command line stands for the target hostname)
If you have only one host to run your playbook against, your inventory string must ends with ,
#!/bin/sh | |
# This file should be placed in /jffs/scripts/ folder. | |
# 后台申请token | |
# https://support.dnspod.cn/Kb/showarticle/tsid/227/ | |
login_token='xxxxxxx,yyyyyyyyyyyyyyyyyyyyyyyyyyyyy' | |
# 先调 Domain.List 和 Record.List 接口取得 id | |
# https://www.dnspod.cn/docs/domains.html#domain-list | |
# https://www.dnspod.cn/docs/records.html#record-list |
#! /usr/bin/env bash | |
# Install any build dependencies needed for curl | |
sudo apt-get build-dep curl | |
# Get latest (as of Feb 25, 2016) libcurl | |
mkdir ~/curl | |
cd ~/curl | |
wget http://curl.haxx.se/download/curl-7.50.2.tar.bz2 | |
tar -xvjf curl-7.50.2.tar.bz2 |
#!/bin/bash | |
# Nico Snyman, [email protected], 14/05/2015 | |
# Change an instance type, while keeping snapshots | |
# This script will stop an instance identified by instance ID, | |
# take snapshots of all atached volumes, and restart it | |
# Use: | |
# -i instance ID - REQUIRED - stored in instance_id | |
# -t instance new instance type - REQUIRED - stored in instance_type | |
# -s if set to 0, no snapshot will be taken, dafault is 1 | |
# (take snapshot of attached volumes) - stored in snapshot |
import boto3 | |
print(boto3.client('sts').get_caller_identity()['Account']) |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>debug</key> | |
<false/> | |
<key>servers</key> | |
<array> | |
<dict> | |
<key>autoHosts</key> |
This documentation aims at being a quick-straight-to-the-point-hands-on AWS resources manipulation with [boto3][0].
First of all, you'll need to install [boto3][0]. Installing it along with [awscli][1] is probably a good idea as
#!/usr/bin/env python | |
# Simple [boto3](https://github.com/boto/boto3) based EC2 manipulation tool | |
# | |
# To start an instance, create a yaml file with the following format: | |
# | |
# frankfurt: | |
# - subnet-azb: | |
# - type: t2.micro | |
# image: image-tagname |