This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR=~/local/Downloads | |
CLIENT=$(ls "$DIR"/Nextcloud-* 2>/dev/null | tail -n 1) | |
echo $CLIENT | |
if [ -e "$CLIENT" ]; then | |
echo "Starting Nextcloud client in background..." | |
set +x | |
LC_ALL=en_US "$CLIENT" & disown | |
else | |
echo "Error: Nextcloud client not found in $DIR" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Uses rsync with sudo privileges on a remote machine | |
# By Daniel Kraus (bovender), released into the public domain | |
# | |
# Inspired by: https://unix.bris.ac.uk/2015/08/04/rsync-between-two-hosts-using-sudo-and-a-password-prompt/ | |
# | |
# To use this, an askpass program must be installed on the | |
# remote node. For Debian/Ubuntu systems, use: | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.local/share/applications/android-studio.desktop | |
# This file expects Android Studio in /opt | |
[Desktop Entry] | |
Name=Android Studio | |
GenericName=Android Studio | |
Exec=/opt/android-studio/bin/studio.sh | |
Icon=/opt/android-studio/bin/studio.png | |
Terminal=false | |
Type=Application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-# For each locale except the current one | |
- I18n.available_locales.each do |locale| | |
-# Add a link to the current URL but in `locale` language | |
%link{rel: 'alternate', hreflang: locale, href: url_for(locale: locale, only_path: false)} |