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
| echo JavaOne Strategy Keynote 9-22-2013 | |
| wget -O strategy.mp4 --referer=http://medianetwork.oracle.com/video/player/2685497644001 http://sun.edgeboss.net/download/sun/mar2012/1460825906/20145548_169.mp4 | |
| echo IBM JavaOne Keynote 9-22-2013 | |
| wget -O IBM.mp4 --referer=http://medianetwork.oracle.com/video/player/2685481227001 http://sun.edgeboss.net/download/sun/mar2012/1460825906/20145552_169.mp4 | |
| echo JavaOne Technical Keynote 9-22-2013 | |
| wget -O technical.mp4 --referer=http://medianetwork.oracle.com/video/player/2685720528001 http://sun.edgeboss.net/download/sun/mar2012/1460825906/20145556_169.mp4 | |
| echo JavaOne Community Keynote 9-26-2013 |
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 org.quartz.* | |
| import org.quartz.impl.StdSchedulerFactory | |
| import twitter4j.TwitterFactory | |
| class バルスTask { | |
| public void バルス() { | |
| TwitterFactory.singleton.updateStatus("#バルス")) | |
| } | |
| } | |
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 daemon; | |
| import java.math.BigDecimal; | |
| public class 秒速一億円の所得税額 { | |
| public static void main(String[] args) throws Exception { | |
| BigDecimal bd = new BigDecimal("100000000"); | |
| BigDecimal 年収 = bd.multiply(new BigDecimal(60 * 60 * 24 * 365)); | |
| System.out.println(年収.toString()); | |
| BigDecimal 課税所得 = 年収.subtract(new BigDecimal(2796000)); | |
| System.out.println(課税所得.toString()); |
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 daemon; | |
| import java.math.BigDecimal; | |
| public class 秒速一億円の所得税額 { | |
| public static void main(String[] args) throws Exception { | |
| BigDecimal bd = new BigDecimal("100000000"); | |
| BigDecimal 年収 = bd.multiply(new BigDecimal(60 * 60 * 24 * 365)); | |
| System.out.println(年収.toString()); | |
| BigDecimal 課税所得 = 年収.subtract(new BigDecimal(2796000)); | |
| System.out.println(課税所得.toString()); |
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
| public class Main { | |
| public static void main(String[] args) { | |
| final Twitter twitter = TwitterFactory.getSingleton(); | |
| final TwitterStream stream = TwitterStreamFactory.getSingleton(); | |
| stream.addListener(new UserStreamAdapter() { | |
| public void onStatus(Status status) { | |
| if (!status.isRetweet() && satatus.getText().contains("おっぱい")) { | |
| try { | |
| twitter.createFavorite(status.getId()); | |
| } catch (TwitterException ignore) { |
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
| hoge({"kampaids":["bzo","bwh","bot"],"fallback":"cah"}); |
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
| #auto br0 | |
| iface br0 inet dhcp | |
| bridge_ports eth0 wlan0 | |
| pre-up ifconfig eth0 0.0.0.0 up | |
| pre-up ifconfig wlan0 0.0.0.0 up | |
| pre-up brctl addbr br0 | |
| pre-up brctl addif br0 eth0 | |
| post-down ifconfig wlan0 0.0.0.0 down | |
| post-down ifconfig eth0 0.0.0.0 down | |
| post-down brctl delif br0 eth0 |
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
| interface=wlan0 | |
| driver=nl80211 | |
| ssid=raspapssid | |
| country_code=JP | |
| ieee80211n=1 | |
| hw_mode=g | |
| channel=1 | |
| wpa=2 |
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
| echo "update and upgrade apt" | |
| sudo apt-get update | |
| echo "y" | sudo apt-get upgrade | |
| echo "force audio out to analog" | |
| # amixer cset numid=3 N where the N parameter means the following: 0=auto, 1=analog, 2=hdmi | |
| sudo amixer cset numid=3 1 | |
| echo "set volume to maximum" | |
| sudo amixer cset numid=1 -- 100% |
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
| $ telnet api.twitter.com 80 | |
| Trying 199.59.150.41... | |
| Connected to api.twitter.com. | |
| Escape character is '^]'. | |
| GET /1/users/show.json?screen_name=yusuke HTTP/1.0 | |
| Host: api.twitter.com | |
| HTTP/1.0 410 Gone | |
| Content-Type: text/plain | |
| Content-Length: 126 |