Skip to content

Instantly share code, notes, and snippets.

View BernardoGO's full-sized avatar

Bernardo Augusto Godinho de Oliveira BernardoGO

  • Pontifical Catholic University of Minas Gerais
  • Belo Horizonte - Brazil
View GitHub Profile
#! /bin/sh
GPUDRIVER=nvidia
#if [ ! -x /sys/bus/usb/devices/${BUS}-${DEVICE}/power/level ]; then
# exit 0
#fi
case "$1" in
suspend|suspend_hybrid|hibernate)
[Unit]
Description=Local system resume actions
After=suspend.target network.target
[Service]
Type=simple
ExecStart=-/etc/pm/sleep.d/66nvidia resume
[Install]
WantedBy=suspend.target
scp godin040@phi05.cselabs.umn.edu:/export/scratch/CSCI5161/PA3/parser /home/bernardo/projects
running: 343
[]
['0(1/10)', '0(1/10)', '1(3/10)', '1(3/10)', 'NOP', '2(5/25)', '3(7/25)', '3(7/25)', '4(9/35)', '4(9/35)', '0(11/20)', '0(11/20)', '1(13/20)', '1(13/20)', '5(15/35)', '5(15/35)', '6(17/70)', '6(17/70)', '7(19/70)', '7(19/70)', '0(21/30)', '0(21/30)', '1(23/30)', '1(23/30)', 'NOP', '2(25/45)', '3(27/45)', '3(27/45)', 'NOP', 'NOP', '0(31/40)', '0(31/40)', '1(33/40)', '1(33/40)', 'NOP', 'NOP', 'NOP', 'NOP', 'NOP', 'NOP', '0(41/50)', '0(41/50)', '1(43/50)', '1(43/50)', 'NOP', '2(45/65)', '3(47/65)', '3(47/65)', '4(49/75)', '4(49/75)', '0(51/60)', '0(51/60)', '1(53/60)', '1(53/60)', '5(55/75)', '5(55/75)', 'NOP', 'NOP', 'NOP', 'NOP', '0(61/70)', '0(61/70)', '1(63/70)', '1(63/70)', 'NOP', '2(65/85)', '3(67/85)', '3(67/85)', 'NOP', 'NOP', '0(71/80)', '0(71/80)', '1(73/80)', '1(73/80)', 'NOP', 'NOP', 'NOP', 'NOP', 'NOP', 'NOP', '0(81/90)', '0(81/90)', '1(83/90)', '1(83/90)', 'NOP', '2(85/105)', '3(87/105)', '3(87/105)', '4(89/115)', '4(89/115)', '0(91/100)', '0(91/100)', '1(93/100)', '1(93/100)', '5(9
@BernardoGO
BernardoGO / command.txt
Created May 1, 2016 09:02
To run steam games with primus
LD_PRELOAD="libpthread.so.0 libGL.so.1" GL_THREADED_OPTIMIZATIONS=1 ionice -c 2 -n 0 primusrun %command%
yaourt clutter-git
xdg-mime default nautilus.desktop inode/directory
no sudo
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
-D BUILD_EXAMPLES=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
@BernardoGO
BernardoGO / maketest.sh
Created June 15, 2016 20:22
build test set from training sets
for D in $(find train/ -mindepth 1 -maxdepth 1 -type d) ; do
b=$(basename $D)
echo $D $b;
for Di in $(find $D/ -mindepth 1 -maxdepth 1 -type f | head -n 3) ; do
bi=$(basename $Di)
echo file: $Di $bi;
mkdir test/$b
mv $Di test/$b/$bi
done
var GenerateQueue = function( queueNumber )
{
console.log( 'Queue #' + ++queueNumber );
jQuery.post( 'http://store.steampowered.com/explore/generatenewdiscoveryqueue', { sessionid: g_sessionID, queuetype: 0 } ).done( function( data )
{
var requests = [];
for( var i = 0; i < data.queue.length; i++ )
{