Home
- Assembly Language
- C/C++
- Eggdrop (Eggdrop is a popular IRC bot and the oldest still in active development)
- Erlang (a general-purpose concurrent, garbage-collected programming language and runtime system)
- Fortran Programming Language
- Forth/4th (an imperative stack-based computer programming language and programming environment)
- Java
- JavaScript
- Lua
- PHP
- Perl
- Python
- Ruby
- Shell script
- Sigscheme (SigScheme is a R5RS Scheme interpreter for embedded use.)
- Slsh (Interpreter for S-Lang scripts)
- Tcl (Tool Command Language)
- Vala (C-sharp like language for the GObje)
Install software:
opkg update opkg install python-openssl opkg install distribute easy_install pymongo
MongoDB shell:
root@debian226-8:~# mongo 192.168.0.240:27017/project -u web_user -p temp MongoDB shell version: 2.4.10 connecting to: 192.168.0.240:27017/project > db.testcollection.insert({"message":"Hello, remote user!"}) > db.testcollection.find() { "_id" : ObjectId("558bca5bc818c9ebe01ebdfb"), "message" : "Hello, remote user!" }
nano mongodb.py
#!/usr/bin/python from pymongo import MongoClient mongoserver_uri = "mongodb://web_user:[email protected]:27017/project" conection = MongoClient(host=mongoserver_uri) db = conection['project'] collection = db['testcollection'] print collection.find_one()
chmod 755 mongodb.py
./mongodb.py {u'message': u'Hello, remote user!', u'_id': ObjectId('558bca5bc818c9ebe01ebdfb')}
Write comment (0 Comments)
Install software:
opkg update opkg install usbreset
root@Arduino:~# usbreset Usage: usbreset PPPP:VVVV - reset by product and vendor id usbreset BBB/DDD - reset by bus and device number usbreset "Product" - reset by product name Devices: Number 001/001 ID 1d6b:0002 Generic Platform EHCI Controller Number 001/002 ID 058f:6254 USB2.0Hub Number 001/003 ID 05e3:0606 USB2.0 Hub Number 001/005 ID 0d8c:000c C-Media USB Headphone Set Number 001/004 ID 058f:6366 Mass Storage Device
Write comment (0 Comments)
opkg update opkg install pgsql-cli
nano postgres.sh
#!/bin/sh psql -h 192.168.0.240 -U postgres -d mypgdatabase<< EOF select username, password from login; EOF
chmod 755 postgres.sh
./postgres.sh username | password ----------+---------- sonnyyu | password (1 row)
Write comment (0 Comments)
Subcategories
Expand the Storage at Yun
Expand the Storage at Yun
Languages Supported by Yun
Languages Supported by Yun
Backup and Recover
Backup and Recover
Network and Yun
Network and Yun
Hardware & Yun
Hardware & Yun