This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| CmdUtils.CreateCommand({ | |
| name: "lmgtfy", | |
| synonyms: ["letmegooglethatforyou"], | |
| takes: {"words to google": noun_arb_text}, | |
| icon: "http://letmegooglethatforyou.com/favicon.ico", | |
| description: "Replaces the selected words with a <a href=\"http://www.tinyurl.com\">TinyUrl</a> of the <a href=\"\">Let Me Google That For You</a> link", | |
| preview: function( pblock, urlToShorten ){ | |
| pblock.innerHTML = "Replaces the selected URL with a tiny LMGTFY url."; | |
| var baseUrl = "http://tinyurl.com/api-create.php?url=http://letmegooglethatforyou.com/?q="; | |
| pblock.innerHTML = "Replaces the selected URL with ", |
| (defn debounce [func wait immediate] | |
| (let [timeout (atom nil)] | |
| (fn [] | |
| (this-as this | |
| (let [context this | |
| args js/arguments | |
| later (fn [] | |
| (reset! timeout nil) | |
| (when-not immediate | |
| (.apply func context args)))] |
| import javax.net.ssl.SSLParameters; | |
| import javax.net.ssl.SSLSocket; | |
| import javax.net.ssl.SSLSocketFactory; | |
| import java.io.*; | |
| /** Establish a SSL connection to a host and port, writes a byte and | |
| * prints the response. See | |
| * http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
| */ | |
| public class SSLPoke { |
| #!/usr/bin/ruby | |
| # REQUIRES: | |
| # * rooted android, as otherwise you can't read the applications private data | |
| # * to display the qr code "qrencode" (http://fukuchi.org/works/qrencode/) | |
| # and "display" from ImageMagick | |
| # This script "decrypts" the token from the internal state of the | |
| # Battle.net Mobile Authenticator on android application, converting | |
| # it into an "otpauth" url (https://code.google.com/p/google-authenticator/wiki/KeyUriFormat) |
| (defn deaccent [str] | |
| "Remove accent from string" | |
| ;; http://www.matt-reid.co.uk/blog_post.php?id=69 | |
| (let [normalized (java.text.Normalizer/normalize str java.text.Normalizer$Form/NFD)] | |
| (clojure.string/replace normalized #"\p{InCombiningDiacriticalMarks}+" ""))) |
(Serial port or com port? - Serial ports are often refered as COM ports. It is the same to be short. You can read abut it in the Wiki article )
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.my_app" > | |
| <uses-permission android:name="android.permission.GET_ACCOUNTS" /> | |
| <uses-permission android:name="android.permission.READ_CONTACTS" /> | |
| <uses-permission android:name="android.permission.READ_PROFILE" /> | |
| <uses-permission android:name="android.permission.WRITE_CONTACTS" /> | |
| <!-- for syncing --> | |
| <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" /> |
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <h1>Crash Safari</h1> | |
| <script> | |
| var total = ""; | |
| for( var i = 0; i < 100000; i++ ) { | |
| total = total + i.toString(); | |
| history.pushState(0,0, total ); | |
| } |
| query IntrospectionQuery { | |
| __schema { | |
| queryType { name } | |
| mutationType { name } | |
| subscriptionType { name } | |
| types { | |
| ...FullType | |
| } | |
| directives { |