CLI

All posts tagged CLI

$ git clone https://github.com/sivel/speedtest-cli.git

Cloning into ‘speedtest-cli’…
remote: Counting objects: 249, done.
remote: Compressing objects: 100% (150/150), done.
remote: Total 249 (delta 133), reused 208 (delta 98)
Receiving objects: 100% (249/249), 42.82 KiB | 0 bytes/s, done.
Resolving deltas: 100% (133/133), done.
Checking connectivity… done

$ cd speedtest-cli/

$ sudo cp speedtest_cli.py /usr/local/bin/speedtest_cli

Password:

$ speedtest_cli –list

. use grep to find your local city

$ speedtest_cli –server 1423 –share

Retrieving speedtest.net configuration…
Retrieving speedtest.net server list…
Testing from Comcast Business Communications (75.10.110.224)…
Hosted by Condointernet.net (Seattle, WA) [0.40 km]: 27.259 ms
Testing download speed………………………………….
Download: 34.27 Mbit/s
Testing upload speed…………………………………………..
Upload: 13.27 Mbit/s
Share results: http://www.speedtest.net/result/3149843413.png

$ git clone https://github.com/insanum/gcalcli.git
$ cd gcalcli
$ sudo yum install python-gflags python-dateutil python-httplib2 python-pip
$ sudo pip install google-api-python-client
$./gcalcli (browswer should open and you need to authenticate to your google account, once that is successful…then jump back to your shell)

Show a week
$ ./gcalcli calw

Show a full month
$./gcalcli calm

Add an event
$ ./gcalcli –calendar ‘darren@unixdude.org’ –title ‘Your Mom my pad’ –where ‘YO Mommas’ –when ’12/12/2013 20:00′ –duration 120 –description ‘Play time with mommy’ –reminder 30 add

Verify the new event
$ ./gcalcli calm 12/2013
(will show month with your new event)

Add a quick note in current day, you MUST ALWAYS specify the calendar.
$ ./gcalcli quick –calendar ‘darren@unixdude.org’ ‘Going waterskiing with JohnnyPiper and Little JohnnyApples 8pm’

List all the calendars you have available
$ ./gcalcli list

Search the calendaras for events
$ ./gcalcli search Little

2013-09-07 8:00pm Going waterskiing with JohnnyPiper and Little JohnnyApples

Bunch more you can do like import vcs/vcal/ics files from Exchange etc. Can setup crons for helpful pop-up reminders, email notifications..etc

Read the man page for further details.

A bunch of old home directories, that you want to tar up by making sure you get all the hidden .files/directories

cd /home
for i in *;  do cd $i; find . -name .\*| tar cvf /opt/oldhome/$i.tar -T-; cd ..;done