Skip to content

Instantly share code, notes, and snippets.

View shreyaspotnis's full-sized avatar

Shreyas Potnis shreyaspotnis

View GitHub Profile
#!/usr/bin/env python3
# Simple script to monitor battery status, CPU temperature and screen brightness.
# Opens file specified in filename and appends one line of data when the script
# is run.
#
# Usage -
# 1) change the variable filename to whatever file you want to append your log to.
# 2) make this script executable with chmod +x battery_monitor.py
# 3) append it to your crontab using crontab -e. My crontab entry looks like:
# */1 * * * * /path/to/battery_monitor.py
/home/shreyas/github/libvisual/libvisual-plugins/plugins/morph/checkers/morph_checkers.cpp: In function ‘void {anonymous}::lv_morph_checkers_apply(VisPluginData*, float, VisAudio*, VisVideo*, VisVideo*, VisVideo*)’:
/home/shreyas/github/libvisual/libvisual-plugins/plugins/morph/checkers/morph_checkers.cpp:118:61: error: narrowing conversion of ‘x’ from ‘unsigned int’ to ‘int’ inside { } [-Werror=narrowing]
/home/shreyas/github/libvisual/libvisual-plugins/plugins/morph/checkers/morph_checkers.cpp:118:61: error: narrowing conversion of ‘y’ from ‘unsigned int’ to ‘int’ inside { } [-Werror=narrowing]
/home/shreyas/github/libvisual/libvisual-plugins/plugins/morph/checkers/morph_checkers.cpp:118:61: error: narrowing conversion of ‘tile_width’ from ‘unsigned int’ to ‘int’ inside { } [-Werror=narrowing]
/home/shreyas/github/libvisual/libvisual-plugins/plugins/morph/checkers/morph_checkers.cpp:118:61: error: narrowing conversion of ‘tile_height’ from ‘unsigned int’ to ‘int’ inside { } [-Werror=narrowing]
cc1plus: all
In file included from /usr/include/alsa/asoundlib.h:49:0,
from /home/shreyas/github/libvisual/libvisual-plugins/plugins/input/alsa/input_alsa.c:35:
/usr/include/alsa/pcm.h:944:1: error: unknown type name ‘u_int8_t’
/usr/include/alsa/pcm.h:945:1: error: unknown type name ‘u_int16_t’
/usr/include/alsa/pcm.h:946:1: error: unknown type name ‘u_int32_t’
/usr/include/alsa/pcm.h:947:1: error: unknown type name ‘u_int64_t’
make[2]: *** [plugins/input/alsa/CMakeFiles/input_alsa.dir/input_alsa.c.o] Error 1
make[1]: *** [plugins/input/alsa/CMakeFiles/input_alsa.dir/all] Error 2
make: *** [all] Error 2
@shreyaspotnis
shreyaspotnis / goomsl_yacc.h
Created February 5, 2013 04:25
goomsl_yacc.h on my arch laptop
/* A Bison parser, made by GNU Bison 2.7. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.