This is a instruction to patch the usb infrared toy driver into lirc sources. Most of the work is done by Peter Kooiman
- Debian based OS (only tested on rapbian)
- root privileges
- USB Infrared Toy
| gem 'stackprof', require: false | |
| gem 'ruby-prof', require: false |
| #!/usr/bin/sudo ruby | |
| # | |
| # revealer.rb -- Deobfuscate GHE .rb files. | |
| # | |
| # This is simple: | |
| # Every obfuscated file in the GHE VM contains the following code: | |
| # | |
| # > require "ruby_concealer.so" | |
| # > __ruby_concealer__ "..." |
| Start a g2.2xlarge or better (GPU instance) with https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#LaunchInstanceWizard:ami=ami-ffba7b94 | |
| Login, username is ubuntu | |
| Update a bunch of stuff and make sure cudnn R2 is used: | |
| luarocks install image | |
| luarocks install loadcaffe | |
| luarocks install torch | |
| export LD_LIBRARY_PATH=/home/ubuntu/torch-distro/install/lib:/home/ubuntu/torch-distro/install/lib:/home/ubuntu/cudnn-6.5-linux-x64-v2-rc2 |
This is a instruction to patch the usb infrared toy driver into lirc sources. Most of the work is done by Peter Kooiman
Grab ffmpeg from https://www.ffmpeg.org/download.html
It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.
The most trivial operation would be converting gifs:
ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
-crf values can go from 4 to 63. Lower values mean better quality.-b:v is the maximum allowed bitrate. Higher means better quality.| # 1) Create your private key (any password will do, we remove it below) | |
| $ cd ~/.ssh | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |
The purpose of design is to allow you to do design later, and it's primary goal is to reduce the cost of change.
Note: This guide works with Ruby 2.6+ through Ruby 3.x, with modern Ruby 3.x features highlighted where applicable. Core metaprogramming concepts remain consistent across Ruby versions.
This document has been collaboratively updated and modernized through an interactive process with Claude Code, revised with examples, visual diagrams, and Ruby 3.x compatibility.
| # No flash messages are set with this controller. | |
| # | |
| # This is a fairly basic / bare controller which does only the basic CRUD. | |
| class BooksController < ApplicationController | |
| respond_to :html, :xml, :json | |
| before_action :set_book, only: [:show, :edit, :update, :destroy] | |
| def index | |
| respond_with @books = Book.all |