Skip to content

Instantly share code, notes, and snippets.

View chp-io's full-sized avatar

Christopher Pelloux chp-io

View GitHub Profile
@chp-io
chp-io / git-repo-rinse
Last active June 17, 2021 20:36 — forked from nicktoumpelis/repo-rinse.sh
Cleans and resets a git repo and its submodules
#!/bin/sh
git reset --hard
git submodule foreach --recursive 'git reset HEAD . || :'
git submodule foreach --recursive 'git checkout -- . || :'
git submodule update --init --recursive
git clean -d -f -f -x
git submodule foreach --recursive git clean -d -f -f -x
#TODO add submodule filtering argument

The current kernel/drivers of Fedora 24 do not support the Wifi chip used on my Mac Book Pro. Proprietary Broadcom drivers are packaged and available in the rpmfusion repo.

Verify that your card is a Broadcom using: lspci -vnn -d 14e4:

Sample output:

02:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)

Install

Install the rpmfusion repo, note only "nonfree" is required, as the Broadcom Driver is proprietry: http://rpmfusion.org/

@chp-io
chp-io / opengl-transparency-demo.cpp
Created February 17, 2016 11:38 — forked from wilkie/opengl-transparency-demo.cpp
Rendering directly to a composited window in vista+ with opengl.
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <windowsx.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <dwmapi.h>
#pragma comment (lib, "opengl32.lib")
@chp-io
chp-io / .gitignore
Created October 11, 2013 15:10 — forked from bmchild/.gitignore
# Directories #
/build/
/bin/
target/
# OS Files #
.DS_Store
*.class