Skip to content

Instantly share code, notes, and snippets.

View grekko's full-sized avatar
🙃
wAt

Gregory Igelmund grekko

🙃
wAt
View GitHub Profile
@grekko
grekko / raspberry-install.sh
Created December 4, 2014 11:41
Raspberry Install script
#!/bin/sh
# Source: https://www.danpurdy.co.uk/web-development/raspberry-pi-kiosk-screen-tutorial/
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install chromium x11-xserver-utils unclutter
# After the installation, do:
# 1) Disable screensaver
# sudo nano /etc/xdg/lxsession/LXDE/autostart
# 2) Disable by commenting out: "@xscreensaver -no-splash"
# Add the following:
@grekko
grekko / rspec-helpers-require_lib.gemspec
Last active August 29, 2015 14:12
RequireLib Helper for Rspec
Gem::Specification.new do |s|
s.name = 'rspec-helpers-require_lib'
s.version = '0.0.1'
s.platform = Gem::Platform::RUBY
s.author = 'Gregory Igelmund'
s.email = '[email protected]'
s.summary = 'requiring libs made easy'
s.description = 'requiring libs made eady'
s.files = ['rspec-helpers-require_lib.rb']
@grekko
grekko / keybase.md
Last active August 29, 2015 14:12
My keybase authentication

Keybase proof

I hereby claim:

  • I am grekko on github.
  • I am grekko (https://keybase.io/grekko) on keybase.
  • I have a public key whose fingerprint is 7751 4AFC C6CF 9CB1 F471 ED8C B7A0 8E77 273A F8E0

To claim this, I am signing this object:

@grekko
grekko / game-of-life.js
Created April 24, 2015 14:12
One-Dimensional Game of Life in one sane line of ES6 JS
describe('Game of life', function() {
it('should evolve exist', function() {
assert.equal(typeof e, 'function');
});
it('should evolve return same length list', function() {
var board = [0, 0, 0, 0, 0];
assert.equal(e(board).length, board.length);
@grekko
grekko / rbenv-install-with-patches.rb
Created August 25, 2015 15:19
Install (via rbenv) rubies with patches (e.g. for memory profiling)
#!/usr/bin/env ruby
require 'open-uri'
require 'pathname'
PATCH_REPO_BASE_URL = 'https://raw.githubusercontent.com/skaes/rvm-patchsets/master'
PATCH_SET = ARGV[0]
PATCH_RUBY_VERSION = ARGV[1]
raise 'Please specify a patchset (e.g. railsexpress). `ruby-install-with-patches railsexpress 2.2.3`' if PATCH_SET.nil?
@grekko
grekko / htw-doodle-slots.js
Last active November 16, 2015 08:27
HTW: Doodle prefill Dates configurable time slots
window.__startDate = function(startHours, startMinutes) {
dateStr = $('.timesTable .first').data('date-string').toString();
date = new Date(dateStr.substr(0, 4), dateStr.substr(4, 2), dateStr.substr(6, 2));
date.setHours(startHours);
date.setMinutes(startMinutes);
return date;
};
window.__dateIncMinutes = function(date, minutes) {
var ms = date.getTime();
@grekko
grekko / .tmux.conf.local
Created April 1, 2016 10:32
My local tmux conf
# color settings
# http://www.drbunsen.org/the-text-triumvirate/
set -g default-terminal "screen-256color"
# Status bar
set -g window-status-format "#[fg=colour244,bg=colour234]#I#[fg=colour240]|#[fg=colour249]#W"
set -g window-status-current-format "#[fg=colour117,bg=colour31] [#I] #[fg=colour231,bold]#W "
# using C-q instead of C-b
set-option -g prefix C-q
@grekko
grekko / keybase.md
Last active September 21, 2021 21:09
Keybase identity claim

Keybase proof

I hereby claim:

  • I am grekko on github.
  • I am grekko (https://keybase.io/grekko) on keybase.
  • I have a public key ASAhhiUXVqpSd6UDNXA94HNMIArn8qOOEWpY5KJzlkIf0Qo

To claim this, I am signing this object:

@grekko
grekko / trello-session-planner.js
Created August 26, 2016 13:50
Trello Session Planner in Trello
// SoCraTes Saturday Board
const boardId = '57c0027c35c4653ca5d1c29a';
const error = (errorMsg) => { asyncOutput(errorMsg); };
// Lists per Board
const listNames = [
"Hamburg",
"Hannover",
"Bremen",
"Berlin",
@grekko
grekko / querySelectorAll.js
Created September 2, 2016 19:14
Medium: NodeList to Array #1
const headlines = document.querySelectorAll("h2")
// You can check the type of an object by
// headlines.constructor
// => NodeList() { [native code] }