Skip to content

Instantly share code, notes, and snippets.

@bzerangue
bzerangue / _verify-repair-permissions-disk.md
Last active March 20, 2025 20:23
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@cbarraford
cbarraford / install_ixgbevf.bash
Last active November 28, 2019 21:35
Install ixgbevf driver for amazon aws enhanced networking (ubuntu)
aptitude install -y build-essential
wget "http://downloads.sourceforge.net/project/e1000/ixgbevf stable/2.11.3/ixgbevf-2.11.3.tar.gz"
tar -zxf ./ixgbevf-*
cd ixgbevf*/src
make install
modprobe ixgbevf
sudo update-initramfs -c -k all
echo "options ixgbevf InterruptThrottleRate=1,1,1,1,1,1,1,1" > /etc/modprobe.d/ixgbevf.conf
@lubosz
lubosz / distortion.frag
Last active March 29, 2018 07:23
Fragment shader for Oculus Rift distortion in GStreamer glshader
#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect bgl_RenderedTexture;
const vec4 kappa = vec4(1.0,1.7,0.7,15.0);
const float screen_width = 1920.0;
const float screen_height = 1080.0;
const float scaleFactor = 0.9;