Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Meißner
Scripts
Commits
fe061392
Commit
fe061392
authored
3 years ago
by
Florian Meißner
Browse files
Options
Downloads
Patches
Plain Diff
bla
parent
355bacd8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
backup_keepass.sh
+16
-0
16 additions, 0 deletions
backup_keepass.sh
pa_virtual.sh
+6
-0
6 additions, 0 deletions
pa_virtual.sh
restic_docs.sh
+1
-1
1 addition, 1 deletion
restic_docs.sh
vnc_notebook.sh
+4
-0
4 additions, 0 deletions
vnc_notebook.sh
vpn_uni.sh
+3
-0
3 additions, 0 deletions
vpn_uni.sh
with
30 additions
and
1 deletion
backup_keepass.sh
0 → 100755
+
16
−
0
View file @
fe061392
#!/bin/bash
export
RCLONE_CONFIG_PASS
=
$(
cat
$HOME
/Documents/__wichtig__/passwords/rclone_config
)
myrestic
=(
-r
=
rclone:onedrive_ohm:/backup/docs
\
--password-command
=
"cat
$HOME
/Documents/__wichtig__/passwords/restic_onedrive_ohm"
)
KEEPASS_FILE
=
$HOME
/Sync/pymass.kdbx
BACKUP_NAME
=
pymass.xml
read
-r
-s
-p
"Password: "
password
echo
-e
$password
| keepassxc-cli
export
-q
$KEEPASS_FILE
| restic
"
${
myrestic
[@]
}
"
backup
--stdin
--stdin-filename
$BACKUP_NAME
restic
"
${
myrestic
[@]
}
"
check
This diff is collapsed.
Click to expand it.
pa_virtual.sh
0 → 100755
+
6
−
0
View file @
fe061392
pacmd load-module module-null-sink
sink_name
=
MySink
pacmd update-sink-proplist MySink device.description
=
MySink
pacmd update-source-proplist
"MySink.monitor"
device.description
=
"
\"
MySink Monitor
\"
"
pacmd load-module module-loopback
sink
=
MySink
source
=
alsa_input.usb-Kingston_HyperX_Cloud_II_Wireless_000000000001-00.mono-fallback
pacmd load-module module-loopback
source
=
MySink.monitor
sink
=
alsa_output.usb-Kingston_HyperX_Cloud_II_Wireless_000000000001-00.analog-stereo
This diff is collapsed.
Click to expand it.
restic_docs.sh
+
1
−
1
View file @
fe061392
...
@@ -8,7 +8,7 @@ myrestic=(-r=rclone:onedrive_ohm:/backup/docs \
...
@@ -8,7 +8,7 @@ myrestic=(-r=rclone:onedrive_ohm:/backup/docs \
--password-command
=
"cat
$HOME
/Documents/__wichtig__/passwords/restic_onedrive_ohm"
)
--password-command
=
"cat
$HOME
/Documents/__wichtig__/passwords/restic_onedrive_ohm"
)
#echo $myrestic
#echo $myrestic
#restic "${myrestic[@]}" unlock
# Read a string with spaces using for loop
# Read a string with spaces using for loop
for
backup_path
in
"
$HOME
/Documents"
"
$HOME
/scripts"
"
$HOME
/Sync/pymass.kdbx"
"/crypto_keyfile.bin"
for
backup_path
in
"
$HOME
/Documents"
"
$HOME
/scripts"
"
$HOME
/Sync/pymass.kdbx"
"/crypto_keyfile.bin"
do
do
...
...
This diff is collapsed.
Click to expand it.
vnc_notebook.sh
0 → 100755
+
4
−
0
View file @
fe061392
#!/bin/bash
ssh
-L
12346:localhost:5900
-f
-N
ra1n@192.168.178.23
gvncviewer localhost:6446
This diff is collapsed.
Click to expand it.
vpn_uni.sh
+
3
−
0
View file @
fe061392
...
@@ -23,7 +23,10 @@ args=( # set protocol to globalprotect - probably don't change this
...
@@ -23,7 +23,10 @@ args=( # set protocol to globalprotect - probably don't change this
# override routing for common servers
# override routing for common servers
--resolve
fsin.th-nuernberg.de:141.75.149.145
--resolve
fsin.th-nuernberg.de:141.75.149.145
--resolve
fstest.th-nuernberg.de:141.75.149.143
--resolve
fstest.th-nuernberg.de:141.75.149.143
# --servercert 'pin-sha256:lm+C0Qgm7ZTPMLZ7KJlRLk5teQGc9qhmGfZavlRv3eQ='
)
)
#openconnect "${args[@]}" $VPN_SERVER
cat
$VPN_PASSWORD_FILE
| openconnect
"
${
args
[@]
}
"
$VPN_SERVER
cat
$VPN_PASSWORD_FILE
| openconnect
"
${
args
[@]
}
"
$VPN_SERVER
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment