Skip to content

Instantly share code, notes, and snippets.

View lucasa's full-sized avatar

Lucas Alberto lucasa

View GitHub Profile
/*
* script to export data in all sheets in the current spreadsheet as individual csv files
* files will be named according to the name of the sheet, original content will be overwritten
* author: Lucas Santos from Michael Derazon's code
*/
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var csvMenuEntries = [{name: "export as csv files", functionName: "saveAsCSV"}];
ss.addMenu("csv", csvMenuEntries);
};
@lucasa
lucasa / desabilita_teclado_notebook_linux.txt
Created March 8, 2021 21:52
Desabilita o teclado do notebook no GNU/Linux usando configuração de Kernel
Para desabilitar o teclado interno no Ubuntu, é preciso incluir o parâmetro de Kernel "i8042.nokbd" para que a inicialização não utilize o teclado embutido.
"i8042.nokbd [HW] Não cheque ou crie uma porta de teclado"
1- Abra um terminal a partir da tela de busca de programas ou com o atalho CONTRL + ALT + T
2- Digite no terminal o comando abaixo em modo administrador, vai requisitar a sua senha:
sudo gedit /etc/default/grub
@lucasa
lucasa / mozilla_hubs_snap_shared_screen.js
Created February 22, 2021 01:55 — forked from AndreasH96/mozilla_hubs_snap_shared_screen.js
This code is based on a gist made by Utophia, https://gist.github.com/Utopiah/f2b11a8026030b726ecc8c8c9430a9b4 . It's made for being able to snap videos onto objects that are within object-groups. The code is made to be added into the file "floaty-objects.js" within the hubs client code base (2020-06-25).
snap(toSnap, snapOn) {
// Align rotation
toSnap.el.object3D.setRotationFromQuaternion(snapOn.object3D.getWorldQuaternion());
// Align position
toSnap.el.object3D.position.copy(snapOn.object3D.getWorldPosition());
// Set to same scale
toSnap.el.object3D.scale.copy(snapOn.object3D.getWorldScale());
// Move slightly to avoid texture tearing
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreifxirrwfjhe6lplu3cbub35l6wczf4lvfgaa7zqlgm6zue2v2cxoe ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
'''
by Dealga McArdle, july 2011.
BEGIN GPL LICENSE BLOCK
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 2
of the License, or (at your option) any later version.

Installing Panda on your local machine or server

This guide is an alternative to using the prebuilt AMI which includes all the software required to run Panda.

Please note that this guide been mainly tested on OSX and Ubuntu. Please post modifications to the mailing list if you try another platform.

Before starting, your system must have a working Ruby (1.8.x) installation along with Rubygems (>= 1.3.1) and MySQL running happily.

Install dependencies

@lucasa
lucasa / gist:2703114
Created May 15, 2012 16:35 — forked from kepstin/gist:2660431
Add 'POST' support to HTTP push stream.
From 560d117af2c88bc701cdc01a555de52e8a74527a Mon Sep 17 00:00:00 2001
From: Calvin Walton <calvin.walton@kepstin.ca>
Date: Fri, 11 May 2012 11:15:12 -0400
Subject: [PATCH] Add 'POST' support to HTTP push stream.
This allows ffmpeg's integral http support to be used to push streams
into the streaming server, with a command like:
ffmpeg -f alsa -i default -f v4l2 -s 640x360 -i /dev/video0 \
-c:v libvpx -b:v 500000 -c:a libvorbis -b:a 100000 -f webm \