Skip to content

Instantly share code, notes, and snippets.

@dennislwy
dennislwy / install_raspberry_python3.sh
Last active December 4, 2023 01:32 — forked from vbe0201/raspberry_python.sh
A shell script for installing Python 3.x.x on your Raspberry Pi.
#!/bin/bash
# A bash script for installing Python 3.x.x on your Raspberry Pi.
# (c) 2023 Dennis Lee
#
# Open your terminal and type the following command:
# wget https://gist.githubusercontent.com/dennislwy/a91e83826d6d9c111c995765f3a6779c/raw/install_raspberry_python3.sh -O install_raspberry_python3.sh && chmod +x install_raspberry_python3.sh && ./install_raspberry_python3.sh
#set -e # Exit immediately if a command exits with a non-zero status.
@dennislwy
dennislwy / raspberry_install_python3.sh
Last active April 27, 2023 10:03
A shell script for installing Python 3.10.11 on your Raspberry Pi
#!/bin/bash
# A bash script for installing Python 3.x.x on your Raspberry Pi (modified from @realSnosh).
# (c) 2023 Dennis Lee
#
# Open your terminal and type the following command:
# wget https://gist.github.com/dennislwy/318ac12b0b9fa0f4aa03e784f34f86c7/raw/raspberry_install_python3.sh && chmod +x raspberry_install_python3.sh && ./raspberry_install_python3.sh
PYTHON_VERSION=3.10
PYTHON_BUILD=11
@dennislwy
dennislwy / aes.py
Last active June 13, 2023 05:15
Python helper class to perform AES encryption, decryption with CBC Mode & PKCS7 Padding
# AES helper class for pycrypto
# Copyright (c) Dennis Lee
# Date 22 Mar 2017
# Description:
# Python helper class to perform AES encryption, decryption with CBC Mode & PKCS7 Padding
# References:
# https://www.dlitz.net/software/pycrypto/api/2.6/
# http://japrogbits.blogspot.my/2011/02/using-encrypted-data-between-python-and.html
@dennislwy
dennislwy / rsa.py
Last active April 12, 2023 03:46
Python helper class to perform RSA encryption, decryption, signing, verifying signatures & generate new keys
# RSA helper class for pycrypto
# Copyright (c) Dennis Lee
# Date 21 Mar 2017
# Description:
# Python helper class to perform RSA encryption, decryption,
# signing, verifying signatures & keys generation
# Dependencies Packages:
# pycrypto