This file contains hidden or 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
objects = ../../../mk/kimg.o cpu-arch.o scr-print.o | |
fill = ../../../utils/fill | |
cpu_objects = main.o task.o pgrequest.o descriptor.o thread.o tss.o interrupt.o paging.o memory.o cpu-asm.o syscall-gates.o int.o pic.o state_switch.o stack_winding.o caps.o permissions.o ttrace.o | |
prt_objects = print.o vga.o | |
dependencies = main.d task.d descriptor.d thread.d tss.d interrupt.d paging.d memory.d print.d caps.d permissions.d ttrace.d |
This file contains hidden or 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 | |
ufacct=$1 | |
bbacct=$ufacct | |
uf=$2 | |
bb=${3:-$uf} | |
echo "Cloning Unfuddle repo: $ufacct:$uf" | |
git clone --mirror git@$ufacct.unfuddle.com:$ufacct/$uf.git | |
cd $uf.git |
This file contains hidden or 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
[aaron@msi-cr620 workspace]$ cd hunk-test/ | |
[aaron@msi-cr620 hunk-test]$ git init . | |
Initialized empty Git repository in /home/aaron/workspace/hunk-test/.git/ | |
[aaron@msi-cr620 hunk-test]$ git branch | |
[aaron@msi-cr620 hunk-test]$ git branch -v | |
[aaron@msi-cr620 hunk-test]$ git status | |
# On branch master | |
# | |
# Initial commit | |
# |
This file contains hidden or 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
libraries/restorecon.rb | |
def restorecon_cmd(path) | |
%Q(restorecon "#{path}") | |
end | |
# restores selinux label for path | |
def restorecon(path) | |
execute restorecon_cmd(path) do | |
action :nothing |
This file contains hidden or 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
package main | |
import ( | |
"regexp" | |
"os" | |
"io/ioutil" | |
) | |
func main() { | |
regexp, _ := regexp.Compile(os.Args[1]) |
This file contains hidden or 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
require 'ruby-prof' | |
require 'benchmark' | |
module BenchmarkHelpers | |
PROFILE_OUTPUT_DIR = "profiling" | |
def self.safe_filename(name) | |
name.gsub(" ", "_") | |
end | |
def self.example_output_target_file!(example) |
This file contains hidden or 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
# config/initializers/comfortable_mexican_sofa.rb | |
require 'cms_renderer' | |
# lib/cms_renderer.rb | |
require 'action_view/renderer/renderer' | |
require 'action_view/renderer/template_renderer' | |
class CMSRenderer < ActionView::TemplateRenderer |
This file contains hidden or 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
/** | |
* Copyright 2012 Incandescent Software LLC | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
/** | |
* @typedef {Object} | |
*/ | |
var vendor = Vendor = {}; | |
///** | |
// * @constructor | |
// */ | |
//Vendor.VendorType = function() {}; |
This file contains hidden or 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
var express = require("express"); | |
var app = express(); | |
var TOO_MANY = 8000; | |
function handler(req, res) { | |
res.send("handler"); | |
} | |
// test higher routes, eventually you will get |