Skip to content

Instantly share code, notes, and snippets.

View elundmark's full-sized avatar
💭
I may be slow to respond.

elundmark

💭
I may be slow to respond.
View GitHub Profile
"use strict";
// var server = require("./static_server.js");
// server.actions.start("dir", 8080);
// // server.actions.stop();
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs"),
var Benchmark = require('benchmark');
var microtime = require('microtime');
var suite = new Benchmark.Suite();
suite
.add('Date.now()', function () {
var diff1 = Date.now() - Date.now();
})
.add('microtime.now()', function () {
@elundmark
elundmark / mpv-build_libc6-amd64_fix.sh
Last active August 29, 2015 14:20 — forked from dz0ny/gist:b9e3fce83d0c52e16857
Fix for mpv-build broken dep libc6-amd64 libc6:amd64
mkdir -p mpv-fix
dpkg-deb -R mpv_0.9.0_amd64.deb mpv-fix
sed -i "s/libc6-amd64/libc6:amd64/" mpv-fix/DEBIAN/control
dpkg-deb -b mpv-fix mpv_0.9.0_fixed_amd64.deb
rm -rf mpv-fix
sudo dpkg -i mpv_0.9.0_fixed_amd64.deb
#!/bin/bash
install_pkgs() {
sudo apt-get install "$@"
}
install_go_engine() {
local prefix=http://googleappengine.googlecode.com/files/go_appengine_sdk
local os=linux
local -A arches=([x86_64]=amd64 [i386]=386)
[Scheme]
Name=Gruxbox
ColorForeground=#f2f2e5e5bcbc
ColorBackground=#323230302f2f
ColorCursor=#d65bc4cd8ca1
ColorPalette=#323230302f2f;#cccc24241d1d;#989897971a1a;#d7d799992121;#454585858888;#b1b162628686;#68689d9d6a6a;#929283837474;#1d1d20202121;#fbfb49493434;#b8b8bbbb2626;#fafabdbd2f2f;#8383a5a59898;#d3d386869b9b;#8e8ec0c07c7c;#b9b9a6a69393

How TO Install Jedi Academy w/ Wine

I had some problems installing this game, and after searching for any solutions out there I found that I wasn't alone. I was surprised to find that it does install pretty easily, and runs bloody well. I compared the performance with the open sourced version of Jedi Outcast, and considering that Jedi Academy is a bit more resource heavy, it's close to native speeds.

So, the problem I noticed many had, is the installer, because there are 2 CDs, and switching cds in Wine is always a problem, especially when you're mounting them as iso's. Beware that this solution requires you to use a "NoCd" exe, but since you own the original game you have nothing to worry about. Follow these steps:

  1. Pop in the CDs and [convert them to iso images](http://askubuntu.com/questions/136165/how-to-create-iso-
#!/bin/sh
#
# This maintains a one week rotating backup. This will normalize permissions on
# all files and directories on backups. It has happened that someone removed
# owner write permissions on some files, thus breaking the backup process. This
# prevents that from happening. All this permission changing it tedious, but it
# eliminates any doubts. I could have done this with "chmod -R +X", but I
# wanted to explicitly set the permission bits.
#
# Pass two arguments: rsync_backup SOURCE_PATH BACKUP_PATH
# Turns off shadows for Kazam Sreen Recorder, Gimp, and all shaped windows
# echo "shadow-ignore-shaped = true;" >> ~/.config/compton.conf
compton -cC -o 0.6 -r 12 -l -18 -t -12 -G -b \
--no-fading-openclose --shadow-red 0.04 --shadow-green 0 --shadow-blue 0 \
--shadow-exclude='n:w:*Kazam*' \
--shadow-exclude='n:w:*Kazam*' \
--shadow-exclude='n:w:Gimp*' \
--shadow-exclude='n:w:gimp*' \
#!/bin/bash
terminalcmd="lxterminal"
# already running
[[ "$(pgrep -x dmenu)" ]] && exit 0
# delete unsafe old shell file
[[ -f "/tmp/dmenu_run_bash.sh" ]] && rm "/tmp/dmenu_run_bash.sh"
# my default first listed apps
/*
* Fix font-family:Times showing as Nimbus No9 on Linux
*
* Example (debugging): http://jsfiddle.net/2GzvY/3/embedded/result/
*
* Problem: Specifying "Times" and not "Times New Roman" in your css will render with the Nimbus No9 font.
* Solution: Force the browser to select "Times New Roman" with @font-face rules.
* Dependencies: msttcorefonts installed
* Author: mail@elundmark.se
* Date 2013-10-04