You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,9 @@ In the scripts the comments etc are lined up correctly when they are viewed in [
27
27
28
28
-`nslookup_check.py` - This very simple script opens the file `server_list.txt` and then does an nslookup for each one to check the DNS entry.
29
29
30
-
-`osinfo.py` - Displays some information about the OS you are running this script on.
30
+
-`osinfo.py` - Displays some information about the OS on which you are running this script.
31
31
32
-
-`ping_servers.py` - This script will, depending on the arguments supplied, will ping the servers associated with that application group.
32
+
-`ping_servers.py` - This script depending on the arguments supplied, will ping the servers associated with that application group.
33
33
34
34
-`ping_subnet.py` - After supplying the first 3 octets it will scan the final range for available addresses.
35
35
@@ -41,22 +41,22 @@ In the scripts the comments etc are lined up correctly when they are viewed in [
41
41
42
42
-`script_listing.py` - This will list all the files in the given directory, it will also go through all the subdirectories as well.
43
43
44
-
-`testlines.py` - This very simple script open a file and prints out 100 lines of whatever is set for the line variable.
44
+
-`testlines.py` - This very simple script opens a file and prints out 100 lines of whatever is the set for the line variable.
45
45
46
46
-`tweeter.py` - This script allows you to tweet text or a picture from the terminal.
47
47
48
48
-`serial_scanner.py` contains a method called ListAvailablePorts which returns a list with the names of the serial ports that are in use in our computer, this method works only on Linux and Windows (can be extended for mac osx). If no port is found, an empty list is returned.
49
49
50
-
-`get_youtube_view.py` - This is very simple python script to get more views for your youtube videos.Some times I use for repeating my favorite songs by this scripts.
50
+
-`get_youtube_view.py` - This is very simple python script to get more views for your youtube videos. Sometimes I use it for repeating my favorite songs by this script.
51
51
52
-
-`CountMillionCharacter.py` - This Script will,counting character script, count how much character present *any text based file.
52
+
-`CountMillionCharacter.py` - This Script is used for 1.counting character script 2.count how much characters are present on any text based file.
53
53
54
-
-`xkcd_downloader.py` - Downloads the latest XKCD comic and places them in a new folder "comics"
54
+
-`xkcd_downloader.py` - Downloads the latest XKCD comic and places them in a new folder "comics".
55
55
56
56
-`timymodule.py` - A great alternative to Pythons 'timeit' module and easier to use.
57
57
58
58
-`calculator.py` - Uses Python's eval() function to implement a calculator.
59
59
60
-
-`Google_News.py` - Uses BeautifulSoup to provide Latest News Headline along with news link
60
+
-`Google_News.py` - Uses BeautifulSoup to provide Latest News Headline along with news link.
61
61
62
-
-`cricket_live_score` - Uses BeautifulSoup to provide live cricket score
62
+
-`cricket_live_score` - Uses BeautifulSoup to provide live cricket score.
Copy file name to clipboardExpand all lines: python_sms.py
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -15,25 +15,25 @@
15
15
importsqlite3
16
16
importsys
17
17
18
-
dropbox=os.getenv("dropbox")
19
-
scripts=os.getenv("scripts")
20
-
dbfile=("database/maindatabase.db")
21
-
master_db=os.path.join(dropbox, dbfile)
18
+
dropbox=os.getenv("dropbox")
19
+
scripts=os.getenv("scripts")
20
+
dbfile=("database/maindatabase.db")
21
+
master_db=os.path.join(dropbox, dbfile)
22
22
23
-
f=open(scripts+'/output/student.txt','a')
23
+
f=open(scripts+'/output/student.txt','a')
24
24
25
-
tdate=strftime("%d-%m")
25
+
tdate=strftime("%d-%m")
26
26
27
27
conn=sqlite3.connect(master_db)
28
28
cursor=conn.cursor()
29
-
loc_stmt='SELECT name, number from table'
29
+
loc_stmt='SELECT name, number from table'
30
30
cursor.execute(loc_stmt)
31
31
whileTrue:
32
32
row=cursor.fetchone()
33
33
ifrow==None:
34
34
break
35
-
sname=row[0]
36
-
snumber=row[1]
35
+
sname=row[0]
36
+
snumber=row[1]
37
37
38
38
message= (sname+' There will be NO training tonight on the '+tdate+' Sorry for the late notice, I have sent a mail as well, just trying to reach everyone, please do not reply to this message as this is automated')
0 commit comments