This is a collection of basic "recipes", many using twurl (the Swiss Army Knife for the Twitter API!) and jq to query the Twitter API and format the results. Also, some scripts to test or automate common actions.
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
| mosquitto-1.3 sudo dtruss mosquitto_pub -t andy -m "hello" | |
| SYSCALL(args) = return | |
| madvise(0x103D89000, 0x2000, 0x5) = 0 0 | |
| open("/dev/dtracehelper\0", 0x2, 0x7FFF5C02A010) = 3 0 | |
| __sysctl(0x7FFF5C0299A0, 0x6, 0x0) = 0 0 | |
| __sysctl(0x7FFF5C0299A0, 0x6, 0x7FFC7D000000) = 0 0 | |
| kqueue(0x7FFF5C029BD0, 0x7FFFFFE00050, 0x193) = 3 0 | |
| kevent(0x3, 0x7FFF5C029BB0, 0x1) = 0 0 | |
| socket(0x1, 0x1, 0x0) = 4 0 | |
| setsockopt(0x4, 0xFFFF, 0x1022) = 0 0 |
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
| feeStr null | |
| org.apache.commons.logging | |
| org.fusesource.hawtbuf.hawtbuf | |
| org.fusesource.hawtdb.hawtdb | |
| log4j | |
| org.dna.mqtt.moquette-bundle | |
| org.apache.felix.javax.servlet | |
| io.netty.buffer | |
| io.netty.codec | |
| io.netty.common |
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
| $ system_profiler -detailLevel mini SPPrefPaneDataType SPApplicationsDataType SPDeveloperToolsDataType SPExtensionsDataType > sysreport.txt |
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
| qlmanage -t -s 1000 -o . picture.svg |
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
| import javax.crypto.Mac; | |
| import javax.crypto.spec.SecretKeySpec; | |
| import org.apache.commons.codec.binary.Base64; | |
| public class CRC_Example { | |
| public static void main(String[] args) { | |
| try { | |
| String consumer_secret = "secret"; | |
| String crc_token = "Message"; |
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
| LEGO Move Hub | |
| 8E552B7A-1B9E-4F4D-A0AE-7D585F784B73 | |
| advertisementData: ["kCBAdvDataIsConnectable": 1, "kCBAdvDataTxPowerLevel": 0, "kCBAdvDataLocalName": LEGO Move Hub] | |
| 00001623-1212-EFDE-1623-785FEABCD123 [] | |
| 00001624-1212-EFDE-1623-785FEABCD123 ["read", "writeWithoutResponse", "write", "notify"] <0f00043c 01140002 00000002 000000> ["Client Characteristic Configuration <0100>"] | |
| Notification Log: | |
| 1502201043.29111 - 00001624-1212-EFDE-1623-785FEABCD123 isNotifying: true |
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
| # return a random sample of your twitter followers | |
| # run like so: | |
| # $ python random_followers.py <screen_name> | |
| # where <screen_name> is the account you want followers for | |
| import sys, random, json, urllib | |
| sname = sys.argv[1] | |
| ids_raw = urllib.urlopen( | |
| "https://api.twitter.com/1/followers/ids.json?screen_name="+sname).read() |
- Selling the Dream - Guy Kawasaki
- The Business Value of Developer Relations - Mary Thengvall
- Developer Relations: How to build and grow a successful developer program - Caroline Lewko & James Parton
- The Developer Advocacy Handbook - Christian Heilmann
- previously, The Developer Evangelism Handbook (out of print as a book, but available online)
- The Art of Community - Jono Bacon
- People Powered - Jono Bacon
- Buzzing Communities - Richard Millington
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
| var OAuth2 = require('OAuth').OAuth2; | |
| var https = require('https'); | |
| var consumerKey = ''; | |
| var consumerSecret = '' | |
| var oauth2 = new OAuth2(consumerKey, consumerSecret, 'https://api.twitter.com/', null, 'oauth2/token', null); | |
| oauth2.getOAuthAccessToken('', { | |
| 'grant_type': 'client_credentials' | |
| }, function (e, access_token) { |