Browse Source

bin update

84582af
Dirk Alders 2 years ago
parent
commit
f09d885e7c
4 changed files with 51 additions and 3 deletions
  1. 8
    2
      apt-extend-ubuntu
  2. 39
    0
      findrepos
  3. 2
    0
      requirements.txt
  4. 2
    1
      unittest_status

+ 8
- 2
apt-extend-ubuntu View File

8
 synaptic
8
 synaptic
9
 neofetch
9
 neofetch
10
 sshfs curlftpfs libneon27
10
 sshfs curlftpfs libneon27
11
+openssh-server
12
+nfs-kernel-server
11
 keepass2 xdotool
13
 keepass2 xdotool
12
 tlp tlp-rdw
14
 tlp tlp-rdw
13
 lib32stdc++6
15
 lib32stdc++6
14
-powerline powerline-gitstatus
16
+powerline powerline-gitstatus fonts-powerline
17
+gnome-tweaks chrome-gnome-shell caffeine
15
 "
18
 "
16
 
19
 
17
 
20
 
18
 MULTIMEDIA="
21
 MULTIMEDIA="
19
 kodi kodi-pvr-hts
22
 kodi kodi-pvr-hts
20
 ubuntu-restricted-extras libdvd-pkg
23
 ubuntu-restricted-extras libdvd-pkg
21
-ardour ubuntustudio-controls calf-plugins eq10q fluid-soundfont-gm fluid-soundfont-gs lame
24
+ardour ubuntustudio-controls calf-plugins eq10q fluid-soundfont-gm fluid-soundfont-gs guitarix-ladspa swh-plugins
25
+gxtuner
26
+lame
22
 "
27
 "
23
 
28
 
24
 
29
 
34
 
39
 
35
 PROGRAMMING="
40
 PROGRAMMING="
36
 arduino
41
 arduino
42
+minicom
37
 virtualenv
43
 virtualenv
38
 libgtk-3-dev
44
 libgtk-3-dev
39
 python3-pip
45
 python3-pip

+ 39
- 0
findrepos View File

1
+#!/home/dirk/bin/venv/bin/python
2
+# -*- coding: UTF-8 -*-
3
+
4
+import optparse
5
+import os
6
+
7
+repolist = []
8
+
9
+
10
+def findrepos(p, **kwargs):
11
+    depth = kwargs.get('depth', 0)
12
+    max_depth = kwargs.get('max_depth')
13
+    ld = os.listdir(p)
14
+    if '.git' in ld:
15
+        if os.path.isdir(os.path.join(p, '.git')):
16
+            repolist.append(p)
17
+            return
18
+    else:
19
+        for entry in ld:
20
+            np = os.path.join(p, entry)
21
+            if os.path.isdir(np):
22
+                findrepos(np, depth=depth+1, max_depth=max_depth)
23
+
24
+
25
+if __name__ == "__main__":
26
+    parser = optparse.OptionParser("usage: %%prog target_path [opions]")
27
+    parser.add_option("-d", "--depth", dest="depth", default=None, type="int", help="Folder depth to search for a repo")
28
+    parser.add_option("-p", "--human-readable", dest="human_readable", action="store_true", default=False, help="Print a human readable list")
29
+    (options, args) = parser.parse_args()
30
+
31
+    if len(args) != 1:
32
+        parser.print_help()
33
+    else:
34
+        findrepos(args[0])
35
+        repolist.sort()
36
+        if options.human_readable:
37
+            print('- ' + '\n- '.join(repolist), '\n')
38
+        else:
39
+            print(' '.join(repolist))

+ 2
- 0
requirements.txt View File

1
+jinja2
2
+distro

+ 2
- 1
unittest_status View File

14
 module_pathes.sort()
14
 module_pathes.sort()
15
 sys.stdout.write(unittest.module_status.module_status_head())
15
 sys.stdout.write(unittest.module_status.module_status_head())
16
 for module_path in module_pathes:
16
 for module_path in module_pathes:
17
-    sys.stdout.write(unittest.module_status.module_status_line(module_path))
17
+    if not os.path.basename(module_path) in ['.git', 'eclipse-workspace']:
18
+        sys.stdout.write(unittest.module_status.module_status_line(module_path))

Loading…
Cancel
Save