Skip to content

Instantly share code, notes, and snippets.

View taisyo7333's full-sized avatar

Daisuke Inoue taisyo7333

View GitHub Profile
@taisyo7333
taisyo7333 / howto_nc.md
Created October 20, 2016 01:54
HOW OT USE nc command
$ nc -c www.yahoo.co.jp 80                                                                              staging ✭
GET / HTTP/1.1
Host: www.yahoo.co.jp

HTTP/1.1 200 OK
Server: nginx
Date: Thu, 20 Oct 2016 01:52:26 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
@taisyo7333
taisyo7333 / new_gist_file.md
Created October 13, 2016 05:19
How to setup Android for React Native on Mac

How to set up running react-native on Andrdoi devices for debugging.

  1. Download latest version JDK
  2. brew install android-sdk
  3. write .zshrc or .bashrc export ANDROID_HOME=/usr/local/opt/android-sdk
  4. setup daemon gradle touch ~/.gradle/gradle.properties && echo "org.gradle.daemon=true" >> ~/.gradle/gradle.properties
  5. Install android adk what is required version.
  • $ android sdk
@taisyo7333
taisyo7333 / 0_reuse_code.js
Created October 13, 2016 03:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@taisyo7333
taisyo7333 / README.md
Created October 12, 2016 02:02
git config
@taisyo7333
taisyo7333 / README.md
Last active October 14, 2016 02:08
Setup MAC

install

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install wget
@taisyo7333
taisyo7333 / README.md
Last active September 29, 2016 03:50
XCode , CocoaPods Build-Error

概要

CocoaPodsを入れたら下記のビルドエラーになった。

ld: library not found for -lPods-Projectname
clang: error: linker command failed with exit code 1 (use -v to see invocation)

解決方法

  • 様々なケースがあるようだった。
@taisyo7333
taisyo7333 / README.md
Last active September 9, 2016 02:47
Docker Toolbox -- >> Docker for mac 移行時の注意点

Docker Toolbox -- >> Docker for mac 移行時の注意点

dockker ps 

とかやると失敗する。下記のエラーメッセージが出る。

Error response from daemon: Bad response from Docker engine

対処法はDocker toolbox をアンインストールすること。

@taisyo7333
taisyo7333 / README.md
Last active September 7, 2016 00:22
Docker TIPS

作成された仮想環境にSSHでアクセス

$ docker-machine ssh default

例題1

UbuntuのイメージをもとにDockerコンテナを作成/実行し、作成したコンテナ内で"Hello world"を表示する

docker run ubuntu:latest /bin/echo 'Hello world'
@taisyo7333
taisyo7333 / README.md
Created August 17, 2016 01:40 — forked from gre/README.md

This is a PoC that will be later a PR to react-native-view-snapshot to implement the feature for Android.

We still need to wait React Native to have the addUIBlock feature provided by this PR.

Also, I'll wait react-native-view-snapshot to implement the same API as the current RN takeSnapshot on iOS allowing the options.

Usage

import {NativeModules, findNodeHandle} from "react-native";
https://wayohoo.com/atom/markdown-function-of-the-atom-is-very-convenient.html