Skip to content

Instantly share code, notes, and snippets.

View nicerobot's full-sized avatar
๐Ÿค–
โ˜ฏ๏ธ โ˜ฎ๏ธ ๐Ÿถ ๐Ÿพ ๐Ÿ‘พ ๐ŸŽฎ ๐ŸŽผ ๐ŸŽถ ๐Ÿ•บ ๐ŸŽง ๐ŸŒป ๐ŸŒฑ ๐Ÿž ๐ŸŒŠ ๐ŸŒ” ๐ŸŒŽ

nicerobot

๐Ÿค–
โ˜ฏ๏ธ โ˜ฎ๏ธ ๐Ÿถ ๐Ÿพ ๐Ÿ‘พ ๐ŸŽฎ ๐ŸŽผ ๐ŸŽถ ๐Ÿ•บ ๐ŸŽง ๐ŸŒป ๐ŸŒฑ ๐Ÿž ๐ŸŒŠ ๐ŸŒ” ๐ŸŒŽ
View GitHub Profile
@nicerobot
nicerobot / README.md
Last active March 22, 2024 10:24
GNUStep

Objective-C on Linux

Just run:

curl -ks https://gist.github.com/nicerobot/5652802/raw/install.sh | bash -

run

curl -ks https://gist.github.com/nicerobot/5762235/raw/pup | sudo bash
@nicerobot
nicerobot / README.md
Last active December 18, 2015 22:19
OpenCL

Run:

curl -ks https://gist.github.com/nicerobot/5853569/raw/opencl.sh | bash -
@nicerobot
nicerobot / README.md
Last active December 19, 2015 15:49
Find folders that are _not_ git repositories. This means, the parent folder of the .git directory is not reported by find.

I finally spent the time to figure this out. It's easier than I thought:

find . -type d -exec test -e {}/.git \; -prune -o -type d ! -path . -print
@nicerobot
nicerobot / README.md
Last active December 19, 2015 17:09
SQL Formatting Standard

Good grief, please stop with this horrendous SQL formatting recommendation.

The interesting bits of SQL are not the keywords. Why in the world do you highlight them in BOLD?! The verbosity of them is ridiculously unwieldy.

The interesting bits of SQL is the structure of the statement. So highlight the structure!

These are my preferred styles:

@nicerobot
nicerobot / README.md
Last active December 22, 2015 06:38
A modified version of the neo4j script that allows for starting the server within the current directory or by specifying the location with NEO4J_INSTANCE.

I think servers should be able to easily run from the command line by default. I wasn't able to easily figure out how to do it using the neo4j script in the distribution. So here's a hacked neo4j script that allows it.

Install it:

curl -ks https://gist.github.com/nicerobot/6432404/raw/install.sh | bash

Run it:

e.g.

@nicerobot
nicerobot / install.sh
Last active January 16, 2024 07:34
Whew! QGIS 2 on Mavericks built using only Homebrew packages (i.e. without KyngChaos) \o/ -- WARNING: A _major_ assumption here is that your Homebrew PREFIX is /usr/local . -- DISCLAIMER: It worked for me. YMMV
#!/bin/bash
# Run this:
#
# curl https://gist.github.com/nicerobot/7664605/raw/install.sh | bash -s do-sudo
#
# which will run:
[ -f qgis2-homebrew-build.sh ] || {
curl -O https://gist.github.com/nicerobot/7664605/raw/qgis2-homebrew-build.sh
@nicerobot
nicerobot / forwardgit.sh
Last active December 30, 2015 14:39
rsync the working directory to a directory under ~/.forwardgit/ then run the git command in that directory.
#!/bin/bash
# Simply wraps git to rsync the current folder under ~/.forwardgit/ then
# runs the git command in that folder.
# The reason: https://plus.google.com/+nicerobot/posts/YDAaKbaiGRw
# TODO try this with gin https://github.com/nicerobot/gin
# set -x
@nicerobot
nicerobot / State.scala
Last active December 30, 2015 15:59
Akka Actor state (i.e. become/unbecome)
package test
import akka.actor.Actor
import akka.actor.Props
import akka.actor.ReceiveTimeout
import scala.concurrent.duration._
import akka.actor.ActorLogging
import akka.event.LoggingReceive
case class Next()