Skip to content

Instantly share code, notes, and snippets.

/*
* futex2_spin example, by André Almeida <andrealmeid@igalia.com>
*
* Partially inspired by Steven Rostedt benchmark from:
* https://lore.kernel.org/all/20231025235413.597287e1@gandalf.local.home/2-extend-sched.c
*
* gcc spin.c -o spin
*/
#define _GNU_SOURCE
// SPDX-License-Identifier: GPL-2.0
/*
* Hidraw Userspace Example
*
* Copyright (c) 2010 Alan Ott <alan@signal11.us>
* Copyright (c) 2010 Signal 11 Software
* Copyright (c) 2021 Collabora
*
* The code may be used by anyone for any purpose,
* and can serve as a starting point for developing
@andrealmeid
andrealmeid / system_info.txt
Created May 12, 2021 00:12
System information
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 7 3700X 8-Core Processor
CPU Family: 0x17
@andrealmeid
andrealmeid / codepit-scrapper.py
Created March 31, 2018 06:03
codepit web scrapper
import requests
from tabulate import tabulate
CODEPIT_LOGIN_URL = "https://www.codepit.io/api/v1/user/login"
CREDENTIALS_FILE = "credentials.txt"
def main():
"""
@andrealmeid
andrealmeid / DoS.py
Created October 5, 2017 16:46
Denail of Service of Ares
# RST ATTACK
from scapy.all import *
# esse codigo cria um pacote de negação de serviço, tentando convencer o
# cliente de que o servidor está offline. As informações inseridas no pacote
# são com base em experimentos realizados. Para que o ataque surja efeito, esse
# pacote tem que ser enviado logo apos o primeiro passso do handshake para funcionar