- First, you need to open cmd in the admin mode, then run all commands below one by one.
- For x86 and x64
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
cd /d %ProgramFiles%\Microsoft Office\Office16
| function cpwd --description 'Print the cloud path of a mounted path' | |
| if test (count $argv) -gt 1 | |
| echo "Usage: cloudpath [mounted_path]" | |
| return 1 | |
| end | |
| if test (count $argv) -eq 0 | |
| set mounted_path (pwd) | |
| else | |
| set mounted_path $argv[1] |
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
cd /d %ProgramFiles%\Microsoft Office\Office16
| # ~/.config/fish/functions/whichpy.fish | |
| function whichpy --description 'Print python package information' | |
| set -l whichpy_script_url "https://gist.github.com/pwwang/879966128b0408c2459eb0a0b413fa69/raw/01fdd16e690a015aaa1015edf8874a6986bd33af/whichpy.py" | |
| set -l whichpy_script /tmp/whichpy.py | |
| if not test -f "$whichpy_script" | |
| echo "Downloading: $whichpy_script_url" | |
| command curl -sS "$whichpy_script_url" -o "$whichpy_script" | |
| end | |
| if test (count $argv) -eq 0 | |
| echo "Usage: whichpy <package> [python]" |
| function poetry-editable --description 'Do editable install for poetry project' | |
| echo "= RUN poetry build" | |
| poetry build | |
| set ver (poetry version -s) | |
| pushd dist/ | |
| tar zxvf *-$ver.tar.gz | |
| popd | |
| mv setup.py setup.py.bak | |
| function on_premature_exit |
| #!/usr/bin/env python | |
| # | |
| # Wrapper script for SIFT4G_annotator | |
| # | |
| # | |
| # Program Parameters | |
| # | |
| import os | |
| import subprocess |
| # get all targets from subdirectory | |
| SUBDIR := subdir | |
| TARGETS := $(shell make -C $(SUBDIR) -rpn | sed -n -e "/^$$/ { n ; /^[^ .\#%][^ ]\*:/ { s/:.\*$$// ; p ; } ; }" ) | |
| # default target | |
| all: | |
| # pass all targets to subdirectory | |
| %: |
| #!/usr/bin/env perl | |
| # vcf2maf - Convert a VCF into a MAF by mapping each variant to only one of all possible gene isoforms | |
| use strict; | |
| use warnings; | |
| use IO::File; | |
| use Getopt::Long qw( GetOptions ); | |
| use Pod::Usage qw( pod2usage ); | |
| use File::Path qw( mkpath ); |
| # for prevd and nextd, cd - | |
| function __fish_move_last -d "Move the last element of a directory history from src to dest" | |
| set -l src $argv[1] | |
| set -l dest $argv[2] | |
| set -l size_src (count $$src) | |
| if test $size_src = 0 | |
| # Cannot make this step |
| Windows Registry Editor Version 5.00 | |
| ; Created by: Shawn Brink | |
| ; http://www.sevenforums.com | |
| ; Tutorial: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html | |
| [-HKEY_CLASSES_ROOT\Directory\shell\runas] |
| #!/usr/bin/env python | |
| from subprocess import check_output | |
| from re import search | |
| cmd = ['qstat', '-xml'] | |
| # get the xml output | |
| output = check_output (cmd) | |
| keys = [] # the feature names | |
| vals = [] # the jobs including all features | |
| job = [] # the features |