give sho stick 1 {display:{Name:"§r§6§lNormal stick"}}
give sho gold_sword 1 {ench:[{id:9s,lvl:2s}]}
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| =begin | |
| Name: battmonwalker.rb | |
| Version: 0.41 | |
| Date: 2009-09-27 | |
| Author: moyashi <hitoriblog_NO_NO_SPAM@gmail.com> | |
| Description: Alternate battery status indicator for SHARP NetWalker | |
| Modified by: znz |
| <?php | |
| define("COMPARATOR_VERSION", "0.1"); | |
| ini_set("memory_limit", "512M"); | |
| $node1 = json_decode(@file_get_contents($argv[1]), true); | |
| if($node1 == ""){ | |
| echo "Provide a valid json file produced by the Extractor".PHP_EOL; | |
| exit(1); | |
| } | |
| $node2 = json_decode(@file_get_contents($argv[2]), true); |
| # lb001.kitak.pbでの操作 | |
| sudo yum install ipvsadm | |
| sudo chkconfig --add ipvsadm | |
| sudo chkconfig ipvsadm on | |
| sudo su - -c 'echo "1" > /proc/sys/net/ipv4/ip_forward' | |
| sudo ifconfig eth0:0 192.168.46.30 netmask 255.255.255.0 | |
| sudo vi /etc/sysconfig/network-scripts/ifconfig-eth0 #次回起動時も有効にする | |
| sudo ipvsadm -A -t 192.168.46.30:80 -s rr # 転送元のIPアドレス、ポート | |
| sudo ipvsadm -a -t 192.168.46.30:80 -r 192.168.46.83:80 -g # 転送先のIPアドレス、ポート | |
| sudo ipvsadm -Ln # 確認 |
| package com.example.sample; | |
| import android.app.AlertDialog; | |
| import android.content.Context; | |
| import android.content.DialogInterface; | |
| import android.view.KeyEvent; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.WindowManager; | |
| import android.view.inputmethod.EditorInfo; |
| config.vm.define :nictest do |node| | |
| node.vm.network :public_network, ip: "192.168.0.201" | |
| node.vm.network :private_network, ip: "192.168.11.117" | |
| end |
| //Strategy taken from http://www.dolphintrader.com/1-min-easy-forex-scalping-strategy/ | |
| //@version=2 | |
| strategy("1 min forex scalping", shorttitle="Scalping", overlay=true) | |
| a = ema(close, 12) | |
| b = ema(close, 26) | |
| c = sma(close, 55) | |
| TP = input(0) | |
| SL = input(0) | |
| TS = input(0) |
Simple guide for setting up OTG modes on the Raspberry Pi Zero - By Andrew Mulholland (gbaman).
The Raspberry Pi Zero (and model A and A+) support USB On The Go, given the processor is connected directly to the USB port, unlike on the B, B+ or Pi 2 B, which goes via a USB hub.
Because of this, if setup to, the Pi can act as a USB slave instead, providing virtual serial (a terminal), virtual ethernet, virtual mass storage device (pendrive) or even other virtual devices like HID, MIDI, or act as a virtual webcam!
It is important to note that, although the model A and A+ can support being a USB slave, they are missing the ID pin (is tied to ground internally) so are unable to dynamically switch between USB master/slave mode. As such, they default to USB master mode. There is no easy way to change this right now.
It is also important to note, that a USB to UART serial adapter is not needed for any of these guides, as may be documented elsewhere across the int
| #!/bin/bash | |
| mkdir ./cgi-bin/ | |
| cp upload.cgi ./cgi-bin/ | |
| chmod +x ./cgi-bin/upload.cgi | |
| mkdir ./upload/ | |
| python -m CGIHTTPServer 8080 |
| #!/bin/bash | |
| #------------------------------------------------------------------------------------ | |
| # Initialize some variables | |
| #------------------------------------------------------------------------------------ | |
| SHELL=/sbin/nologin | |
| FTPCONF=/etc/vsftpd | |
| HOMEDIR=/var/www | |