This file contains hidden or 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
| /* The code has been tested on kerenl 5.3 | |
| The steps to use the icotl in user space is given in | |
| http://tuxthink.blogspot.com/2011/01/creating-ioctl-command.html | |
| */ | |
| #include <linux/module.h> | |
| #include <linux/kernel.h> | |
| #include <linux/fs.h> // required for various structures related to files liked fops. |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ | |
| Tested on python 3.6 | |
| file1 : Path to the original file | |
| copy: Path to the file to be created having unique rows from file1 | |
| """ | |
| import pyoo |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ | |
| Tested on python 3.6 | |
| file1: File from where rows need to be copied | |
| file2: File having the reference values | |
| copy : The new file to be created with the required rows. | |
| Update the above three paths before executing the script. | |
| """ |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ | |
| Tested on python 3.6 | |
| Modify the path variable to point to the location of the librecalc file. | |
| Modify the grade dict to suit the grades that you want to assign. | |
| """ | |
| import pyoo | |
| path="" |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ | |
| Tested on python 3.6 | |
| """ | |
| import pyoo | |
| path="/media/satish/5229e5b6-0b7b-44ef-a609-5aaf186c6bc4/data/pro_g/python/pyoo/test.ods" | |
| desktop = pyoo.Desktop('localhost', 2002) | |
| doc = desktop.open_spreadsheet(path) |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ | |
| Tested on python 3.6 | |
| """ | |
| import pyoo | |
| """ |
This file contains hidden or 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
| /* Code has been tested on linux kernel 5.3*/ | |
| #include <linux/module.h> | |
| #include <linux/kernel.h> | |
| #include <linux/fs.h> | |
| #include<linux/sched.h> | |
| #include <linux/uaccess.h> | |
| #include<linux/slab.h> | |
| #include <linux/miscdevice.h> |
This file contains hidden or 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
| /*Tested on kernel 5.3*/ | |
| #include <linux/module.h> | |
| #include <linux/kernel.h> | |
| #include <linux/proc_fs.h> | |
| #include<linux/slab.h> | |
| ssize_t size; |
This file contains hidden or 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
| #include <linux/module.h> | |
| #include <linux/kernel.h> | |
| #include <linux/proc_fs.h> | |
| #include<linux/slab.h> | |
| int len; | |
| char *msg; |
This file contains hidden or 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
| #include <linux/module.h> | |
| #include <linux/kernel.h> | |
| #include<linux/sched.h> | |
| int pint=-1; | |
| static __init int getargs(char *str){ | |
| char *ret; | |
| int i=0,num; |
NewerOlder