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
When generating a project and react-native gives an error about CFBundleIdentifier not being found. | |
The following will fix that: | |
Go to File -> Project settings | |
Click the Advanced button | |
Select "Custom" and select "Relative to Workspace" in the pull down | |
Set Products Path: build/Build/Products | |
Set Intermediates: build/Build/Intermediates | |
click done, done |
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
export GEM_HOME=~/.gem | |
export GEM_PATH=~/.gem |
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
If you need to have this software first in your PATH run: | |
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile | |
For compilers to find this software you may need to set: | |
LDFLAGS: -L/usr/local/opt/openssl/lib | |
CPPFLAGS: -I/usr/local/opt/openssl/include | |
For pkg-config to find this software you may need to set: | |
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig |
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
require 'capybara' | |
require 'capybara/dsl' | |
require 'capybara/poltergeist' | |
Capybara.register_driver :poltergeist do |app| | |
options = { | |
:js_errors => false | |
} | |
Capybara::Poltergeist::Driver.new(app, options) | |
end |
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
bundle config build.eventmachine --with-cppflags=-I$(brew --prefix openssl)/include | |
$ bundle install |
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
Scapy installation fails on osx with dnet import error | |
http://stackoverflow.com/questions/26229057/scapy-installation-fails-on-osx-with-dnet-import-error |
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
DEBUG=false | |
UDID=0 | |
while [[ $# > 0 ]] | |
do | |
key="$1" | |
#echo $key | |
case $key in | |
-d|--debug) |
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
In /etc/hosts, add: | |
127.0.0.1 foo.com | |
Create /etc/pf.anchors/foo.conf | |
$sudo vim /etc/pf.anchors/foo.conf | |
rdr pass on lo0 inet proto tcp from any to any port 80 -> 127.0.0.1 port 3000 | |
Add this to /etc/pf.conf: |
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
cd $(brew --prefix) | |
git reset --hard HEAD | |
brew update |
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
brew install youtube-dl | |
youtube-dl 'https://www.youtube.com/watch?v=kP1xeXMtF3A' |