Needed to add the nomodeset option to grub to correctly boot
After boot edit /etc/default/grub and add the nomodeset to the line with
GRUB_CMDLINE_LINUX_DEFAULT.
Run this to make it persistent:
| curl -v -X PUT -H "x-amz-meta-uploader:blabla" -T {file.png} -L "{pre-signed-url}" |
| PROFILES=$(awk -F"\\\]|\\\[" '/^\[/{print $2}' ~/.aws/credentials) | |
| select PROFILE in $PROFILES; do | |
| export AWS_ACCESS_KEY_ID="$(aws configure get aws_access_key_id --profile $PROFILE)" | |
| export AWS_SECRET_ACCESS_KEY="$(aws configure get aws_secret_access_key --profile $PROFILE)" | |
| export AWS_DEFAULT_REGION="$(aws configure get region --profile $PROFILE)" | |
| break | |
| done | |
| echo AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID |
| require 'concurrent-ruby' | |
| $pool = Concurrent::FixedThreadPool.new(2) | |
| $pool.post do | |
| {your function or block} | |
| end | |
ctrl-u to enter bootloader
check you SD partition: fatinfo mmc 0:1
load the kernel image into memory: fatload mmc 0:1 0x82000000 uimage
boot the image: bootm 0x82000000
| sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 | |
| sudo apt-get install libfontconfig1:i386 libxrender1:i386 libsm6:i386 libfreetype6:i386 libglib2.0-0:i386 | |
| sudo apt-get install libxext6:i386 |
| FTP_HOST = "ftp.pepe.com" | |
| FTP_USER = "coco" | |
| FTP_PASS = "coco" | |
| # create>> dd if=/dev/zero of=output.file bs=1024 count=1024 | |
| UPLOAD_FILE = File.new("./output.file") | |
| def upload_file | |
| file_time = Time.now.strftime("%Y%m%d%H%M%S%L") | |
| file_name = "file_#{file_time}-#{Thread.current.object_id}-.xxx" |
| require_relative './block' | |
| class Blockchain | |
| attr_reader :blocks | |
| def initialize | |
| genesis = Block.new "genesis block", "" | |
| @blocks = [genesis] | |
| end |
| require 'digest' | |
| class Block | |
| attr_accessor :hash, :prev_hash, :data, :time | |
| def initialize(data, prev_hash) | |
| @data = data | |
| @prev_hash = prev_hash | |
| @time = Time.now.getutc.to_i | |
| @hash = gen_hash @data,@prev_hash,@time |