Skip to content

Instantly share code, notes, and snippets.

Bernardo Augusto Godinho de Oliveira BernardoGO

Block or report user

Report or block BernardoGO

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View stea
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++ )
{
@BernardoGO
BernardoGO / maketest.sh
Created Jun 15, 2016
build test set from training sets
View maketest.sh
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
View gist:5c97103d9a302267f1a1ba142ede4fc8
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 ..
View gist:0def5dfbd4b3c1a381572348e8634ea9
xdg-mime default nautilus.desktop inode/directory
no sudo
@BernardoGO
BernardoGO / command.txt
Created May 1, 2016
To run steam games with primus
View command.txt
LD_PRELOAD="libpthread.so.0 libGL.so.1" GL_THREADED_OPTIMIZATIONS=1 ionice -c 2 -n 0 primusrun %command%
View gist:332454489281d9936967efd923db0f7e
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
View download ssh scp
scp godin040@phi05.cselabs.umn.edu:/export/scratch/CSCI5161/PA3/parser /home/bernardo/projects
View resume service
[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
You can’t perform that action at this time.