Skip to content

Instantly share code, notes, and snippets.

View nicolas17's full-sized avatar

Nicolás Alvarez nicolas17

  • Buenos Aires, Argentina
View GitHub Profile
@nicolas17
nicolas17 / moo.cpp
Created September 27, 2020 07:35
Microsoft's moo.cxx gdiplus test
#include <stdio.h>
#include <math.h>
#include <windows.h>
#include <objbase.h>
#include <gdiplus.h>
// moo.cxx ran through the preprocessor, and replacing "GetDC(1-1)" with "dc"
// (apparently on newer Windows versions you're not allowed to use GetDC(NULL)
// to draw to the screen directly)
@nicolas17
nicolas17 / reduced.ll
Last active July 22, 2020 21:24
opt reduced.ll --ipsccp -S
; ModuleID = 'reduced.ll'
source_filename = "reduced.ll"
define void @_mesa_test_texobj_completeness(i32* %0) {
%2 = icmp uge i64 undef, undef
%3 = icmp slt i64 undef, undef
%4 = and i1 %3, %2
br i1 undef, label %exit, label %a
@nicolas17
nicolas17 / Vagrantfile
Created June 5, 2020 00:29
Vagrantfile for KDE monitoring
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :machine
end
config.vm.define "random" do |machine|
class AsyncTdlib:
def __init__(self, loop=None):
self.pending_futures = {}
self.update_handler = lambda r: None
self.receiver_thread = None
if loop is None:
self.loop = asyncio.get_event_loop()
else:
self.loop = loop
self.last_req_id = 0
### Keybase proof
I hereby claim:
* I am nicolas17 on github.
* I am nicolas17 (https://keybase.io/nicolas17) on keybase.
* I have a public key ASC-AhatwxHjh8hgpS2VNJDItdfPRfhvR1xcN-3CQNBFXwo
To claim this, I am signing this object:
@nicolas17
nicolas17 / README.md
Created March 27, 2020 19:18
Casos nuevos de COVID-19 en CABA y Provincia de Buenos Aires
  • Casos nuevos por día.
  • Datos tomados a mano de los informes diarios en PDF. Puede haber errores de tipeo etc.
  • Los -unknown indican que el PDF no distingue de qué provincia son, o dice "10 casos de estas 4 provincias" pero no cuántos de cada una.
@nicolas17
nicolas17 / ipsw_keys.py
Last active August 17, 2023 03:02 — forked from MCJack123/ipsw_keys.py
Extract iOS firmware keys using on-device AES engine - MOVED TO https://github.com/nicolas17/ipsw_keys
#!/usr/bin/env python
from sys import argv, stdout
from os import system, remove, path
from urlparse import urlparse
import re
import dfu
import ssl
import math
import json
import getopt
class {
a(struct b
struct b ;
- move.l #168430090,squares
- move.l #168430090,squares+4
- move.l #168430090,squares+8
- move.l #168430090,squares+12
- move.l #168430090,squares+16
- move.l #168430090,squares+20
- move.l #168430090,squares+24
- move.l #168430090,squares+28
- move.l #168430090,squares+32
- move.l #168430090,squares+36
@nicolas17
nicolas17 / AppDelegate.c
Created April 17, 2019 02:38
iOS application in C
#import "AppDelegate.h"
#import <CoreGraphics/CoreGraphics.h>
#import "objc-insanity.h"
void initializeAppDelegate()
{
Class c = objc_allocateClassPair(objc_getClass("NSObject"), "AppDelegate", 0);