Skip to content

Instantly share code, notes, and snippets.

View joet3ch's full-sized avatar

Joe Nicosia joet3ch

View GitHub Profile
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";
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
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
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)
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
[root@bubbles.t3ch.com ~]# vmware-toolbox-cmd disk list
/
/boot
[root@bubbles.t3ch.com ~]# vmware-toolbox-cmd disk shrink /
Progress: 100 [===========>]
$ 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
*/5 * * * * /opt/apps/network_monitor/network_monitor.sh >> /dev/null 2>&1
#!/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
thrift --gen py SomeApp-service.thrift