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
#!/bin/bash | |
# Original: http://www.raspberrypi.org/forums/viewtopic.php?t=39096&p=393810 | |
# コンパイラーのインストール | |
apt-get update | |
apt-get install -y build-essential | |
# ソースコードのダウンロードと用意 | |
cd /usr/src |
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
# 画像これくしょん(mikutter3.2以降) | |
require "open-uri" | |
require "FileUtils" | |
# From http://d.hatena.ne.jp/gan2/20080531/1212227507 | |
def save_file(url, filename) | |
# これより、ファイルを開きます | |
open(filename, 'wb') do |file| | |
open(url) do |data| |
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
. 👆 . | |
. 👈(´・_・`)👉 . | |
. 👇 . | |
. 👆 | |
👈(´・_・`)👉 | |
👇 | |
. 👆 | |
👈(´・_・`)👉 |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>EjectAir</title> | |
<script language="javascript" type="text/javascript"> | |
<!-- | |
//関数:FlashAirに対してHTTP通信 GETをする | |
function flashair_get( param ){ | |
var request = new XMLHttpRequest(); |
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
\二二二二/ | |
| | | |
| | | |
| | | |
| | | |
|__W__| | |
/ .\ | |
| Blendtec| | |
 ̄ ̄ ̄ ̄ ̄ ̄ | |
\二二二二/ |
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
#!/bin/bash | |
if [ $# -ne 1 ]; then | |
echo "USAGE: $0 <imagefile>" | |
exit 1 | |
fi | |
if [ ${EUID:-${UID}} != 0 ]; then | |
echo 'You must run as root user.' | |
exit 1 |
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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<alias> | |
<family>sans-serif</family> | |
<prefer> | |
<family>01FLOPDESIGN</family> | |
</prefer> | |
</alias> |
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
# -*- coding: utf-8 -*- | |
Plugin.create(:mikutter_optimized_tweet) do | |
command(:optimized_tweet, | |
name: '通信を最適化してツイートする', | |
condition: lambda{ |opt| true }, | |
visible: true, | |
role: :postbox) do |opt| | |
begin |
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/env python | |
import time | |
import datetime | |
import math | |
import Adafruit_Nokia_LCD as LCD | |
import Adafruit_GPIO.SPI as SPI | |
from PIL import Image | |
from PIL import ImageDraw | |
from PIL import ImageFont |
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
#!/bin/bash | |
hostname_full=`curl -f http://169.254.169.254/latest/meta-data/local-hostname \ | |
--max-time 90 2>/dev/null` | |
hostname=`echo $hostname_full | cut -d "." -f 1` | |
local_ip=`curl -f http://169.254.169.254/latest/meta-data/local-ipv4 \ | |
--max-time 90 2>/dev/null` | |
echo $hostname_full | |
echo $hostname |