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
/* Read the RAPL registers on recent (>sandybridge) Intel processors */ | |
/* */ | |
/* MSR Code originally based on a (never made it upstream) linux-kernel */ | |
/* RAPL driver by Zhang Rui <[email protected]> */ | |
/* https://lkml.org/lkml/2011/5/26/93 */ | |
/* Additional contributions by: */ | |
/* Romain Dolbeau -- romain @ dolbeau.org */ | |
/* */ | |
/* Compile with: gcc -O2 -Wall -o rapl-read rapl-read.c -lm */ | |
/* */ |
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 | |
DOMAIN=example.com | |
TARGET=mail@$DOMAIN | |
SSH_HOST=example.com | |
SSH_USER=$USER | |
DBNAME=postfixadmin |
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
set(CMAKE_SYSTEM_NAME Linux) | |
# Adapt these to match your setup | |
set(CROSS_COMPILER_PREFIX /opt/gcc-cross) | |
set(CROSS_COMPILER_TARGET powerpc64le-linux-gnu) | |
set(CMAKE_SYSTEM_PROCESSOR powerpc64le) | |
set(CMAKE_C_COMPILER ${CROSS_COMPILER_PREFIX}/bin/${CROSS_COMPILER_TARGET}-gcc) | |
set(CMAKE_CXX_COMPILER ${CROSS_COMPILER_PREFIX}/bin/${CROSS_COMPILER_TARGET}-g++) |
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 | |
import sys, os | |
from Carbon.CoreFoundation import * | |
from Carbon.CF import * | |
def to_posix(hfs_path): | |
if hfs_path: | |
return toCF(hfs_path).CFURLCreateWithFileSystemPath(kCFURLHFSPathStyle, False).CFURLCopyFileSystemPath(kCFURLPOSIXPathStyle).toPython() |
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
class Rl < Formula | |
homepage "http://www.roboticslibrary.org" | |
url "https://github.com/roboticslibrary/rl/archive/0.6.2.tar.gz" | |
sha1 "b0e40bd06cae2a96f0a517ceaa72fc2237d1620b" | |
depends_on "cmake" => :build | |
depends_on "boost" | |
depends_on "cgal" | |
depends_on "coin" |