Advertisement
Guest User

Untitled

a guest
May 4th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. from player import Player
  2. import remote_notifs
  3. player = Player.get_by_pgid('512e674976a64fd8b2265566e4059816')
  4. player.bundle_id = 'com.pocketgems.dragon'
  5. remote_notifs.send_ios_remote_notification(player, 'test', False, False)
  6. def extract_section_from_cert(cert, section):
  7. lines = cert.splitlines()
  8. start_line = lines.index('-----BEGIN {}-----'.format(section))
  9. end_line = lines.index('-----END {}-----'.format(section))
  10. return '\n'.join(lines[start_line:end_line + 1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement