SSH into Root
$ ssh [email protected]
Change Root Password
local 192.168.2.0 # SWAP THIS NUMBER WITH YOUR RASPBERRY PI IP ADDRESS | |
dev tun | |
proto udp #Some people prefer to use tcp. Don't change it if you don't know. | |
port 1194 | |
ca /etc/openvpn/easy-rsa/keys/ca.crt | |
cert /etc/openvpn/easy-rsa/keys/Server.crt # SWAP WITH YOUR CRT NAME | |
key /etc/openvpn/easy-rsa/keys/Server.key # SWAP WITH YOUR KEY NAME | |
dh /etc/openvpn/easy-rsa/keys/dh1024.pem # If you changed to 2048, change that here! | |
server 10.8.0.0 255.255.255.0 | |
# server and remote endpoints |
require 'rubygems' | |
require 'openssl' | |
require 'digest/md5' | |
key = OpenSSL::PKey::RSA.new(2048) | |
cipher = OpenSSL::Cipher::AES.new(256, :CBC) | |
ctx = OpenSSL::SSL::SSLContext.new | |
puts "Spoof must be in DER format and saved as root.cer" | |
raw = File.read "root.cer" | |
cert = OpenSSL::X509::Certificate.new raw | |
cert.version = 2 |
SSH into Root
$ ssh [email protected]
Change Root Password
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
$ git ls-files | xargs wc -l |
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "An etcd cluster based off an auto scaling group", | |
"Mappings" : { | |
"RegionMap" : { | |
"eu-central-1" : { | |
"AMI" : "ami-840a0899" | |
}, | |
"ap-northeast-1" : { | |
"AMI" : "ami-6c5ac56c" |
## Macro title: UML Sequence Diagram | |
## Macro has a body: Y | |
## Body processing: Unrendered | |
## | |
## This macro allows use of js-sequence-diagrams from http://bramp.github.io/js-sequence-diagrams/ | |
## | |
## Developed by: Greg MacLellan | |
## Date created: 2015-09-15 | |
## 2015-09-21: Added suppor for displaying parse errors while rendering | |
## Installed by: Greg MacLellan |
//initially crawled from https://de.wikipedia.org/wiki/ISO-3166-1-Kodierliste | |
//2020-03-23, reviewed by @luwe1204 | |
isoCountries = { | |
"AD": "Andorra", | |
"AE": "Vereinigte Arabische Emirate", | |
"AF": "Afghanistan", | |
"AG": "Antigua und Barbuda", | |
"AI": "Anguilla", | |
"AL": "Albanien", | |
"AM": "Armenien", |
#![feature(lang_items, asm)] | |
#![crate_type = "staticlib"] | |
#![no_std] | |
const GPIO_BASE: u32 = 0x3F000000; | |
const GPIO_SET: u32 = 0x3F200020; | |
const GPIO_CLR: u32 = 0x3F20002C; | |
const GPIO47: u32 = 0x8000; | |
fn sleep(value: u32){ |
<%# views/layouts/external_pages.html.erb %> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>GentelellaOnRails</title> | |
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> | |
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> |
As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.