Skip to content

Instantly share code, notes, and snippets.

@pvieito
pvieito / rawdisk.sh
Created July 4, 2014 15:23
Uses hdiutil to create a raw disk image with .img extension
#!/usr/bin/env bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
Usage:
`basename $0` <diskimage>
Converts a Disk Image (DMG, ISO) to raw format.
EOF
exit; fi
@pvieito
pvieito / VGASimulator.py
Created May 17, 2016 23:06
Simulate and view VGA output from a VHDL simulation
#!/usr/bin/env python3
'''VGASimulator.py - Pedro José Pereira Vieito © 2016
View VGA output from a VHDL simulation.
Ported from VGA Simulator:
https://github.com/MadLittleMods/vga-simulator
by Eric Eastwood <[email protected]>
More info about how to generate VGA output from VHDL simulation here:
http://ericeastwood.com/blog/8/vga-simulator-getting-started
@pvieito
pvieito / PayPass.py
Last active March 7, 2024 14:34
Read EMV contactless debit and credit cards.
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# PayPass.py is based on:
#
# - paypass.py
# Mert Sarica <[email protected]>
# - ChasePayPassBlink.py
# Author: Brad Antoniewicz [email protected]
# - ChaAP.py
@pvieito
pvieito / CollageTool.py
Created May 28, 2016 14:14
Picasa CXF Collage Files Inspector.
#!/usr/bin/env python3
'''CollageTool.py - Pedro José Pereira Vieito © 2016
Picasa CXF Collage Files Inspector.
Usage:
CollageTool.py <file> [--scale=<sc>]
Options:
--scale=<sc> Image scale [default: 10]
-h, --help Show this help
@pvieito
pvieito / VHDLSinGenerator.py
Created May 28, 2016 14:16
Generate sine waves for a VHDL test bench.
#!/usr/bin/env python3
'''VHDLSinGenerator.py - Pedro José Pereira Vieito © 2016
Generate sine waves for a VHDL test bench.
Usage:
VHDLSinGenerator.py <sample_bits> <wave_bits>
Options:
-h, --help show this help
'''
@pvieito
pvieito / iTunes.swift
Created June 23, 2016 14:30
iTunes ScriptingBridge header
//
// iTunes.swift
//
import AppKit
import ScriptingBridge
// MARK: Enum Definitions -
@objc enum iTunesEKnd: NSInteger {
@pvieito
pvieito / ymark.py
Created June 29, 2016 14:26
Compute marks from diferent subjects in YMARK format
#!/usr/bin/env python3
'''ymark.py - Pedro José Pereira Vieito © 2016
Compute marks from diferent subjects in YMARK format.
Usage:
ymark.py [-adeghow] [<search>...]
Options:
-a, --all Show all subjects, not only active
-d, --details Show subject details
@pvieito
pvieito / amfid_patch.py
Created December 27, 2016 00:14
This script can patch macOS 10.12.2 amfid daemon on memory to allow arbitrary entitlements in Developer ID signed binaries.
#!/usr/bin/env python3
'''amfid_patch.py - Pedro José Pereira Vieito © 2016
This script can patch macOS 10.12.2 amfid daemon on memory
to allow arbitrary entitlements in Developer ID signed binaries.
Killing amfid will make the patch disapear:
$ sudo kill -9 `pgrep amfid`
You must run the script as a root (sudo) and with SIP disabled.
@pvieito
pvieito / gist:ee6d2c8934a8f84b9aeb467585277b8a
Last active October 13, 2024 18:06
Consumer keys of official Twitter clients

Twitter API Keys

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA