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/sh | |
# Returns 0 if health file has been modified within the last minute | |
# Otherwise return non-zero | |
# Usage: ./probe.sh [health-file] | |
HEALTH_FILE=${1:-"/opt/app/alive.txt"} | |
test $(find ${HEALTH_FILE} -mmin -1) | |
exit $? |
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
public class Main { | |
public static void main(String[] args) throws InterruptedException { | |
number(1); | |
number(2); | |
word("Fizz"); | |
number(4); | |
word("Buzz"); | |
word("Fizz"); | |
number(7); |
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
public class Main { | |
public static void main(String[] args) { | |
// write your code here | |
fizzBuzz(1); | |
} | |
public static void fizzBuzz(int i){ | |
System.out.println(i++); // 1 |
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
## About | |
I have had problems running the game Metro 2033 on Linux. An old installation created a file (user.cfg) and the game was unplayable. After renaming my user.cfg's (there are two of them) a new, very different, config file was generated. | |
For example, in my old config there were multiple references to physX, which is nVidia technology. I am using two AMD cards in crossfire, so physX won't work for me. | |
I am posting this file for this thread: | |
http://steamcommunity.com/app/286690/discussions/1/619573787393136523 | |
## New config |
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
# Site settings | |
title: Emil Marklund's blog of digital magics | |
email: [email protected] | |
description: > | |
A blog on programming, GNU Linux/Unix and other things I might find interesting. | |
I like to learn and teach and writing about what I learn is a great way to do both. | |
This blog is running Jekyll | |
baseurl: "" # the subpath of your site, e.g. /blog/ | |
url: "http://eeemil.se" # the base hostname & protocol for your site | |
twitter_username: eeemil_ |