- https://www.raspberrypi.org/software/ からOSインストーラーをダウンロード
Raspberry Pi OS (other) > Raspberry Pi OS Lite (32-bit)
を選択し、SDカードにOSを書き込む- https://mascii.github.io/wpa-supplicant-conf-tool/ に接続するネットワークの情報を入れ追加 >
wpa_supplicant.conf
,ssh.txt
をダウンロード 3
でダウンロードした2つのファイルを2
で書き込んだSDカードのrootにコピーする(SDカードの準備完了)- 本体にSDカードを入れ、USBポート(not 電源ポート)をキーボードとして利用したいPCへ接続する
- しばらくすると
ssh [email protected]
で接続できるようになるため、ssh接続する - 下記コマンドを実行し、HID化する
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
# e.g.: OAUTH_CONSUMER_KEY=value CONSUMER_API_SECRET=value OAUTH_TOKEN=value OAUTH_TOKEN_SECRET=value ruby api_request_twitter.rb | jq . | |
# OAUTH_CONSUMER_KEY = Consumer API keys - API key | |
# CONSUMER_API_SECRET = Consumer API keys - API secret key | |
# OAUTH_TOKEN = Access token & access token secret - Access token | |
# OAUTH_TOKEN_SECRET = Access token & access token secret - Access token secret | |
require "erb" | |
include ERB::Util | |
require 'uri' |
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
private void main() { // このメソッドが最初に呼ばれるとして | |
Completable.create(new CompletableOnSubscribe() { | |
@Override | |
public void subscribe(CompletableEmitter emitter) throws Exception { | |
fetchAll(emitter, 20, 0); | |
} | |
}); | |
} | |
// 適当な通信処理 |
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
TrackerManager.getInstance().setCommit(new DemoDataCommitImpl()); | |
TrackerManager.getInstance().init(this, true, true, true); |
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
package app.roana0229.org.rxandroidsample.view; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.view.View; | |
import android.widget.TextView; | |
import java.util.concurrent.TimeUnit; | |
import app.roana0229.org.rxandroidsample.R; |
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
import os | |
extension OSLogType: CustomStringConvertible { | |
public var description: String { | |
switch self { | |
case OSLogType.info: | |
return "INFO" | |
case OSLogType.debug: | |
return "DEBUG" | |
case OSLogType.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
func printFunc(str: String) { | |
print(str) | |
} | |
// Int2つを、引数として宣言 | |
func someFunc(a: Int, b: Int) -> String { | |
return "a: \(a), b: \(b)" | |
} | |
// Int2つを持つタプルを、引数として宣言 |
どどんとふ公式:https://github.com/torgtaitai/DodontoF
curl -O https://gist.githubusercontent.com/roana0229/5469fd5acbf25f19e3ff500de409b7bc/raw/5b8e453fb497a68b76411e0313455401d34874b9/Vagrantfile
vagrant up
vagrant ssh
sudo su -
sh -c "$(curl -fsSL https://gist.githubusercontent.com/roana0229/5469fd5acbf25f19e3ff500de409b7bc/raw/2d06fedcb9a4a708b6c53693bf484cc634d299b7/init.sh)";
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
#!/usr/bin/ruby | |
#--*-coding:utf-8-*-- | |
Encoding.default_external='utf-8' if defined?(Encoding) && Encoding.respond_to?('default_external') | |
require 'rubygems' | |
require 'cgi' | |
require 'fcgi' | |
require 'logger' | |
$logger = Logger.new('./fcgilog.txt') |
NewerOlder