module Core
def hoge
2
end
end
module Wrapper
def self.extended(base) #:nodoc:
base.class_eval do
View bypass_procon.rb
This file contains 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
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 |
View my_pbm_setting.yml
This file contains 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
--- | |
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 |
View moduleをmixinするときに、同じ継承ツリーに任意のmoduleをさらにぶら下げる.md
View add_procon_gadget.sh
This file contains 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
#!/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 |
View mastodon-start-on-docker.md
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' && \
View gist:22f67958581f7bd0b8fadb5cc79cc1ce
This file contains 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
https://deploygate.com/cli/install/e64206d9 |
View rvm_in_docker.md
$ 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
View how_to_install_nokogiri.md
bundle config build.nokogiri --use-system-libraries --with-xml2-include=$(brew --prefix libxml2)/include/libxml2
View android_installation.md
brew install jenv
brew tap homebrew/cask-versions
brew cask install java11
brew cask install android-studio
refarense
NewerOlder