Skip to content

Instantly share code, notes, and snippets.

View thiagoalz's full-sized avatar
🍻

Thiago Alvarenga Lechuga thiagoalz

🍻
View GitHub Profile
@thiagoalz
thiagoalz / payload.bat
Last active May 20, 2021 18:49
Prank with unlocked PCs
@ECHO OFF
ECHO Ferrando amiguinho
ECHO Movendo Desktop
mkdir %UserProfile%\Desktop\BloqueiaOVD
move %UserProfile%\Desktop\* %UserProfile%\Desktop\BloqueiaOVD
ECHO Startup
copy %0 "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\BloqueiaOVD.bat"
@thiagoalz
thiagoalz / GaroaStatusScriptlet
Created March 22, 2012 12:03
Scriptlet to check Garoa Hacker Clube status
javascript:function handleResponse() {var data = JSON.parse(req.response); var strStatus = data.open? "Open": "Closed"; var dateLastchange = new Date(data.lastchange*1000); strStatus+=" ( "+dateLastchange.getHours()+":"+dateLastchange.getMinutes()+" "+dateLastchange.getDate()+"/"+(dateLastchange.getMonth()+1)+"/"+dateLastchange.getFullYear()+" )"; alert(strStatus);} req = new XMLHttpRequest();req.onload = handleResponse;req.open("GET","http://status.garoa.net.br/status", true);req.send(null);
@thiagoalz
thiagoalz / SK8Led.pde
Created August 31, 2011 19:11
Código inicial do SK8Led do Tony :)
/*
SK8Led
*/
//pins
int pins[] = {2,3,4};
//{red, green, blue}
int configPins[] = {8,9,11,12};
//{varUpPin, varDownPin, valueUpPin, valueDownPin}
@thiagoalz
thiagoalz / Pense-Bem-Songs.pde
Created August 21, 2011 03:33
Arduino file to play Pense-Bem songs
/*
Welcome: 'egage',
GameSelected: 'CgC',
Correct: 'gCC',
Wrong: 'ec',
Fail: 'egec',
Winner: 'gggeCCC',
HighBeep: 'C',
LowBeep: 'c'
@thiagoalz
thiagoalz / testebotao.pde
Created August 14, 2011 04:02
Codigo de teste para detectar o pressionar de um botão o aterrando!
bool val2;
void setup()
{
pinMode(2, INPUT);
digitalWrite(2, HIGH);
Serial.begin(9600);
}
void loop()
{
delay(100);
@thiagoalz
thiagoalz / PS2KeyboardTest.pde
Created August 13, 2011 19:39
Arduino PS/2 Keyboard
/* PS2Keyboard library example
PS2Keyboard now requries both pins specified for begin()
keyboard.begin(data_pin, irq_pin);
Valid irq pins:
Arduino: 2, 3
Arduino Mega: 2, 3, 18, 19, 20, 21
Teensy 1.0: 0, 1, 2, 3, 4, 6, 7, 16
@thiagoalz
thiagoalz / Pense-Bem - Errors
Created July 16, 2011 21:40
Organizing errors from lpereira/Pense-Bem
book 17
question 30
pattern_number 1
new_question 15
calc_candidate 0
ERROR: b17, q30. collected sample: d. calculated answer: c
--
book 18
question 29
pattern_number 1