- Wikipedia: Noctis (Web page)
- Noctis - Official site (Web page)
- Proteus - early prototype screenshots (Blog post)
- Gamasutra: The Making of Elite (Video)
- The Brilliance of Dwarf Fortress
- Interview with Tarn Adams (creator of Dwarf Fortress) (Slides) (Video)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# originaly from http://tinyurl.com/twitch-linux from taladan | |
# www.youtube.com/user/taladan | |
# gist created by brodul | |
INRES="1280x800" # input resolution | |
#OUTRES="1024x640" # Output resolution | |
OUTRES="800x500" # Output resolution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This is a script I use to setup MySQL on ramdisk | |
# after I need to reboot. This assumes that you already | |
# have MySQL installed and have previously moved your | |
# MySQL files to a backup location, e.g.: | |
# mv /var/lib/mysql /home/cgallemore/workspace/mysql | |
stop mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import akka.actor.ActorSystem | |
import akka.io.IO | |
import akka.io._ | |
object Boot extends App { | |
import akka.io.Tcp._ | |
implicit val sys = ActorSystem("io") | |
import akka.actor.{Actor, Props, ActorRef} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// After that we just create the GUI Actors with a Props with the correct dispatcher set: | |
val javaFxActor = context.actorOf(Props[JavaFxActor].withDispatcher("javafx-dispatcher"), "javaFxActor") | |
val swingActor = context.actorOf(Props[SwingActor].withDispatcher("swing-dispatcher"), "swingActor") | |
// Done! Now all messages processed by the new actor will be executed by the Swing/JavaFX Event Dispatch Thread, enjoy! |
- With Docker 1.8.0 shipped new log-driver for GELF via UDP, this means that the logs from Docker Container(s) can be shipped directly to the ELK stack for further analysis.
- This tutorial will illustrate how to use the GELF log-driver with Docker engine.
- Step 1: Setup ELK Stack:
docker run -d --name es elasticsearch
docker run -d --name logstash --link es:elasticsearch logstash -v /tmp/logstash.conf:/config-dir/logstash.conf logstash logstash -f /config-dir/logstash.conf
- Note the config for Logstash can be found at this link
docker run --link es:elasticsearch -d kibana
- Once the ELK stack is up now let's fire up our nginx container which ships its logs to ELK stack.
LOGSTASH_ADDRESS=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' logstash)
- `docker run -d --net=host --log-driver=gelf --log-opt gelf-address=u
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Used to define the asset prefix at runtime | |
__webpack_require__.p = window.WEBPACK_ASSET_PREFIX || "ERROR-WEBPACK_ASSET_PREFIX-NOT-SET/"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
def count_change(amount): | |
return cc(amount, 5) | |
def cc(amount, kinds_of_coins): | |
if(amount == 0): | |
return 1 |
Hacking CORS restriction to enable in-browser XHR to any server.
Say you are running an web app at localhost, and you want to send XHR to http://remote-server:80
, but the CORS restriction forbids access because you are sending requests from an origin that remote-server:80 does not allow.
Run:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::cell::RefCell; | |
struct Foo<'a> { | |
items: Vec<u8>, | |
cur_item: RefCell<Option<&'a u8>> | |
} | |
impl<'a> Foo<'a> { | |
fn mutate(&mut self) {} | |
} |
OlderNewer