Step-by-step installtion of cGit on nginx without funky rewrite rules.
This is for
class CreateItemChildrenCountView < ActiveRecord::Migration | |
def self.up | |
execute <<-SQL | |
CREATE VIEW item_children_count AS | |
SELECT parent_id AS item_id, COUNT(*) as children_count | |
FROM items GROUP BY parent_id; | |
SQL | |
end | |
def self.down |
This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf
using homebrew.
#include "StdAfx.h" | |
#include <Setupapi.h> | |
#pragma comment(lib, "Setupapi.lib") | |
#include "SerialPort.h" | |
SerialPort::SerialPort(void) : end_of_line_char_('\n') | |
{ | |
} |
korn.c
is the "Best One Liner" winner of the 1987 International Obfuscated C Code Contest, by David Korn (yes, the author of the Korn Shell).
korn.hint
, as the name implies, offers some hints.
A commenter on Stack Overflow asked for some clarification. I didn't want to post spoilers on the site, so I'm posting them here instead. If you haven't already (and if you're familiar with the rules of C) I encourage you to study the program for a while first.
=====
Here's the code:
/opt/flexlm
At this point you should have something similar to following directory structure:
/opt/flexlm/
└── VENDOR
#!/usr/bin/env python3 | |
from os import getuid | |
from subprocess import run | |
from sys import exit, stderr | |
MAIN_PATH = '/usr/share/X11/xkb/symbols/fr' | |
BACKUP_PATH = MAIN_PATH + '.bck' | |