Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Twitterpunch is designed to work with PhotoBooth and OS X Folder Actions. When this script is called with the name of an image file, it will post the image to Twitter, along with a message randomly chosen from a list and a specified hashtag.
If you call the script with the --stream
argument instead, it will listen
for tweets to that hashtag and download them to a specified directory. If
the tweet came from another user, Twitterpunch will speak it aloud.
Typically, you'll run one copy on an OSX laptop with PhotoBooth, and a separate copy on another machine (either Windows or OSX) for the viewer. You can also use a mobile device as a remote control, if you like. This will allow the user to enter a custom message for each photo that gets tweeted out, if they'd like.
Configure the program via the ~/.twitterpunch/config.yaml
YAML file. This file
should look similar to the example below.
---
:twitter: # twitter configuration
:consumer_key: <consumer key>
:consumer_secret: <consumer secret>
:access_token: <access token>
:access_token_secret: <access secret>
:messages: # list of messages to attach
- Hello there # to outgoing tweets
- I'm a posting fool
- minimally viable product
:hashtag: Twitterpunch # The hashtag to post and listen to
:handle: Twitterpunch # The twitter username to post as
:photodir: ~/Pictures/twitterpunch/ # Where to save downloaded images
:logfile: ~/.twitterpunch/activity.log # Where to save logs
:viewer: # Use the built-in slideshow viewer
:count: 5 # How many images to have onscreen at once
:remote:
:timeout: 45 # How long the button should remain disabled for
:apptitle: dslrBooth # The photo booth application title
:hotkey: space # Which hotkey to send to trigger a photo
twitterpunch --configure
twitterpunch --authorize
twitterpunch --install
Note: if the folder action doesn't seem to work and photos aren't posted to Twitter, here are some troubleshooting steps to take:
twitterpunch foo.jpg
which twitterpunch
Configure the remote web app using the :remote
hash in config.yaml
. You can
usually find the title of the app using system_profiler -detailLevel full SPApplicationsDataType
and grepping for the name or path to the .app
.
In this example, the title is dslrBooth.
[ben@ganymede] ~ $ system_profiler -detailLevel full SPApplicationsDataType | grep -B8 dslrBooth.app
dslrBooth:
Version: 2.9
Obtained from: Identified Developer
Last Modified: 10/14/17, 9:50 PM
Kind: Intel
64-Bit (Intel): Yes
Signed by: Developer ID Application: Hope Pictures LLC (MZR5GHAQX4), Developer ID Certification Authority, Apple Root CA
Location: /Applications/dslrBooth.app
twitterpunch --remote
~/Pictures/
Photo Booth Library
icon and choose Show Package Contents.Pictures
folder and choose Services > Folder Actions Setup
Twitterpunch
action is attached.resources
folder of this gem.
/Library/Ruby/Gems/{version}/gems/twitterpunch-#{version}/resources/
.Twitterpunch
folder action and install it.
Configure the program you are using for your photo shoot to call Twitterpunch each time it snaps a photo. Pass the name of the new photo as a command line argument. Alternatively, you could batch them, as Twitterpunch can accept multiple files at once.
[ben@ganymede] ~ $ twitterpunch photo.jpg [photo2.jpg photo3.jpg photo4.jpg]
You can manually install the Folder Action, or you can follow the automated install process after tweaking the workflow slightly.
Twitterpunch will run on OS X or Windows equally well. Simply configure it on the computer that will act as the Twitter display and then run in streaming mode.
[ben@ganymede] ~ $ twitterpunch --stream
There are two modes that Twitterpunch can operate in.
:hashtag
is defined then all images tweeted to the configured hashtag
will be displayed in the slideshow.:handle
Twitter user's stream and
display all images either posted by that user or addressed to that user. With
protected tweets, you can have rudimentary access control.In either mode, tweets that come from any other user will also be spoken aloud.
If you don't want to use the built-in slideshow viewer, you can disable it by
removing the :viewer
key from your ~/.twitterpunch/config.yaml
config file.
Twitterpunch will then simply download the tweeted images and save them into the
:photodir
directory. You can then use anything you like to view them.
There are currently two decent viewing options I am aware of.
:photodir
FAQs
Unknown package
We found that twitterpunch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.