Skip to content

Instantly share code, notes, and snippets.

View henrebotha's full-sized avatar
🎮
2[HP] jc j.[HP] 2[MP] 236L 66 2[HP]…

Henré Botha henrebotha

🎮
2[HP] jc j.[HP] 2[MP] 236L 66 2[HP]…
  • Haarlem, The Netherlands
View GitHub Profile
Using rake 10.3.2
Using i18n 0.6.11
Using json 1.8.1
Using minitest 5.4.2 (was 5.4.1)
Using thread_safe 0.3.4
Using tzinfo 1.2.2
Installing activesupport 4.1.6 (was 4.1.5)
Using builder 3.2.2
Using erubis 2.7.0
Installing actionview 4.1.6 (was 4.1.5)
@henrebotha
henrebotha / gist:61cd357a547aaa33a75c
Created October 29, 2014 08:34
livereload not working
➜ gramscout git:(staging) ✗ guard -P livereload
WARN: Unresolved specs during Gem::Specification.reset:
listen (~> 2.7)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
10:31:07 - INFO - Guard here! It looks like your project has a Gemfile, yet you are running
> [#] `guard` outside of Bundler. If this is your intent, feel free to ignore this
> [#] message. Otherwise, consider using `bundle exec guard` to ensure your
> [#] dependencies are loaded correctly.
> [#] (You can run `guard` with --no-bundler-warning to get rid of this message.)
@henrebotha
henrebotha / gist:6a8927b5e02d2af99fef
Created October 29, 2014 08:35
livereload working
➜ gramscout git:(staging) guard -P livereload
WARN: Unresolved specs during Gem::Specification.reset:
celluloid (>= 0.15.2)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
12:25:04 - INFO - Guard here! It looks like your project has a Gemfile, yet you are running
> [#] `guard` outside of Bundler. If this is your intent, feel free to ignore this
> [#] message. Otherwise, consider using `bundle exec guard` to ensure your
> [#] dependencies are loaded correctly.
> [#] (You can run `guard` with --no-bundler-warning to get rid of this message.)
# x does not exist yet
if false == true: # obviously this should never execute
x = 5
end
x
# x now exists. wtf
<!-- Oceanic Next, modified to remove alpha and color space references -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.16862745583057404</real>
@henrebotha
henrebotha / builds.html
Created March 20, 2016 07:44
example HTML
<!DOCTYPE html>
<html>
<head>
<title>Builds - FFTA2 Clan guide</title>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
<header><!--#include "/includes/navigation.ssi"--></header>
<body>
@henrebotha
henrebotha / mystyles.css
Created March 20, 2016 08:29
example CSS
body, article, header
{
background-color:white;
/*background-image:url("FFTA2-Logo.jpg");*/
background-repeat:no-repeat;
background-attachment:fixed;
color:black;
font-family:Arial,Helvetica,sans-serif;
}

Keybase proof

I hereby claim:

  • I am henrebotha on github.
  • I am henrebotha (https://keybase.io/henrebotha) on keybase.
  • I have a public key ASBtSJbXiNfXbqei3-OxyWEGxupaV6xII3zohs5citb4Ago

To claim this, I am signing this object:

@henrebotha
henrebotha / dir-switch.zsh
Created October 7, 2020 09:01
Example script for switching working directory in shell & Vim using Tmux
#! /usr/bin/env zsh
# Call this script as ./dir-switch.zsh /desired/directory
set -e
trap 'echo ERROR at $0 $LINENO; return' ERR
active_window=$(tmux list-windows | rg '\(active\)' | sed 's/:.\+//g')
panes=("${(@f)$(tmux list-panes -F '#{pane_index}')}")
active_pane=$(tmux list-panes -F '#{pane_active} #{pane_index}' | rg '^1' | sed 's/^1 //g')
@henrebotha
henrebotha / README.md
Last active March 8, 2022 09:17
How to set up a TypeORM playground

How to set up a TypeORM playground

This guide is intended for people who'd like to experiment with TypeORM in a hands-on fashion. I find this especially helpful when attempting to construct complex queries.

Prerequisites

You need Yarn and Docker installed.

Process