Skip to content

Instantly share code, notes, and snippets.

View felipeota's full-sized avatar

Felipe Otamendi felipeota

  • Pomelo Games
  • Uruguay
View GitHub Profile
"vocabulary":{
"text" : "Ejemplo a rellenar con palabra: [palabra] y otra: [otra]",
"extra" : ["un extra", "dos extras"]
}
@felipeota
felipeota / gist:225dc080d00bca9ada9b
Last active August 30, 2015 03:50
Multittouch on Surface Pro 3 kernel 3.19.3
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 8b63879..c5a9d11 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -702,11 +702,6 @@ static void hid_scan_collection(struct hid_parser *parser, unsigned type)
if (((parser->global.usage_page << 16) == HID_UP_SENSOR) &&
type == HID_COLLECTION_PHYSICAL)
hid->group = HID_GROUP_SENSOR_HUB;
-
- if (hid->vendor == USB_VENDOR_ID_MICROSOFT &&
<html><head>
<title>USBlyzer Report</title>
<style type="text/css">
body {padding:0px 0px 0px 0px;background:#fff;color:#000;font-family:Arial,Verdana,Helvetica,sans-serif;font-size:8pt;}
th {padding-top:0px;padding-right:3px;padding-bottom:0px;padding-left:3px;background:#c9c9c9;color:#fff;text-align:left;font-size:8pt;font-weight:normal;vertical-align:bottom;border:#fff 1px solid;}
td {padding-top:0px;padding-right:3px;padding-bottom:0px;padding-left:3px;background:#fff;vertical-align:top;font-size:8pt;}
th.ud {padding-top:0px;padding-right:3px;padding-bottom:0px;padding-left:3px;background:#c9c9c9;color:#fff;text-align:left;font-size:8pt;font-weight:normal;vertical-align:bottom;border:#fff 1px solid;}
td.ud {padding-top:0px;padding-right:3px;padding-bottom:0px;padding-left:3px;background:#fff;vertical-align:top;font-size:8pt;}
td.udofs {padding-top:0px;padding-right:8px;padding-bottom:0px;padding-left:3px;font-family:"Courier New",Courier,mono;background:#fff;vertical-align:top;font-size:8pt;text-align:rig
@felipeota
felipeota / gist:afb5f510f5b315f8bed8
Created March 23, 2015 03:11
Multitouch on Surface Pro 3 TypeCover for kernel 3.19, 4.0
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 56ce8c2..5a80896 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -705,9 +705,8 @@ static void hid_scan_collection(struct hid_parser *parser, unsigned type)
hid->group = HID_GROUP_SENSOR_HUB;
if (hid->vendor == USB_VENDOR_ID_MICROSOFT &&
- (hid->product == USB_DEVICE_ID_MS_TYPE_COVER_3 ||
- hid->product == USB_DEVICE_ID_MS_TYPE_COVER_3_JP) &&
@felipeota
felipeota / start.sh
Last active August 29, 2015 14:13
Olpc userspace ssh server
if [ ! -f /home/olpc/.ssh/id_rsa ]; then
ssh-keygen -t rsa
fi
echo "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIBtzcKDL+ZGQMz4EjcsIdpkbcxDoNu5MuRtXW+QlViwsYUmLyP41p4itVMNbeBQjJBA2541XxKk6ynCh5/4hLmZ8CGwSQer/+HsYAGzyOnmrZbZY5k7FjpaioEtAIbteIqJTyccBI9i77QLhfONlJ7uAUPdNhFzNvgvtZqRnPjk8Q== rsa-key-20" > /home/olpc/.ssh/authorized_keys
echo "Subsystem sftp /usr/libexec/openssh/sftp-server" > ssh_config
chmod 0644 /home/olpc/.ssh/authorized_keys
/usr/sbin/sshd -f ssh_config -h /home/olpc/.ssh/id_rsa -p 2222