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
package org.example.video; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.widget.VideoView; | |
import android.util.Log; | |
public class Video extends Activity { | |
public static final String TAG = "Video"; |
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
laptop01:~ root# ls -l | |
total 80 | |
-rw-r--r-- 1 root wheel 3 Nov 19 2008 .CFUserTextEncoding | |
-r--r--r-- 1 root wheel 10 Jun 23 2009 .forward | |
drwxr-xr-x 3 root wheel 102 Feb 23 19:48 .gem | |
-rw------- 1 root wheel 35 Jul 22 2009 .lesshst | |
-rw------- 1 root wheel 1204 Nov 20 11:30 .localized | |
drwx------ 3 root wheel 102 Nov 21 2008 .macports | |
-rw------- 1 root wheel 253 Dec 10 2008 .mysql_history | |
-rw------- 1 root wheel 10139 Mar 12 18:54 .sh_history |
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
laptop01:~ root# diskutil resizeVolume disk3s1 250M | |
Started partitioning on disk3s1 part1 | |
Verifying disk | |
Resizing | |
Finished partitioning on disk3s1 part1 | |
/dev/disk3 | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *524.0 MB disk3 | |
1: Apple_HFS part1 250.0 MB disk3s1 |
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
laptop01:~ root# diskutil resizeVolume disk3s1 limits | |
For device disk3s1 part1: | |
Current size: 100.0 MB (100028416 Bytes) | |
Minimum size: 100.0 MB (100028416 Bytes) | |
Maximum size: 389.8 MB (389767168 Bytes) |
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
laptop01:~ root# diskutil list | |
/dev/disk0 | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *320.1 GB disk0 | |
1: EFI 209.7 MB disk0s1 | |
2: Apple_HFS Macintosh HD 319.7 GB disk0s2 | |
/dev/disk1 | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *128.0 GB disk1 | |
1: EFI 209.7 MB disk1s1 |
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
[root@bubbles.t3ch.com ~]# vmware-toolbox-cmd disk list | |
/ | |
/boot | |
[root@bubbles.t3ch.com ~]# vmware-toolbox-cmd disk shrink / | |
Progress: 100 [===========>] |
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
$ sudo pip install -e git://github.com/joet3ch/foursquare-python.git#egg=foursquare | |
Obtaining foursquare from git+git://github.com/joet3ch/foursquare-python.git#egg=foursquare | |
Cloning git://github.com/joet3ch/foursquare-python.git to ./src/foursquare | |
Running setup.py egg_info for package foursquare | |
Installing collected packages: foursquare | |
Running setup.py develop for foursquare | |
Creating /usr/local/lib/python2.6/dist-packages/foursquare.egg-link (link to .) | |
Adding foursquare 0.1 to easy-install.pth file | |
Installed /home/ubuntu/src/foursquare |
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
*/5 * * * * /opt/apps/network_monitor/network_monitor.sh >> /dev/null 2>&1 |
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/bash | |
SOURCE="monitor01.t3ch.com" | |
SUBJECT="Network Alert: Node unreachable" | |
TO="youremail@t3ch.com" | |
MESSAGE="/tmp/network_monitor-message.txt" | |
for ipaddr in `cat nodes.list`; | |
do | |
if ! ping -c 1 $ipaddr |
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
thrift --gen py SomeApp-service.thrift |