Skip to content

Instantly share code, notes, and snippets.

@sonicprod
sonicprod / RPi4.MAME.Appliance.md
Last active April 21, 2024 13:19
How to make a dedicated MAME Appliance on a Raspberry Pi 4B | Comment réaliser un système MAME dédié sur un Raspberry Pi 4/Pi 400

How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400

Note: the following steps are written in French. Feel free to translate to English.

However, please take notice that if you copy the scripts on this page from the version translated into English by Google Translate, it is possible that extra characters may appear within some scripts (this is caused by Google Translate), resulting in corruption of the impacted scripts. Consequently, it is better to copy the scripts from the original French version of this page.

Comment réaliser un système MAME dédié sur un Raspberry Pi 4/Pi 400

@aprilmintacpineda
aprilmintacpineda / Using Multiple SSH keys - Beginner Friendly.md
Last active May 4, 2024 08:23
Beginner Friendly: Using Multiple SSH keys

How to follow this guide

The problem

I have one computer and two different github accounts. One is for work, the other is for my personal stuff. I can't use the same ssh key twice, so I have to use different ssh key for each of my accounts. How do I do that? How do I switch between these ssh keys?

@nomadekr
nomadekr / README.md
Last active January 28, 2020 15:02
AWS chalice 에서 jinja2 템플릿 활용하기

AWS chalice 에서 jinja2 템플릿 활용하기

디렉토리 구조

  • app.py
  • requirements.txt
  • chalicelib/
    • tempaltes/
      • index.html
@ThomasG77
ThomasG77 / .gitignore
Last active September 19, 2021 08:06
Minimal project to use OpenLayers with Parcel bundler
/node_modules/
/dist/
/.cache/
@viper233
viper233 / win-aws.yml
Created June 21, 2016 15:53
ec2 Windows fix ups
- hosts: localhost
gather_facts: no
vars:
target_aws_region: us-west-2
subnet_id: "change_me"
vpc_id: "change_me"
allowed_ip: "0.0.0.0/0"
vars_files:
- secret.yml
@gbaman
gbaman / HowToOTGFast.md
Last active May 1, 2024 08:26
Simple guide for setting up OTG modes on the Raspberry Pi Zero, the fast way!

Setting up Pi Zero OTG - The quick way (No USB keyboard, mouse, HDMI monitor needed)

More details - http://blog.gbaman.info/?p=791

For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt file dtoverlay=dwc2 on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh in the SD card as well. By default SSH i

@slzatz
slzatz / font.py
Last active January 28, 2020 12:39
I2C driver for micropython esp8266 ssd1306 OLED (ssd1306a.py is paired down and works with the font.py file to allowing generating text)
# Originally from https://github.com/guyc/py-gaugette/blob/master/gaugette/font5x8.py
# Contains ASCII 32 (space) through ASCII 90 (Z)
cols = 5
rows = 8
bytes = [
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x5F, 0x00, 0x00,
0x00, 0x07, 0x00, 0x07, 0x00,
0x14, 0x7F, 0x14, 0x7F, 0x14,
@aws-scripting-guy
aws-scripting-guy / get_account_id_lambda.py
Created March 6, 2016 23:49
Get AWS account id inside Lambda function programmatically - python
def lambda_handler(event, context):
# Get Account Id from lambda function arn
print "lambda arn: " + context.invoked_function_arn
# Get Account ID from lambda function arn in the context
ACCOUNT_ID = context.invoked_function_arn.split(":")[4]
print "Account ID=" + ACCOUNT_ID
@bkozora
bkozora / lambdaAMIBackups.py
Last active October 22, 2023 20:49
AWS Lambda AMI Backups
# Automated AMI Backups
#
# @author Bobby Kozora
#
# This script will search for all instances having a tag with the name "backup"
# and value "Backup" on it. As soon as we have the instances list, we loop
# through each instance
# and create an AMI of it. Also, it will look for a "Retention" tag key which
# will be used as a retention policy number in days. If there is no tag with
# that name, it will use a 7 days default value for each AMI.
@RickCarlino
RickCarlino / amforth_arduino.md
Last active June 6, 2022 07:27
Getting AmForth Running on an Arduino Uno

AmForth on an Arduino (Linux / USBTiny programmer)

  1. Download AmForth source code
  2. cd into amforth-6.1/appl/arduino
  3. run sudo avrdude -p m328p -c usbtiny -U flash:w:uno.hex -U eeprom:w:uno.eep.hex -v
  4. Connect to the device with the following settings (I recommend CuteCom):
    • /dev/ttyACM0
    • 38400 baud
    • 8 data bits
  • 1 stop bit