Programming in general:
- https://www.khanacademy.org/
- https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/
Web-based programming:
| #/usr/bin/env bash | |
| set -euo pipefail | |
| exit 1 | |
| # Need the SystemAdministrator AWS SSO / IAM PermissionSet | |
| for region in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do | |
| echo "* Region ${region}" |
| #! /usr/local/bin/bash | |
| # | |
| # Calomel.org | |
| # https://calomel.org/zfs_health_check_script.html | |
| # FreeBSD 9.1 ZFS Health Check script | |
| # zfs_health.sh @ Version 0.15 | |
| # Check health of ZFS volumes and drives. On any faults send email. In FreeBSD | |
| # 10 there is supposed to be a ZFSd daemon to monitor the health of the ZFS | |
| # pools. For now, in FreeBSD 9, we will make our own checks and run this script |
| # Ubuntu Server automated installation | |
| # by Scott Lowe ([email protected]) | |
| d-i debian-installer/locale string en_US | |
| d-i console-setup/ask_detect boolean false | |
| d-i keyboard-configuration/layoutcode string us | |
| d-i netcfg/choose_interface select eth0 | |
| d-i netcfg/get_hostname string hostname | |
| d-i netcfg/get_domain string domain.com | |
| d-i netcfg/wireless_wep string |
Programming in general:
Web-based programming:
I typically wrap all these commands into a shell script that I can reuse, but here they are in steps.
Please read through all the instructions before actually performing the commands, just to avoid any surprises
Requirements:
| # Edit your /etc/pf/pf.conf | |
| # If you are connected via ssh, make sure you allow connection to your ssh port! | |
| vi /etc/pf/pf.conf | |
| # Enable pf on your system | |
| sysrc pf_enable="YES" | |
| sysrc pf_rules="/etc/pf/pf.conf" | |
| # Start pf service/daemon | |
| # If you are connected via SSH, you may be disconnected |
| (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 28 70 00 00 08 00 | |
| (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error | |
| (da0:umass-sim0:0:0:0): Retrying command | |
| (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 28 70 00 00 08 00 | |
| (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error | |
| (da0:umass-sim0:0:0:0): Retrying command | |
| (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 28 70 00 00 08 00 | |
| (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error | |
| (da0:umass-sim0:0:0:0): Retrying command | |
| (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 28 70 00 00 08 00 |
| Script started on Wed Nov 25 20:15:39 2015 | |
| # sh test.sh | |
| + zfs create tank/pool1 | |
| + zfs snap tank/pool1@now | |
| + zfs send tank/pool1@now | |
| + zfs recv tank/pool2 | |
| + hostname | |
| + zfs snap tank/pool1@a | |
| + date |
| #!/usr/bin/env python | |
| # based on the tahoelafs project | |
| # requires modification to pyfilesystem for mknod etc. | |
| # but provides enough to extract a minimal linux install | |
| # and then chroot into it :) | |
| import pymongo | |
| import gridfs | |
| import os | |
| import fs | |
| import math |