brew install tmux
Run tmux -CC or tmux -CC attach in iTerm2 and then menu is shown on terminal:
- ESC to detach
- C to run commands
- X to force quit
- L for log
brew install tmux
Run tmux -CC or tmux -CC attach in iTerm2 and then menu is shown on terminal:
| import ast | |
| import inspect | |
| import os | |
| def get_short_lambda_source(lambda_func): | |
| """Return the source of a (short) lambda function. | |
| If it's impossible to obtain, returns None. | |
| """ | |
| try: |
| #!/bin/bash | |
| # Usage | |
| # ===== | |
| # ~~~ | |
| # /opt/bin/tmux.sh [tmux args...] | |
| # ~~~ | |
| # | |
| # How to install tmux in CoreOS toolbox | |
| # ===================================== |
| // When the `accessibility inspector' is enabled on the iOS Simulator the private `UIAccessibility' | |
| // framework is loaded. In turn it will try to load a list of bundles amongst which is one that has | |
| // only resources, no executable. This leads to `CFBundleLoadExecutableAndReturnError' logging this | |
| // offending error message. | |
| // | |
| // This code omits the `SDK_ROOT/System/Library/AccessibilityBundles/CertUIFramework.axbundle' | |
| // bundle from ever being attempted to load. | |
| // | |
| // This code is available under the MIT license: http://opensource.org/licenses/MIT | |
| // |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| /* | |
| * Copyright (C) 2013 Square, Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| void *UIKit = dlopen([[[NSBundle bundleForClass:[UIApplication class]] executablePath] fileSystemRepresentation], RTLD_LAZY); | |
| CGFloat (*UIAnimationDragCoefficient)(void) = (CGFloat (*) (void)) dlsym(UIKit, "UIAnimationDragCoefficient"); | |
| DLog(@"coefficient is %f", UIAnimationDragCoefficient ? UIAnimationDragCoefficient() : 1.f); |
The reason why you might get certificate errors in Ruby 2.0 when talking HTTPS is because there isn't a default certificate bundle that OpenSSL (which was used when building Ruby) trusts.
Update: this problem is solved in edge versions of rbenv and RVM.
$ ruby -rnet/https -e "Net::HTTP.get URI('https://github.com')"
net/http.rb:917:in `connect': SSL_connect returned=1 errno=0 state=SSLv3
read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
You can work around the issue by installing a certificate bundle that you trust. I trust Mozilla and curl.