Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
code-webis-cmd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
code-generic
code-webis-cmd
Commits
fce1d584
Commit
fce1d584
authored
Nov 16, 2017
by
Johannes Kiesel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cheatsheet for text view
parent
24c27979
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
6 deletions
+71
-6
cheatsheet.txt
cheatsheet.txt
+66
-0
tools/core/update-cheatsheet.sh
tools/core/update-cheatsheet.sh
+2
-2
webis.py
webis.py
+3
-4
No files found.
cheatsheet.txt
0 → 100644
View file @
fce1d584
test A few unimportant test scripts for developing purpose.
t
a short description
b
webis20 Storage Management Scripts, need direct access to RAID Controller and MegaCLI installed
lsi
util General helper tools and utilities
sshproxy Set up an SSH proxy tunnel for accessing digital library content or university-restricted URLs
read-from-clipboard read clipboard and print to stddout
write-to-clipboard write from stdin to the clipboard
login get fullname based on login name
tasks Process tasks in parallel
patch-jar add files from one jar (or other zip) to another one
backup-btrfs-vol Take a snapshot of a btrfs subvolume and back up its contents to another location
betamng Low level scripts for managing Betaweb.
activate_vnc_all activate vnc on all nodes of the hostlist
set_critical_temp_shutdown set settings for shutdown on critical temperature
status_all get power status of every node of betamng
get_bios_boot_settings_all get boot settings from all nodes
pssh run a command parallel on all betamng nodes
enable_pxe_bios_boot_all enable pxe bios boot on all hosts: experimental! hope and prey
start_all start every node of betamng (parallel)
change_lcd_msg_all change lcd message of every node of betaweb to betaweb???
bios_cpu_test_all starts bios cpu test on all nodes of the hostlist
virtualscreen open java vnc session to one of the betamng nodes, via idrac
do_all run a command sequential on all betamng nodes
stop_all shutdown every node of betamng
vnc open vnc session to one of the betamng nodes
read_all_macs printout system dump of all hosts for extracting mac addresses
ssh open ssh session to one of the betamng nodes (racadm can be used)
git Helper scripts for working with the Webis Git server and GitLab instance.
cvstree2git Try to clone all projects in the current CVS tree from Git.
onboard Set up the correct Gitlab group permissions for a new student or Hiwi
cvs2git Import all CVS modules into new Git repositories and push
web-admin Display a web-admin view for Gitlab (need to have a token with admin access)
clone-groups Check out groups of webis gitlab projects at once
init Initialize GitLab API client
clone-deps Clone dependencies for current project from GitLab
gitlab Gitlab commandline interface that comes with python-gitlab
update-project Clone or update the given Git project from GitLab.
core Core functions of the Webis command.
install install webis to PATH
fun easter egg
update-cheatsheet update local copy of code-webis-cmd/cheatsheet.txt
checker check codestyle of project
version get webis version
remove remove webis from PATH
update update the webis command from Git
betaweb High level scripts for betaweb, e.g. hadoop management.
rolling_restart Restart betaweb nodes one after another
restart_hadoop_ressourcemanager restart hadoop ressource manager on betaweb020 and restarts nodemanager
rolling_state Apply Salt state on nodes one after another
check_ram
status get status of betaweb via salt
elasticsearch Helper scripts for managing Elasticsearch on the Betaweb cluster.
start_nodes Restart Elasticsearch cluster
restart_nodes Restart Elasticsearch cluster
stop_nodes Restart Elasticsearch cluster
tools/core/update-cheatsheet.sh
View file @
fce1d584
#!/bin/bash
# update local copy of code-webis-cmd/cheatsheet.
md
# update local copy of code-webis-cmd/cheatsheet.
txt
#
# Update Webis command
#
...
...
@@ -11,7 +11,7 @@
#
# Constants
#
cheatsheetname
=
cheatsheet.
md
cheatsheetname
=
cheatsheet.
txt
#
# Load libaries and toolkits.
...
...
webis.py
View file @
fce1d584
...
...
@@ -106,16 +106,15 @@ def get_subcommand_help(subcommandpath):
def
print_help_table
(
config
):
"""Prints a table with all commands, subcommands, and their descriptions."""
print
(
"(sub-)command | description "
)
print
(
"------------------------------ | --------------------------------------------------"
)
commands
=
get_commands
(
config
)
for
command
in
commands
:
command_help
=
str
(
config
[
"commands_help"
].
get
(
command
))
print
(
"{:
30s} | {}"
.
format
(
"**"
+
command
+
"**"
,
"**"
+
command_help
+
"**"
))
print
(
"{:
20s} {}"
.
format
(
command
,
command_help
))
subcommands
=
get_subcommands
(
config
,
commands
[
command
])
for
subcommand
in
subcommands
:
subcommand_help
=
str
(
get_subcommand_help
(
subcommands
[
subcommand
]))
print
(
"- {:28s} | {}"
.
format
(
subcommand
,
subcommand_help
))
print
(
" {:20s} {}"
.
format
(
subcommand
,
subcommand_help
))
print
(
""
)
def
check_subcommand_shebang
(
subcommandpath
,
allowed_scripts
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment