- Connect an iOS defice with a cable
- In QuickTime Player: Option-Cmd-N (New Movie Recording) -> Select your device from the recording menu:
| #!/bin/bash | |
| POST_INIT_SYNC_DELAY=60 | |
| POLL_DELAY=60 | |
| STALL_THRESHOLD=5 | |
| BTCCTL='docker exec btcd btcctl --rpcuser=YOUR_USER --rpcpass=YOUR_PASS --rpccert=/rpc/rpc.cert ' | |
| stalls=0 | |
| echo "Starting watcher..." | |
| while true; do |
| var list = require('./list.json'); | |
| var fs = require('fs'); | |
| var page = require('webpage').create(); | |
| var result = require('./result.json') || {}; | |
| var finalize = function(){ | |
| fs.write('result.json', JSON.stringify(result),'w'); | |
| phantom.exit() | |
| } | |
| var failSeach = function(text) { | |
| return !(text.indexOf('画像が大きすぎるか、') === -1 && |
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
I say "animated gif" but in reality I think it's irresponsible to be serving "real" GIF files to people now. You should be serving gfy's, gifv's, webm, mp4s, whatever. They're a fraction of the filesize making it easier for you to deliver high fidelity, full color animation very quickly, especially on bad mobile connections. (But I suppose if you're just doing this for small audiences (like bug reporting), then LICEcap is a good solution).
- Launch quicktime player
- do Screen recording
| #!/bin/bash | |
| # A wrapper for the docker binary. Checks to make sure the docker host is | |
| # set before executing docker commands. | |
| docker() { | |
| # Start the daemon if it's not running | |
| if [ $(boot2docker status) != 'running' ]; then | |
| echo 'Starting the Docker daemon.' | |
| boot2docker start |
| # The $provide service is used to override an injected dependency | |
| # Bad - results in Error: [ng:areq] Argument 'fn' is not a function, got Object | |
| module 'someModule', ($provide) -> | |
| $provide.value "SomeService", SomeMock | |
| # Good | |
| module 'someModule', ($provide) -> | |
| $provide.value "SomeService", SomeMock | |
| null |
I frequently administer remote servers over SSH, and need to copy data to my clipboard. If the text I want to copy all fits on one screen, then I simply select it with my mouse and press CMD-C, which asks relies on m y terminal emulator (xterm2) to throw it to the clipboard.
This isn't practical for larger texts, like when I want to copy the whole contents of a file.
If I had been editing large-file.txt locally, I could easily copy its contents by using the pbcopy command:
| module Capybara::Poltergeist | |
| class Client | |
| private | |
| def redirect_stdout(to) | |
| prev = STDOUT.dup | |
| prev.autoclose = false | |
| $stdout = to | |
| STDOUT.reopen(to) | |
| prev = STDERR.dup |


