start new:
tmux
start new with session name:
tmux new -s myname
; create($nothing) | |
@prop #102."packages" 0 "" | |
@prop #102."provides_cache" 0 "" | |
@prop #102."requires_cache" 0 "" | |
@prop #102."last_fetch_index" 0 "" | |
@prop #102."archived" 0 "" | |
@prop #102."cached" 0 "" | |
@prop #102."archive_host" "207.210.101.162" "" | |
@prop #102."archive_port" 80 "" |
#!/bin/bash | |
GREEN="green:health" | |
ORANGE="orange:fault" | |
usage() | |
{ | |
echo "USAGE: led (all|orange|green) (off|on|blink|heartbeat|fs) [only]" | |
exit 1 | |
} |
#!/bin/bash | |
function install_build_tools { | |
sudo apt-get install git | |
sudo apt-get install libasound2-dev | |
sudo apt-get install build-essential | |
sudo apt-get install make | |
sudo apt-get install autoconf | |
sudo apt-get install libtool |
This is a guide on how to email securely.
There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.
alembic
is great but lacks an out of the box way to set up running migrations against a specific database (e.g. development
, test
, production
). The following adjustments to its env.py
and alembic.ini
allow us to target a specific database:
Example:
alembic -x db=development upgrade head
env.py:
jamesmead@floehopper.local:~$ sudo dd bs=1m if=/Users/jamesmead/Downloads/2015-02-16-raspbian-wheezy.img of=/dev/disk2
pi@raspberrypi ~ $ sudo raspi-config
# Choose option 1 to "Expand Filesystem" - Ensures that all of the SD card storage is available to the OS
# Choose Finish & reboot
pi@raspberrypi ~ $ sudo apt-get update
Simple guide for setting up OTG modes on the Raspberry Pi Zero - By Andrew Mulholland (gbaman).
The Raspberry Pi Zero (and model A and A+) support USB On The Go, given the processor is connected directly to the USB port, unlike on the B, B+ or Pi 2 B, which goes via a USB hub.
Because of this, if setup to, the Pi can act as a USB slave instead, providing virtual serial (a terminal), virtual ethernet, virtual mass storage device (pendrive) or even other virtual devices like HID, MIDI, or act as a virtual webcam!
It is important to note that, although the model A and A+ can support being a USB slave, they are missing the ID pin (is tied to ground internally) so are unable to dynamically switch between USB master/slave mode. As such, they default to USB master mode. There is no easy way to change this right now.
It is also important to note, that a USB to UART serial adapter is not needed for any of these guides, as may be documented elsewhere across the int
#!/usr/bin/python | |
# Quick & dirty script to power down the computer when receiving | |
# a "power button" IR signal from the RTL remote over RTL-SDR dongle | |
# via rpc_ir librtlsdr: https://github.com/rxseger/librtlsdr/pull/1 | |
# Intended for use with Raspberry Pi, which lacks a built-in power button | |
# Usage: | |
# rtl_rpcd -I 1235 |
#!/bin/bash | |
#Setup the environnement | |
mkdir wwdc2017 | |
cd wwdc2017 | |
mkdir tmp_download | |
cd tmp_download | |
#Extract IDs | |
echo "Downloading the index" |