Use Python to:
- send a plain text email
- send an email with attachment
- receive and filter emails according to some criteria
| #!/usr/bin/env python | |
| # -*- coding: utf-8; mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- | |
| # vim: fileencoding=utf-8 tabstop=4 expandtab shiftwidth=4 | |
| """User Access Control for Microsoft Windows Vista and higher. This is | |
| only for the Windows platform. | |
| This will relaunch either the current script - with all the same command | |
| line parameters - or else you can provide a different script/program to | |
| run. If the current user doesn't normally have admin rights, he'll be |
Use Python to:
| # -------- | |
| # Hardware | |
| # -------- | |
| # Opcode - operational code | |
| # Assebly mnemonic - abbreviation for an operation | |
| # Instruction Code Format (IA-32) | |
| # - Optional instruction prefix | |
| # - Operational code |
##Set environment variables
export TARGET=aarch64-none-elf
export PREFIX=/work/public/$TARGET
export PATH=$PATH:$PREFIX/bin##Build binutils
mkdir build-binutils
cd build-binutilsCython has two major benefits:
Cython gains most of it's benefit from statically typing arguments. However, statically typing is not required, in fact, regular python code is valid cython (but don't expect much of a speed up). By incrementally adding more type information, the code can speed up by several factors. This gist just provides a very basic usage of cython.
| export PREFIX=/usr/local/$TARGET | |
| export TARGET=arm-none-eabi-newlib | |
| # build binutils | |
| wget http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.bz2 | |
| tar xf binutils-2.24.tar.bz2 | |
| mkdir b-binutils | |
| cd b-binutils | |
| ../binutils-2.24/configure --prefix=$PREFIX --program-prefix=arm-none-eabi- --target=arm-eabi --enable-lto --enable-interwork --enable-multilib | |
| make -j5 |