Skip to content

Instantly share code, notes, and snippets.

View jiikko's full-sized avatar
🦑

jiikko jiikko

🦑
View GitHub Profile

文脈

  • ラズパイのHDMI出力は見ているがキーボードやマウスを繋げたくない

結論

  • ログインシェルにscreenを起動して、sshからscreenのセッションにアタッチすればいい

.bashrcに以下を書いておくと起動時にscreenを起動してくれる。注意点としてこのセッションをCtrl+dでとかで消してしまうと仮想ターミナル(tty1)を触れなくなってしまうので、再起動すると復帰する。

if [ $SHLVL = 1 ]; then
class ProconSimulator
attr_accessor :gadget, :procon
MAC_ADDR = '00005e00535e'
UART_INITIAL_INPUT = '81008000f8d77a22c87b0c'
UART_DEVICE_INFO = '0348030298b6e942bd2d0301'
def initialize
@response_counter = 0
@procon_simulator_thread = nil
---
version: 1.0
setting: |-
fast_return = ProconBypassMan::Splatoon2::Macro::FastReturn
guruguru = ProconBypassMan::Splatoon2::Mode::Guruguru
install_macro_plugin fast_return
install_macro_plugin ProconBypassMan::Splatoon2::Macro::JumpToUpKey
install_macro_plugin ProconBypassMan::Splatoon2::Macro::JumpToRightKey
install_macro_plugin ProconBypassMan::Splatoon2::Macro::JumpToLeftKey
module Core
  def hoge
    2
  end
end

module Wrapper
  def self.extended(base) #:nodoc:
    base.class_eval do
#!/bin/bash
cd /sys/kernel/config/usb_gadget/
mkdir -p procon
cd procon
echo 0x057e > idVendor
echo 0x2009 > idProduct
echo 0x0200 > bcdDevice
echo 0x0200 > bcdUSB
echo 0x00 > bDeviceClass
@jiikko
jiikko / mastodon-start-on-docker.md
Last active September 16, 2020 02:56
docker環境を開発環境として使うための差分
diff --git a/Dockerfile b/Dockerfile
index c52f89fdc..5001fc94b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -72,7 +72,6 @@ COPY Gemfile* package.json yarn.lock /opt/mastodon/
 
 RUN cd /opt/mastodon && \
   bundle config set deployment 'true' && \
-  bundle config set without 'development test' && \
https://deploygate.com/cli/install/e64206d9
$ docker run -it debian:sid bash 
apt-get update && apt-get install curl procps -y
\curl -sSL https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh

rvm use 2.7 --install --fuzzy

bundle config build.nokogiri --use-system-libraries --with-xml2-include=$(brew --prefix libxml2)/include/libxml2