Load network block device module:
# modprobe nbd max_part=8
Poweroff machine:
# virsh destroy virtual-machine
| 1.download latest release barge.img file (13MB) from: https://github.com/bargees/barge-os/releases | |
| 2.login and goto https://cloud.digitalocean.com/images/custom_images | |
| 3.click "Upload Image" and select barge.img to upload | |
| 4.Create Droplets/Custom images/barge.img | |
| 5.ssh bargee@<vps ip> (password is also bargee) | |
| 6.sudo fdisk -l, found the "EndLBA" is <26635> | |
| 7.sudo fdisk /dev/vda, | |
| Command (m for help): n, | |
| Partition type: p, | |
| Partition number (1-4): 2, |
| # non root user example for alpine | |
| # | |
| # usage: | |
| # $ docker build --build-arg "USER=someuser" --tag test . | |
| # $ docker run --rm test | |
| FROM alpine | |
| ARG USER=default | |
| ENV HOME /home/$USER |
The default version of java provided in the latest raspbian images are outdated, so we are going to install from the ppa:webupd8team/java repository instead. Please note that add-apt-repository ppa:webupd8team/java will not work, so we will need to add the repository manually.
nano key.txt
| #!/bin/bash | |
| # Bash script to control a TPLink HS110 or HS100 smart plug. | |
| # Usage: $0 -u username -p password -d "?" => list devices, and should output token. | |
| # Usage: $0 -t <token> -d <device_id> -o off => turn off.. | |
| # Usage: $0 -t <token> -d <device_id> -o off => turn on.. | |
| # Default action is to turn the first device found off. |
| #!/bin/bash | |
| echo 'log-queries' > /etc/dnsmasq.conf | |
| service network-manager restart | |
| tail -f /var/log/syslog |
| Moved to: https://github.com/stevejenkins/Google-Fiber-EdgeRouter-Configs |
| # Debian 7 MIPS Toolchain | |
| # http://cdimage.debian.org/cdimage/archive/7.8.0/amd64/iso-cd/debian-7.8.0-amd64-CD-1.iso | |
| # Basic install + SSH Server + Standard system utilities | |
| # Update | |
| mkdir /usr/src/mips-toolchain && cd /usr/src/mips-toolchain | |
| apt-get update | |
| apt-get upgrade | |
| # Binutils |
| #!/bin/sh -e | |
| hostname=$1 | |
| device=$2 | |
| file=$HOME/.dynv6.addr6 | |
| [ -e $file ] && old=`cat $file` | |
| if [ -z "$hostname" -o -z "$token" ]; then | |
| echo "Usage: token=<your-authentication-token> [netmask=64] $0 your-name.dynv6.net [device]" | |
| exit 1 | |
| fi |