This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Protocol | |
local hidpp_proto = Proto("hidpp", "Logitech HID++") | |
-- Symbols | |
local IF_CLASS_UNKNOWN = 0xFFFF | |
local HID = 0x0003 | |
-- Definitions | |
-- Report | |
local REPORT_SHORT = 0x10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(APONTAMENTOS) | |
https://fenix.tecnico.ulisboa.pt/disciplinas/AL8/2013-2014/1-semestre/teoria | |
(VIDEOS) | |
MOOC Técnico: Valores Próprios – Introducao | |
https://www.youtube.com/watch?v=npPpVDfGGvU |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @brief Removes newline from string. String will end in the first newline. | |
*/ | |
void remove_newline(char str[MAX_STRING]) | |
{ | |
int i; | |
for(i = 0; i < MAX_STRING; i++) | |
{ | |
if(str[i] == '\n') | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module screw_hole(d = 3, height = 30, $fn = 80) { | |
hull() { | |
// Down small | |
translate([0, -height/2, 0]) | |
sphere(d = d / 1.4, center = true, $fn = $fn); | |
// Up small | |
translate([0, height/2, 0]) | |
sphere(d = d / 1.4, center = true, $fn = $fn); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Vars | |
// Plaque | |
width = 55; | |
height = 25; | |
round_radius = 5; | |
tickness = 2.5; | |
// Hole | |
hole_diameter = 3.2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from manticore import Manticore | |
from manticore.models import strlen | |
m = Manticore('main-sec-pw') | |
buffer_addr=0 | |
num_bytes=127 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018-10-21 22:45:34,168: [15565] m.c.c.x86:WARNING: CPUID with EAX=80000000 not implemented @ 7ffffffcd26b | |
2018-10-21 22:45:34,374: [15565] m.c.executor:ERROR: Exception: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/site-packages/manticore/platforms/linux.py", line 2235, in execute | |
self.current.execute() | |
File "/usr/lib/python3.7/site-packages/manticore/core/cpu/abstractcpu.py", line 851, in execute | |
raise e | |
File "/usr/lib/python3.7/site-packages/manticore/core/cpu/abstractcpu.py", line 841, in execute | |
implementation(*insn.operands) | |
File "/usr/lib/python3.7/site-packages/manticore/core/cpu/abstractcpu.py", line 938, in new_method |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Restore GNOME's settings | |
exec --no-startup-id /usr/libexec/gnome-settings-daemon-localeexec | |
# Fix a bug in gnome-settings-daemon: http://feeding.cloud.geek.nz/posts/creating-a-modern-tiling-desktop-environment-using-i3/ | |
exec --no-startup-id dconf write /org/gnome/settings-daemon/plugins/cursor/active false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/set net_ping_timeout <value (secs)> |