The following guide describes how to setup Raspberry Pi to connect to Wifi. It was tested on the following environment:
- Raspberry Pi Model B
- Edimax EW-7811Un USB Wifi dongle
- OS: Raspbian Jessie
Here are the overview of the steps:
Picking the right architecture = Picking the right battles + Managing trade-offs
| #!/bin/bash | |
| # -*- ENCODING: UTF-8 -*- | |
| #Requiere de permisos de ejecución:$chmod -x prepros_install.sh | |
| #Ejecutar como Root: $bash prepros_install.sh | |
| #Validando Acceso Root | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "Tienes que ejecutar este script como Root" 1>&2 | |
| exit 1 | |
| fi |
| update wp_posts set | |
| post_content = replace(post_content, CONVERT(CAST(CONVERT('¡' USING utf8) AS BINARY) USING latin1), '¡'), | |
| post_content = replace(post_content, CONVERT(CAST(CONVERT('¢' USING utf8) AS BINARY) USING latin1), '¢'), | |
| post_content = replace(post_content, CONVERT(CAST(CONVERT('£' USING utf8) AS BINARY) USING latin1), '£'), | |
| post_content = replace(post_content, CONVERT(CAST(CONVERT('¤' USING utf8) AS BINARY) USING latin1), '¤'), | |
| post_content = replace(post_content, CONVERT(CAST(CONVERT('¥' USING utf8) AS BINARY) USING latin1), '¥'), | |
| post_content = replace(post_content, CONVERT(CAST(CONVERT('¦' USING utf8) AS BINARY) USING latin1), '¦'), | |
| post_content = replace(post_content, CONVERT(CAST(CONVERT('§' USING utf8) AS BINARY) USING latin1), '§'), | |
| post_content = replace(post_content, CONVERT(CAST(CONVERT('¨' USING utf8) AS BINARY) USING latin1), '¨'), | |
| post_content = replace(post_content, CONVERT(CAST(CONVERT('©' USING utf8) AS BINARY) USING latin1), '©'), |
| 'Update or create a stack given a name and template + params' | |
| from __future__ import division, print_function, unicode_literals | |
| from datetime import datetime | |
| import logging | |
| import json | |
| import sys | |
| import boto3 | |
| import botocore |
| .... | |
| Parameters: | |
| .... | |
| CidrBlock: | |
| Default: 172.21.0.0/16 | |
| Description: VPC Cidr Block | |
| Type: String | |
| AllowedPattern: "\\d+.\\d+.\\d+.\\d+/\\d+" | |
| ConstraintDescription: Must be CIDR | |
| Subnets: |
| StaticAssetsS3Bucket: | |
| Type: AWS::S3::Bucket | |
| Properties: | |
| BucketName: my-encrypted-bucket | |
| BucketEncryption: | |
| ServerSideEncryptionConfiguration: | |
| - ServerSideEncryptionByDefault: | |
| SSEAlgorithm: AES256 | |
| VersioningConfiguration: | |
| Status: Enabled |
| aws route53 list-hosted-zones-by-name --dns-name example.com --query HostedZones[].Id --output text | cut -d/ -f3 |