Skip to content

Instantly share code, notes, and snippets.

@lombax85
lombax85 / gist:e25d331c063da83c5060693cada1a54f
Created April 15, 2021 09:14
Powernap on M1 and Big Sur
# check wake requests
pmset -g log | grep "Wake Requests"
# check wake logs
pmset -g log | grep darkwake
# statistics
pmset -g stats
# check if powernap is enabled
@lparry
lparry / InstallAirVideoServerDebian.sh
Created October 13, 2011 11:20
Install the AirVideoServer on a Debian server
INSTALL_DIR="/home/maicki"
FFMPEG_DIR="$INSTALL_DIR/ffmpeg"
PROPERTIE_FILE="$INSTALL_DIR/test.properties"
MEDIA="Movies:/home/maicki/Movies"
AIR_VIDEO_LINK="http://inmethod.com/air-video/download/linux/alpha4/AirVideoServerLinux.jar"
mkdir $INSTALL_DIR
cd $INSTALL_DIR
@mtcmorris
mtcmorris / lion-libpng
Created July 30, 2011 01:24
Fix lion libpng
Fixing Lion libpng issues
-------------------------
Until this issue https://github.com/mxcl/homebrew/issues/4468 is resolved installing Lion screws up ImageMagick's png support. The following steps are a hacky work around to get things going again. `identify: memory allocation failed` is the error message you'll receive before applying the fix.
brew uninstall imagemagick
cd /usr/X11R6/lib
sudo mv libpng.dylib libpng.old.dylib
sudo ln -s libpng12.0.dylib libpng.dylib
brew install imagemagick