Skip to content

Instantly share code, notes, and snippets.

Avatar

Pedro José Pereira Vieito pvieito

View GitHub Profile
View gist:ee6d2c8934a8f84b9aeb467585277b8a

Twitter公式クライアントのコンシューマキー

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
@pvieito
pvieito / amfid_patch.py
Created Dec 27, 2016
This script can patch macOS 10.12.2 amfid daemon on memory to allow arbitrary entitlements in Developer ID signed binaries.
View amfid_patch.py
#!/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 / ymark.py
Created Jun 29, 2016
Compute marks from diferent subjects in YMARK format
View ymark.py
#!/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 / iTunes.swift
Created Jun 23, 2016
iTunes ScriptingBridge header
View iTunes.swift
//
// iTunes.swift
//
import AppKit
import ScriptingBridge
// MARK: Enum Definitions -
@objc enum iTunesEKnd: NSInteger {
@pvieito
pvieito / VHDLSinGenerator.py
Created May 28, 2016
Generate sine waves for a VHDL test bench.
View VHDLSinGenerator.py
#!/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 / CollageTool.py
Created May 28, 2016
Picasa CXF Collage Files Inspector.
View CollageTool.py
#!/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 / PayPass.py
Last active Jan 23, 2019
Read EMV contactless debit and credit cards.
View PayPass.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# PayPass.py is based on:
#
# - paypass.py
# Mert Sarica <mert.sarica@gmail.com>
# - ChasePayPassBlink.py
# Author: Brad Antoniewicz adam@algroup.co.uk
# - ChaAP.py
@pvieito
pvieito / VGASimulator.py
Created May 17, 2016
Simulate and view VGA output from a VHDL simulation
View VGASimulator.py
#!/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 <contact@ericeastwood.com>
More info about how to generate VGA output from VHDL simulation here:
http://ericeastwood.com/blog/8/vga-simulator-getting-started
@pvieito
pvieito / rawdisk.sh
Created Jul 4, 2014
Uses hdiutil to create a raw disk image with .img extension
View rawdisk.sh
#!/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
You can’t perform that action at this time.