Loading .bashrc +12 −0 Original line number Diff line number Diff line Loading @@ -223,6 +223,18 @@ match_ssl_pair () { return "$exitcode" } mnt_lib () { mkdir -p "$HOME/Library" rclone mount \ --allow-non-empty \ --daemon \ --gid "$(id -g)" \ --vfs-cache-mode full \ --uid "$(id -u)" \ library:/ \ "$HOME/Library" } new_experiment () { if [ "$#" -ne 1 ] then Loading .bashrc.private.j2 +1 −0 Original line number Diff line number Diff line Loading @@ -6,3 +6,4 @@ export GITHUB_TOKEN='{{ run(["ph", "show", "--field", "CLI token", "Web Sites/Gi export GITHUB_OAUTH_TOKEN="$GITHUB_TOKEN" {% set nc_password = run(["ph", "show", "--field", "Password", "shore.co.il/LDAP"])["stdout"] -%} export RCLONE_CONFIG_NEXTCLOUD_PASS='{{ run(["rclone", "obscure", nc_password])["stdout"]|trim }}' export RCLONE_CONFIG_LIBRARY_PASS="$RCLONE_CONFIG_NEXTCLOUD_PASS" .config/rclone/rclone.conf +6 −0 Original line number Diff line number Diff line Loading @@ -3,3 +3,9 @@ type = webdav url = https://nextcloud.shore.co.il/remote.php/webdav/ vendor = nextcloud user = nimrod [library] type = webdav url = https://library.shore.co.il/webdav/ vendor = other user = nimrod Loading
.bashrc +12 −0 Original line number Diff line number Diff line Loading @@ -223,6 +223,18 @@ match_ssl_pair () { return "$exitcode" } mnt_lib () { mkdir -p "$HOME/Library" rclone mount \ --allow-non-empty \ --daemon \ --gid "$(id -g)" \ --vfs-cache-mode full \ --uid "$(id -u)" \ library:/ \ "$HOME/Library" } new_experiment () { if [ "$#" -ne 1 ] then Loading
.bashrc.private.j2 +1 −0 Original line number Diff line number Diff line Loading @@ -6,3 +6,4 @@ export GITHUB_TOKEN='{{ run(["ph", "show", "--field", "CLI token", "Web Sites/Gi export GITHUB_OAUTH_TOKEN="$GITHUB_TOKEN" {% set nc_password = run(["ph", "show", "--field", "Password", "shore.co.il/LDAP"])["stdout"] -%} export RCLONE_CONFIG_NEXTCLOUD_PASS='{{ run(["rclone", "obscure", nc_password])["stdout"]|trim }}' export RCLONE_CONFIG_LIBRARY_PASS="$RCLONE_CONFIG_NEXTCLOUD_PASS"
.config/rclone/rclone.conf +6 −0 Original line number Diff line number Diff line Loading @@ -3,3 +3,9 @@ type = webdav url = https://nextcloud.shore.co.il/remote.php/webdav/ vendor = nextcloud user = nimrod [library] type = webdav url = https://library.shore.co.il/webdav/ vendor = other user = nimrod