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
mount -o loop file.img /mnt/mountpoint |
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
pi@raspi /mnt $ sudo dd if=/dev/mmcblk0p2 of=/mnt/backup/20140125.img bs=1M | |
29879+0 records in | |
29879+0 records out | |
31330402304 bytes (31 GB) copied, 5752.66 s, 5.4 MB/s |
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
Microsoft DiskPart-Version 6.2.9200 | |
Copyright (C) 1999-2012 Microsoft Corporation. | |
Auf Computer: ACER7750 | |
DISKPART> LIST | |
Microsoft DiskPart-Version 6.2.9200 |
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
export DISPLAY=:0.0 | |
vlc video.mp4 |
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
import android,time | |
droid = android.Android() | |
droid.makeToast('Hello, Android!') | |
droid.vibrate(300) | |
try: | |
droid.startSensing() | |
time.sleep(1) | |
e=droid.eventPoll(1) | |
droid.eventClearBuffer() |
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/sh | |
USERNAME=<USERNAME> | |
PASSWORD=<PASSWORD> | |
SERVER=<SERVER> | |
ftp -n -i $SERVER <<EOF | |
user $USERNAME $PASSWORD | |
passive | |
cd /html/bsnx/ | |
mput <YOUR_FILE>.txt |
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
#!/usr/bin/php | |
#<?php | |
$inet .= exec("/sbin/ifconfig wlan0 | grep inet"); | |
// inet addr:192.168.42.124 Bcast:192.168.42.255 Mask:255.255.255.0 | |
if (strpos($inet, "inet") === false) { | |
exec("sudo /etc/init.d/networking restart"); | |
} |
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
<dependency> | |
<groupId>org.eclipse.jetty</groupId> | |
<artifactId>jetty-websocket</artifactId> | |
<version>8.1.13.v20130916</version> | |
</dependency> | |
<dependency> | |
<groupId>org.eclipse.jetty</groupId> | |
<artifactId>jetty-server</artifactId> | |
<version>8.1.13.v20130916</version> | |
</dependency> |
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
#include <Servo.h> | |
Servo servo; | |
int ctrlPin = 2; | |
void setup() { | |
servo.attach(9); | |
} | |
void loop() { |
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
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
int sensorValue = analogRead(A0); | |
Serial.print("ai0:"); | |
Serial.println(sensorValue); | |
sensorValue = analogRead(A1); |
NewerOlder