Skip to content

Instantly share code, notes, and snippets.

View indirect's full-sized avatar

André Arko indirect

View GitHub Profile
@indirect
indirect / .ruby-version
Last active February 25, 2023 23:01 — forked from koffeinfrei/.ruby-version
Performance comparison of different ruby serializer methods
3.2.1
@indirect
indirect / kiosk.md
Last active October 30, 2021 00:29 — forked from anthonyray/kiosk.md
Turn your Raspberry Pi into a kiosk playing looping videos

An acquaintance needed a video kiosk that plays looping videos for an exposition booth. Since I have a bunch of Raspberry Pis lying around, I figured that it would be the perfect use case for using one of them.

Let's assume we start from scratch, with a unflashed, brand new SD card and your Raspberry Pi.

Installing the OS

Install a version of Raspbian that includes the desktop. You can head over to : https://www.raspberrypi.org/downloads/raspbian/ and follow the instructions.

Once the image is downloaded, you can burn it to your SD card with tools like Etcher (https://www.balena.io/etcher/)

@indirect
indirect / proposal.md
Last active August 9, 2019 21:44 — forked from sidk/proposal.md

How would you summarize your proposal, in one sentence?

A web application that collects usage information from RubyGems.org, and surfaces that information in charts and graphs for use by the Ruby community—the initial version includes Ruby, Bundler, and RubyGems versions, as well as Ruby platform and CI platform.

Who are you, and how are you related to the project?

Sid Krishnan, a contributor to the project for the last few months, collaborating with André Arko, the original creator.

@indirect
indirect / slack-notification-filter.js
Created July 16, 2018 19:32 — forked from csepulv/slack-notification-filter.js
Slack Notification Filter using webtask.io
var request = require('request');
function shouldNotify(data) {
return data.text.includes("andre") || data.text.includes("indirect");
}
module.exports = function (context, done) {
console.log(JSON.stringify(context));
if (context.body.token === context.data.EXPECTED_TOKEN) {
if (shouldNotify(context.body)) {
@indirect
indirect / ladder.md
Created June 12, 2017 21:55 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder
@indirect
indirect / rspec_retries.rb
Last active August 29, 2015 14:26 — forked from seancribbs/rspec_retries.rb
Retry specs tagged with :sometimes
# Works with RSpec 3.2.0
module Sometimes
def run_with_retries(example_to_run, retries)
example = RSpec.current_example
example.metadata[:retries] ||= retries
retries.times do |t|
example.metadata[:retried] = t + 1
example.instance_variable_set(:@exception, nil)
example_to_run.run
#!/bin/bash
set -ex
bundle install --standalone
digest=$(md5 -q Gemfile)
cmd="raise \"Gemfile changed\" if %x[md5 -q Gemfile].chomp != \"${digest}\""
echo $cmd > bundle/bundler/setup.rb.new
cat bundle/bundler/setup.rb >> bundle/bundler/setup.rb.new
@indirect
indirect / .gitignore
Last active December 21, 2015 12:28 — forked from raggi/.gitignore
Rubygems Plaintext Index
specs.4.8
prerelease_specs.4.8
versions.list
names.list
specs
deps
gems
*.sha512
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAwijdP3d/kX/2amSFaqswoHQma47ahyf1Be8UM0v33Lospfr3
FnSgRa2Wfn0lguBw534ls0yVAoFa3ZKs3AkBvWbf0WwJb5WwOWlYxo0IfLT2r+Zm
qlmit0KbRkPpVeW6/4FB/qN+j4S57yFMP9ISbqG1VbxdW3SIwXzYrzRyadQgE1+d
7pSVCUzXHjYMdqlbK45Zy+aOV4JXloBb7ygLxXEsXRFJK3gDa1I6syPsl22k86MQ
0bagDEj1KkGS0XuFWUs1Ay+LMpwjLHkZxZm3D8XOv1c81M1ndduS2Al/NBT9SY5q
SaYu14XqdA6Ccc3nkMbNc5sqNgWdKEoLpAt/eQIDAQABAoIBAQCZ8sTbGekweQHt
gh63YV2BHBeKmQ50tB33woWF1uqFPalBQijAyWB7XxRA3wHrMALVypQiAsrz3ZUq
sq4VGZ8jinpVFxC0RUAhhYI6jID6QJKJDmrBD6mRHWL458gPr8QB639kZEZpjZfQ
H9rRj8PFrLqXbG+poFD++frlkPRXK9Tlw5/g1rujr2d/C9IoZ7P2nZVDkKV0An/7
@indirect
indirect / pair
Created November 11, 2012 07:47 — forked from steveklabnik/pair
A ruby script to change pairs
#!/usr/bin/env ruby
def usage
puts "./pair [name]: pair two people"
puts "./pair : switch to just steve"
exit
end
def set_config(name, email)
`git config user.name "#{name}"`