op | label | description | addr | arguments | remark |
---|---|---|---|---|---|
vs | GET_BACPAC_PROTOCOL_VERSION | get protocol version | - | none | bacpac must reply with the correct verification string |
TD | SET_CAMERA_SETTING | set camera setting | - | values returned by td | set settings and enter 3D mode |
TM | SET_BACPAC_DATE_TIME | set time | 1-6 | YY MM DD hh mm ss | |
TM | SET_CAMERA_DATE_TIME | set time | 1-6 | YY MM DD hh mm ss | |
CM | SET_BACPAC_MODE | camera mode | 7 | 0 video; 1 photo; 2 burst photo; 3 timelapse; 5 playback; 7 menu (r/o) | |
CM | SET_CAMERA_MODE | camera mode | 7 | 0 video; 1 photo; 2 burst photo; 3 timelapse; 5 playback; 7 menu (r/o) | |
PR | SET_BACPAC_PHOTO_RESOLUTION | photo resolution | 8 | 3 5MP Medium; 4 7MP Wide; 5 12MP Wide; 6 7MP Medium | |
PR | SET_CAMERA_PHOTO_RESOLUTION | photo resolution | 8 | 3 5MP Medium; 4 7MP Wide; 5 12MP Wide; 6 7MP Medium |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Target video to get | |
$video_id = 'USCJY1531563'; // http://www.vevo.com/watch/taylor-swift/Bad-Blood/USCJY1531563 | |
define ('API_URI', 'https://apiv2.vevo.com/video/%s?token=%s'); | |
define ('STREAM_URI', 'https://apiv2.vevo.com/video/%s/streams/%s?token=%s'); | |
// They blacklist certain user agents, so pretend to be my Mac | |
define ('USER_AGENT', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:f06dd7a7017a24e3c2b94b8f62572bd62e59c7d3] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
/** | |
* Note: This requires the html5-php library. | |
* https://github.com/html5lib/html5lib-php | |
*/ | |
/* | |
* Exit Codes | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This function mass-erases a MSP430FR5994 in about 3 seconds. It wipes the entirety of FRAM, losing all data. | |
* It is intended for use in tamper-resiliency applications, and runs from RAM to avoid issues with self-erasing. | |
* After the function completes, it will force a reset by writing an invalid value to the watchdog register. | |
* This code is intended for use with Code Composer Studio, and will need to be adapted to be compatable with Kiel, | |
* Rowley, or IAR. | |
*/ | |
#include <stdio.h> | |
#include <msp430.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ====================================================================== | |
// GHETT-iO.v generated from TopDesign.cysch | |
// 10/13/2017 at 21:35 | |
// This file is auto generated. ANY EDITS YOU MAKE MAY BE LOST WHEN THIS FILE IS REGENERATED!!! | |
// ====================================================================== | |
/* -- WARNING: The following section of defines are deprecated and will be removed in a future release -- */ | |
`define CYDEV_CHIP_DIE_LEOPARD 1 | |
`define CYDEV_CHIP_REV_LEOPARD_PRODUCTION 3 | |
`define CYDEV_CHIP_REV_LEOPARD_ES3 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdint.h> | |
#define CRC_LOCATION 13 | |
#define DATA_START 3 | |
int main(void) { | |
// your code goes here | |
uint8_t packet[] = {0x7E, 0x00, 0x0A, 0x01, 0x01, 0x50, 0x01, 0x00, 0x48, 0x65, 0x6C, 0x6C, 0x6F, 0X00}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
/** | |
* Convert a cypress DLD file to an intel hex file for analysis purposes. | |
* | |
* Cypress DLD files start with the string "FF380001020304050607". | |
* | |
* You can produce a binary output using something like: | |
* ./dld2ihex.php [file].dld > [file.ihex] | |
* objcopy -I ihex [file].ihex -O binary [file].bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -v pub.pkcs8 test.sign test.txt.decrypted test.txt.encrypted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Information in this script was obtained from public sources, and not under NDA with NXP. | |
# GPShell style APDU commands, but you should be able to adapt it to anything that can send raw APDU's to the card | |
# Our TK Key | |
00A4040010C238E449F725B1510EAA699550CABA16 | |
# Reset card to factory defaults - THIS WILL WIPE OUT ALL APPLETS INSTALLED | |
00F00000 | |
# Set the Card to use T=1 transmission mode |
OlderNewer