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
from Tkinter import * | |
import os, time, tkMessageBox, os | |
import getpass, thread, threading #import subprocess #ttk #from multiprocessing import Process | |
root = Tk() | |
root.title("Android M-Dashboard") | |
frame = Frame(root) | |
frame.pack() |
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 | |
# Revision History: | |
# AUTHOR: Mail_ID Date Comment | |
# MOHIT SHARMA <[email protected]> 25th Jan 2014 <Santiy window operations stressed out> | |
# | |
# FILE: | |
# (C) NVIDIA Corp | |
# | |
# Target use: |
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
## Acer | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0600", OWNER="<username>" | |
## ASUS | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0600", OWNER="<username>" | |
## Dell | |
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0600", OWNER="<username>" | |
## Foxconn |
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 | |
GNOME_USER=$(ps -ef | grep "gnome-session --session=" | head -1 | cut -d " " -f 1) | |
read W1 W2 T <<< `curl -s http://www.accuweather.com/en/in/pune/204848/weather-forecast/204848 | html2text \ | |
| grep -ie "currently" -A 1 | tail -1 | awk '{gsub(/^ +| +$|[[:cntrl:]]/,"" )}1' | cut -d " " --fields=1,2,3` | |
AMPMTIME=$(date +"%p"); HOURTIME=$(date +"%H") | |
# if [ $AMPMTIME = "PM" -a $HOURTIME -gt "8" -o $AMPMTIME = "AM" -a $HOURTIME -lt "5" ]; then | |
# ICONFOLDER='/usr/share/pixmaps/WeatherIcons/Night' |
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/python | |
# Author: Mohit Sharma <[email protected]> | |
# "mindicator" - application indicator for Ubuntu desktop | |
from gi.repository import AppIndicator3 as appindicator, Gtk, GObject | |
import os | |
# VTC and ARB link setup | |
userFullName = os.popen("cat /etc/passwd | grep -ie `ps -ef | grep gnome-session | head -1 | cut -d \" \" -f 1` | cut -d: -f5 | sed -e 's/,//g'").read().strip() | |
FIRST, SECOND = userFullName.split() |
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 | |
GNOME_USER=$(ps -ef | grep "gnome-session --session=" | head -1 | cut -d " " -f 1) | |
ping -c 1 -q google.com > /dev/null 2>&1 | |
if [ "$(echo $?)" -ne "0" ]; then | |
exit 0 | |
fi | |
MYCRICKETTEAM="IND" |
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 | |
# AUTHOR: Mohit Sharma <[email protected]> | |
# File: Display custom updates easily | |
# (C) Copyleft: Modify and spread | |
# Commented out set -e, enabling script to execute even if one of the data fetching fails | |
#set -e | |
ping -c 1 -q google.com > /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 | |
export YELL_COLOR='\E[33m' # Yellow text | |
export FINE_COLOR='\E[32m' # Green text | |
export NORM_COLOR='\E[0m' # Normalize text | |
export BLUE_BACK='\E[44m' # Blue back | |
export CYAN_BACK='\E[45m' # Cyan back | |
[ `whoami` != root ] && echo Error: Run this script $0 as a root user && exit 1 |