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 / user-repos-default-branch.sh
Created June 27, 2020 07:21
Update the default branch name for every repo in a user/org
#!/bin/bash
NAME="$1"
BRANCH="${2:-main}"
HUB=$(which hub || echo /usr/local/bin/hub)
# get repos that belong to the given user/org, are not archived, and are not forks
repos=($($HUB api --paginate --obey-ratelimit --flat graphql -f query='
query($endCursor: String) {
repositoryOwner(login: "'"$NAME"'") {
repositories(isLocked: false, isFork: false, first: 100, after: $endCursor) {
@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 / gitx-gitx.rb
Created March 19, 2018 05:35
Homebrew recipe for gitx/gitx
cask 'gitx-gitx' do
version '0.16-2327'
sha256 'c8dd6dcac8dd85808acdb937f3125bf67b2b1c2b36da5541f20de73628abf544'
url 'https://github.com/gitx/gitx/releases/download/build%2F0.16%2F2327/GitX-dev-2327.dmg'
name 'GitX'
homepage 'https://github.com/gitx/gitx'
conflicts_with cask: ['gitx', 'laullon-gitx', 'rowanj-gitx']
@indirect
indirect / actionpack.gemspec
Last active November 29, 2017 07:04
Bundler repro case for #6072
Gem::Specification.new do |s|
s.name = "actionpack"
s.version = "5.1.4"
s.summary = ""
s.description = ""
s.author = "David Heinemeier Hansson"
s.add_dependency "rack", "~> 2.0"
end
// -*- mode: c++ -*-
// Copyright 2016 Keyboardio, inc. <[email protected]>
// See "LICENSE" for license details
#ifndef BUILD_INFORMATION
#define BUILD_INFORMATION "locally built"
#endif
/**
@indirect
indirect / ladder.md
Created June 12, 2017 21:55 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder
@indirect
indirect / boxen-add
Created February 1, 2017 08:30
A script to easily install new packages and add them to boxen
#!/usr/bin/env ruby
if ARGV.empty?
abort "USAGE: boxen-add [brew|cask|mas] NAME"
end
require 'yaml'
def hiera_path
"/opt/boxen/repo/hiera/users/indirect.yaml"