Skip to content

Instantly share code, notes, and snippets.

View michaelbutler's full-sized avatar
💥
Reticulating splines...

Michael Butler michaelbutler

💥
Reticulating splines...
View GitHub Profile
@philchristensen
philchristensen / sqs.py
Created September 5, 2013 16:28
Minimal script for sending/reading from Amazon SQS using Boto/Python.
conf = {
"sqs-access-key": "",
"sqs-secret-key": "",
"sqs-queue-name": "",
"sqs-region": "us-east-1",
"sqs-path": "sqssend"
}
import boto.sqs
conn = boto.sqs.connect_to_region(
@alexlafroscia
alexlafroscia / build.gradle
Last active December 21, 2020 10:31
JUnit Testing with Gradle
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'alex' at '1/27/15 7:02 PM' with Gradle 2.2.1
*
* This generated file contains a commented-out sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at http://gradle.org/docs/2.2.1/userguide/tutorial_java_projects.html
*/
// Apply the java plugin to add support for Java
@achautha
achautha / awslogs.md
Last active February 21, 2022 02:32
Monitor Docker container logs with AWS CloudWatch

Monitor Docker container logs with AWS CloudWatch

In this post, we are going to see how to monitor docker logs from AWS Cloudwatch logs. Docker supports different logging drivers one of which is awslogs

For this excersice, Docker container need NOT be running on EC2. We can send docker logs from anywhere to AWS.

Prerequisite

  • Ubuntu 14.04
  • Docker version 1.12 and above
@michaelbutler
michaelbutler / GIMX_on_PS5.md
Last active October 26, 2022 15:32
Using GIMX (similar to Xim Apex) on PlayStation 5 PS5 with Remote Play

How to use a Keyboard and Mouse on PS5 Games

In this guide we go over all the components you need to play on a PlayStation 5 console, nearly ANY game, with a Keyboard and Mouse. In my experience with my PlayStation on wired ethernet and my Phone on 5 Ghz WiFi I saw almost no lag (later I'll explain why this technique effectively cuts any latency in half versus using Remote Play normally). You probably already have all these parts at home, except the GIMX adapter and maybe the OTG USB Hub.

Screenshot_20221025_212215 Click to enlarge

Required Components Summary

@K-Phoen
K-Phoen / config.yml
Created December 18, 2012 11:22
Storing Symfony2 sessions in memcached
imports:
# ....
- { resource: services/session.yml }
framework:
# ....
session:
handler_id: session.handler.memcached
@SalomonBrys
SalomonBrys / Stadia-ubuntu.md
Last active February 15, 2023 17:48
Stadia in Ubuntu

Stadia in Ubuntu

1. Install Chromium-vaapi & drivers

  • Add the chromium-vaapi dev repository:
    sudo add-apt-repository ppa:saiarcot895/chromium-beta
    sudo apt-get update
    
  • Install Chromium-vaapi:
@michaelbutler
michaelbutler / RG351M_DPAD_README.md
Last active March 1, 2023 04:37
Guide on enhancing the D-Pad on the RG351M, likely could apply to RG351P, V, and maybe even the RG350 models.

Enhancing the D-PAD on the RG351M

So you've been playing on your RG351M, but you have noticed that the D-Pad diagonals are a bit tough to press? In some action games you have an advantage if you can quickly adjust direction from down, right-down, right in a quick and effortless fashion (Street Fighter, Zelda, side scrolling shooters, etc). You've come to the right place.

This guide will help you modify the D-Pad so that pressing the 8 directions is much easier!

⚠️ Warning!! This process is reserved for advanced users only. You must be very good with your hards working with small components to do this safely. Please proceed at your own risk. ⚠️

  • I have heard that the reset and power buttons are very delicate, it would be best to avoid putting any pressure on those buttons specifically, so that they don't snap off.
  • If you want to watch a partial video of the teardown (for RG351P) I recommend Retro Game Corps video: https://www.youtube.com/watch?v=pQYeQW8bwqQ -- it goes up to everythi
@michaelbutler
michaelbutler / README.md
Last active June 10, 2023 22:53
Copying and Backing up Google Photos to BackBlaze

Copying and Backing up Google Photos to BackBlaze

BackBlaze offers data backup to the cloud for just a few cents per gigabyte. So, when I had almost reached my 100 GB limit on Google Photos (Google One), I decided to tranfer it all to a local 4 TB hard drive and then put a second backup into the cloud for long term storage.

The process was not that easy, so if you have any better advice please let me know. Here is what I did:

Getting the Photos to Local Machine

I had about 65 GB of photos and videos on Google Photos I wanted to download, spanning thousands of files and multiple years. It would take far too long to do it in the browser so I went to Google Takeout in hopes it would be faster.

@chadrien
chadrien / README.md
Last active September 1, 2023 12:43
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
@michaelbutler
michaelbutler / Witcher_3_Linux_Easy_README.md
Last active October 17, 2023 10:18
Install and Play The Witcher 3 Complete Edition (GOG & GOG Galaxy) on Ubuntu Linux 20.04 with Lutris.net and Wine

How to install and play The Witcher 3 (GOG Edition) on Linux

It's really quite simple!

Step 1: Buy The Witcher 3 on gog.com

Simply go to https://www.gog.com/game/the_witcher_3_wild_hunt_game_of_the_year_edition (this should also work with the regular edition) and buy and add the game to your library.

Do NOT click "Download and Install" at this point. We will do this through Lutris.