Skip to content

Instantly share code, notes, and snippets.

View nbigaouette's full-sized avatar

Nicolas Bigaouette nbigaouette

  • CrowdStrike
  • Montréal, Québec, Canada
View GitHub Profile
==> Determining latest git revision...
-> Version found: 20101209
==> Making package: zen-kernel 20101209-1 (Thu Dec 9 10:50:07 EST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found kernel26-zen.conf
-> Found kernel26-zen.preset
-> Downloading linux-2.6-zen.v2.6.36-zen0-full-git.tar.gz...
--2010-12-09 10:50:11-- http://downloads.zen-kernel.org/snapshots/zen-stable/linux-2.6-zen.v2.6.36-zen0-full-git.tar.gz
@nbigaouette
nbigaouette / unreachable_test.cpp
Created February 24, 2011 21:37
Simple test case for testing clang++ #pragma
// Compilation:
// clang++ -Wunreachable-code -c src/Main.cpp -o build/Main.o
// src/Main.cpp:18:9: warning: will never be executed [-Wunreachable-code]
// std::cout << "First debug output." << std::endl;
// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// src/Main.cpp:22:9: warning: will never be executed [-Wunreachable-code]
// std::cout << "Second debug output." << std::endl;
// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// 2 warnings generated.
//
@nbigaouette
nbigaouette / slurm.conf
Created March 23, 2011 02:31
slurm config file
# slurm.conf file generated by configurator.html.
# Put this file on all nodes of your cluster.
# See the slurm.conf man page for more information.
#
ControlMachine=unicron
#ControlAddr=
#BackupController=
#BackupAddr=
#
AuthType=auth/munge
@nbigaouette
nbigaouette / toutv
Created April 3, 2011 21:36
tou.tv
#! /bin/sh
#
# rtmpdump.sh
#
# http://store-it.appspot.com/tou/tou.html
RTMPDUMP=rtmpdump
RTMP="`echo $* | sed 's/<break>.*$//'`"
APP="`echo ${RTMP} | sed 's/^.*\/\(ondemand\/\?\)/\1/'`"
@nbigaouette
nbigaouette / Makefile
Created April 27, 2011 20:46
AMD Stream OpenCL bug?
# while [ 1 ]; do pidof -x opencl_test | xargs ps u -p | tail -1 | awk '{print ""$6" KiB "$6/1024" MiB "$6/1024**2" GiB"}' ; sleep 0 ;done 2> /dev/null
BIN = opencl_test
a: all
all : $(BIN)
$(BIN): main.cpp
g++ -g main.cpp -o opencl_test -lOpenCL
@nbigaouette
nbigaouette / ocl.log
Created July 7, 2011 15:48
Output from oclutils.git's platform test
OpenCL: Getting a list of platform(s)... done.
OpenCL: Initializing the 2 available platforms...
OpenCL: Initialize platform "Intel(R) OpenCL"'s device(s)
OpenCL: WARNING: Can't find a usable GPU!
OpenCL: Trying to set an context on Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (id = 0)... Success!
OpenCL: Initialize platform "AMD Accelerated Parallel Processing"'s device(s)
OpenCL: WARNING: Can't find a usable GPU!
OpenCL: Trying to set an context on Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (id = 0)... Success!
OpenCL: Available platforms:
Platform information:
@nbigaouette
nbigaouette / arrows.py
Created October 15, 2012 16:31
Matplotlib arrow (annotate) bug (#1402)
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
fig1 = plt.figure()
ax1 = fig1.add_subplot(221)
ax2 = fig1.add_subplot(222)
ax3 = fig1.add_subplot(223)
@nbigaouette
nbigaouette / prody.PKGBUILD
Created March 9, 2015 13:38
PKGBUILD for ProDy
# Maintainer: Tomasz Zok <tomasz.zok@gmail.com>
pkgbase=python-prody
pkgname=('python2-prody' 'python-prody')
pkgver=1.5.1
pkgrel=2
pkgdesc="Protein Dynamics & Sequence Analysis"
arch=(any)
url="http://www.csb.pitt.edu/prody/"
license=('GPLv3')
makedepends=('python>=2.7' 'python3' 'python-setuptools' 'python2-setuptools')
#!/bin/sh
echo '<RCC>
<qresource prefix="/">'
cwd=$(pwd)
cd qml-material/modules
subdir=$(pwd | sed "s|${cwd}/||g")
find Material/ -name 'qmldir' | sort | sed "s|\(.*\)| <file alias=\"\1\">${subdir}/\1</file>|g"
use std::path::Path;
use std::path::PathBuf;
use std::env;
use std::process::Command;
fn main() {
let out_dir = env::var("OUT_DIR").unwrap();
let target = env::var("TARGET").unwrap();