Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Reference Detector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
EIC
detectors
Reference Detector
Merge requests
!3
WIP: Detector Template XML file
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
WIP: Detector Template XML file
det_template
into
master
Overview
1
Commits
9
Pipelines
2
Changes
35
Closed
Jihee Kim
requested to merge
det_template
into
master
4 years ago
Overview
1
Commits
9
Pipelines
2
Changes
35
Expand
Write a detector template xml file
0
0
Merge request reports
Compare
master
version 1
6d6464e2
4 years ago
master (base)
and
latest version
latest version
7614af7c
9 commits,
4 years ago
version 1
6d6464e2
8 commits,
4 years ago
35 files
+
3113
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
35
Search (e.g. *.vue) (Ctrl+P)
bin/chromium-proxy
0 → 100755
+
88
−
0
Options
#!/bin/bash
set
-o
nounset
set
-o
errexit
PROXY_PROFILE
=
$USER
PROXY_PORT
=
8020
SSH_HOST
=
"sodium"
function
print_the_help
{
echo
"USAGE:
${
0
}
[-p <PROXY_PORT>] [-n <PROFILE_NAME>] [-s SSH_HOST] "
echo
" OPTIONS: "
echo
" -s,--host ssh host. Default: sodium"
echo
" -p,--port Proxy port number. Default: 8020"
echo
" -n,--profile Profile name to use. Sets profile directory to ~/.proxy-profiles/PROFILE_NAME"
echo
" "
echo
" EXAMPLE: "
echo
"
${
0
}
-p 8920 -n sodium sodium "
exit
}
function
yes_or_no
{
while
true
;
do
read
-p
"
$*
[y/n]: "
yn
case
$yn
in
[
Yy]
*
)
return
0
;;
[
Nn]
*
)
echo
"No entered"
;
return
1
;;
esac
done
}
if
[[
$#
-eq
0
]]
;
then
print_the_help
exit
fi
POSITIONAL
=()
while
[[
$#
-gt
0
]]
do
key
=
"
$1
"
case
$key
in
-h
|
--help
)
shift
# past argument
print_the_help
exit
;;
-p
|
--port
)
PROXY_PORT
=
"
$2
"
shift
# past argument
shift
# past value
;;
-n
|
--profile
)
PROXY_PROFILE
=
"
$2
"
shift
# past argument
shift
# past value
;;
-s
|
--host
)
SSH_HOST
=
"
$2
"
shift
# past argument
shift
# past value
;;
*
)
# unknown option
#POSITIONAL+=("$1") # save it in an array for later
echo
"unknown option
$1
"
print_the_help
exit
shift
# past argument
;;
esac
done
set
--
"
${
POSITIONAL
[@]
}
"
# restore positional parameters
#yes_or_no "Upload these plots to logbook HALOG? " && some_command
echo
" "
echo
"ssh -n -D
${
PROXY_PORT
}
${
SSH_HOST
}
"
echo
" "
ssh
-n
-D
${
PROXY_PORT
}
${
SSH_HOST
}
&
chromium-browser
\
--user-data-dir
=
"
$HOME
/.proxy-profiles/
${
PROXY_PROFILE
}
"
\
--proxy-server
=
"socks5://localhost:
${
PROXY_PORT
}
"
&> /dev/null &
echo
" "
echo
"You are now tunneling all traffic through proxy
${
SSH_HOST
}
on port
${
PROXY_PORT
}
"
echo
" "
Loading