Documenting Kali Linux on Raspberry Pi 5 build
Pi 5 with 8G of RAM and a 64G Samsung microSD
Case is aluminum heat sink style with a smart PWM fan
Initial set up with USB-C power, portable display, TrackPoint keyboard
- change hostname
import sys | |
import pika | |
# prerequisites are that you have RabbitMQ installed | |
# create a "darkmatter" named VirtualHost (VHOST) | |
# rabbitmqctl.bat add_vhost darkmatter | |
# create a user APP_USER with associated APP_PASS word | |
# rabbitmqctl add_user darkmatteradmin <password> | |
# give the APP_USER the necessary permissions | |
# rabbitmqctl set_permissions -p darkmatter darkmatteradmin ".*" ".*" ".*" |
filetype on | |
filetype plugin on | |
filetype indent on | |
syntax on | |
set number | |
set cursorline | |
set tabstop=4 | |
set expandtab | |
set nowrap | |
set incsearch |
__author__ = 'k0emt' | |
class Greeter: | |
def __init__(self): | |
self.message = 'Hello world' | |
# print self.message |
docker pull mongo
Spin up a new container named my_mongo
from image mongo
Mapping and exposing ports 27017-27019 from the container to the host OS:
docker run -d -p 27017-27019:27017-27019 --name my_mongo mongo
#Public Data Sources
##Legislative
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<style> | |
.label { | |
font-size: 2em; |
<cities> | |
<state> | |
<name>Alabama</name> | |
<city>Abbeville</city> | |
<number>1</number> | |
</state> | |
<state> | |
<name>Alabama</name> | |
<city>Adamsville</city> | |
<number>1</number> |
Had to turn off secure boot and switch from UEFI to legacy to install. Use ASSIST above keyboard for boot options and getting into CMOS.
ctrl-shift-c
and ctrl-shift-v
for copy and paste in the terminal
from pymongo import MongoClient | |
import sys | |
# code example to show updating individual records in a loop | |
# initialize the database with: | |
# mongoimport -d school -c scores --type json grades.js | |
# verify no records with "added" | |
# db.scores.find({"added":{$exists:true}}) // returns nothing |