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
#!/usr/bin/python3
# Copyright (C) 2016 Nicolás Alvarez <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@nicolas17
nicolas17 / bootstrap.py
Created June 26, 2016 05:48
Amazon Lambda runtime
# -*- coding: utf-8 -*-
"""
aws_lambda.bootstrap.py
Amazon Lambda
Copyright (c) 2013 Amazon. All rights reserved.
Lambda runtime implemention
"""
from __future__ import print_function
@nicolas17
nicolas17 / main.yml
Last active September 6, 2016 02:29
Ansible ssh keys
---
- hosts: default
remote_user: root
vars:
users:
- foo
- bar
- baz
- quux
keys: {}
This doesn't work:
ClangParseJob::run: For URL "/home/nicolas/src/kdevelop/kdevplatform/documentation/standarddocumentationview.cpp"
ClangParseJob::run: define: "_GNU_SOURCE" = "1"
ClangParseJob::run: define: "_LP64" = "1"
ClangParseJob::run: define: "_STDC_PREDEF_H" = "1"
ClangParseJob::run: define: "__ATOMIC_ACQUIRE" = "2"
ClangParseJob::run: define: "__ATOMIC_ACQ_REL" = "4"
ClangParseJob::run: define: "__ATOMIC_CONSUME" = "1"
ClangParseJob::run: define: "__ATOMIC_HLE_ACQUIRE" = "65536"
ClangParseJob::run: define: "__ATOMIC_HLE_RELEASE" = "131072"
@nicolas17
nicolas17 / apache-vhost.j2
Created November 23, 2017 22:39
SSL or non-SSL Apache virtualhost
{% if use_ssl|default(False) %}
<VirtualHost *:80>
{{ self.common() }}
{{ self.redirect() }}
</VirtualHost>
<VirtualHost *:443>
{{ self.common() }}
@nicolas17
nicolas17 / gist:81b69e9826eb9a38c5b4560b08785761
Created September 27, 2018 03:42
Ekoparty Wardriving on Mapillary
Fotos del recorrido de wardriving en ekoparty:
https://www.mapillary.com/map/s/oD-OI0qWR_i4LkclzudDUw
Coordenadas en GeoJSON:
https://a.mapillary.com/v3/sequences/oD-OI0qWR_i4LkclzudDUw?client_id=MkJKbDA0bnZuZlcxeTJHTmFqN3g1dzo1YTM0NjRkM2EyZGU5MzBh
Para descargarlo en GPX:
curl -H "Accept: application/gpx+xml" https://a.mapillary.com/v3/sequences/oD-OI0qWR_i4LkclzudDUw?client_id=MkJKbDA0bnZuZlcxeTJHTmFqN3g1dzo1YTM0NjRkM2EyZGU5MzBh
Ideal para correlacionar el GPX con las redes Wi-Fi que encontraron :)
@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);
- 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
class {
a(struct b
struct b ;
@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