Skip to content

Commit 3b866d6

Browse files
committed
deploy: 1944c7d
1 parent 73afba8 commit 3b866d6

26 files changed

+786
-161
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: c7262952a1f2248185361f48fcd82174
3+
config: 3c1236f384d0911a705840f9e38db6eb
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_sources/index.rst.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ start a discussion on |GitHub_discussion|.
1616
oar
1717
lammps
1818
git
19+
vpn
1920

2021
.. toctree::
2122
:maxdepth: 1

_sources/vpn.rst.txt

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
VPN tips
2+
========
3+
4+
To automaticaly connect to the UGA VPN, you can
5+
create a bash script named `vpn-connect.sh` and
6+
containing the following information:
7+
8+
.. code:: bash
9+
10+
#!/bin/bash
11+
12+
# Define VPN server, username, password, and group
13+
VPN_SERVER="vpn.grenet.fr"
14+
VPN_USER="your-username-here"
15+
VPN_PASSWORD="your-password-here"
16+
VPN_GROUP="Personnels de l' UGA"
17+
18+
# Path to the log file
19+
OCLOG="$HOME/vpn_connection.log"
20+
21+
echo "Connecting to VPN at $VPN_SERVER with username $VPN_USER"
22+
echo "You may be prompted for your sudo password if necessary..."
23+
24+
# Use openconnect with protocol, group, and password provided via echo
25+
echo "$VPN_PASSWORD" | sudo openconnect --protocol=anyconnect --authgroup="$VPN_GROUP" --user="$VPN_USER" "$VPN_SERVER" --passwd-on-stdin | tee -a "$OCLOG"
26+
27+
echo "VPN connection established. Logs can be found at $OCLOG"
28+
29+
WARNING
30+
-------
31+
32+
You don't have to save your password in `vpn-connect.sh`.
33+
If you leave the `VPN_PASSWORD` blank, you will be prompted
34+
to type your password. If you choose to write your password in
35+
the file, you can still protect the file using:
36+
37+
.. code:: bash
38+
39+
sudo chown root:root vpn-connect.sh
40+
sudo chmod 700 vpn-connect.sh

_static/check-solid.svg

Lines changed: 4 additions & 0 deletions
Loading

_static/clipboard.min.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_static/copy-button.svg

Lines changed: 5 additions & 0 deletions
Loading

_static/copybutton.css

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/* Copy buttons */
2+
button.copybtn {
3+
position: absolute;
4+
display: flex;
5+
top: .3em;
6+
right: .3em;
7+
width: 1.7em;
8+
height: 1.7em;
9+
opacity: 0;
10+
transition: opacity 0.3s, border .3s, background-color .3s;
11+
user-select: none;
12+
padding: 0;
13+
border: none;
14+
outline: none;
15+
border-radius: 0.4em;
16+
/* The colors that GitHub uses */
17+
border: #1b1f2426 1px solid;
18+
background-color: #f6f8fa;
19+
color: #57606a;
20+
}
21+
22+
button.copybtn.success {
23+
border-color: #22863a;
24+
color: #22863a;
25+
}
26+
27+
button.copybtn svg {
28+
stroke: currentColor;
29+
width: 1.5em;
30+
height: 1.5em;
31+
padding: 0.1em;
32+
}
33+
34+
div.highlight {
35+
position: relative;
36+
}
37+
38+
/* Show the copybutton */
39+
.highlight:hover button.copybtn, button.copybtn.success {
40+
opacity: 1;
41+
}
42+
43+
.highlight button.copybtn:hover {
44+
background-color: rgb(235, 235, 235);
45+
}
46+
47+
.highlight button.copybtn:active {
48+
background-color: rgb(187, 187, 187);
49+
}
50+
51+
/**
52+
* A minimal CSS-only tooltip copied from:
53+
* https://codepen.io/mildrenben/pen/rVBrpK
54+
*
55+
* To use, write HTML like the following:
56+
*
57+
* <p class="o-tooltip--left" data-tooltip="Hey">Short</p>
58+
*/
59+
.o-tooltip--left {
60+
position: relative;
61+
}
62+
63+
.o-tooltip--left:after {
64+
opacity: 0;
65+
visibility: hidden;
66+
position: absolute;
67+
content: attr(data-tooltip);
68+
padding: .2em;
69+
font-size: .8em;
70+
left: -.2em;
71+
background: grey;
72+
color: white;
73+
white-space: nowrap;
74+
z-index: 2;
75+
border-radius: 2px;
76+
transform: translateX(-102%) translateY(0);
77+
transition: opacity 0.2s cubic-bezier(0.64, 0.09, 0.08, 1), transform 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
78+
}
79+
80+
.o-tooltip--left:hover:after {
81+
display: block;
82+
opacity: 1;
83+
visibility: visible;
84+
transform: translateX(-100%) translateY(0);
85+
transition: opacity 0.2s cubic-bezier(0.64, 0.09, 0.08, 1), transform 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
86+
transition-delay: .5s;
87+
}
88+
89+
/* By default the copy button shouldn't show up when printing a page */
90+
@media print {
91+
button.copybtn {
92+
display: none;
93+
}
94+
}

0 commit comments

Comments
 (0)