| Server IP : 80.74.154.100 / Your IP : 216.73.217.0 Web Server : Apache System : Linux marissa.metanet.ch 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64 User : onlineadmin ( 10487) PHP Version : 8.5.7 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/httpd/vhosts/comeonline.ch/ |
Upload File : |
# Allow aliases when using sudo. Space at end is needed.
# http://askubuntu.com/questions/22037/aliases-not-available-when-using-sudo
alias sudo='sudo '
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# List hidden files only
alias lh='ls -lad .*'
# Like long listing above but with hidden files. Easy to remember "all" backwards.
alias lla='ls -alFh'
alias beep="echo -ne '\007'"
alias beep-vol="xset b $1"
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\''), is finished"'
#pushbullet alert for long running commands. Use like so:
# sleep 10; pa
alias pa='pushbullet push all note "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*pa$//'\''), is finished. from $(whoami)@$(hostname)"'
# Alias to allow us to quickly edit or change the folder and file permissions to work on the settings.php file in a drupal install. Run from Drupal webroot.
alias opensesame='chmod a+w sites/default/settings.php sites/default/'
alias closesesame='chmod a-w sites/default/settings.php sites/default/'
alias ali-baba='nano sites/default/settings.php'
# Alias for Drush 8
# We use the DRUSH_LAUNCHER_FALLBACK environmental variable, which we set before we source this file in .bashrc.
alias drush8=$(echo "${DRUSH_LAUNCHER_FALLBACK}")
# Alias for Github git wrapper hub
#eval "$(hub alias -s)"
# Function to generate sql dump names
function dumpname() {
if [ -z $1 ]; then
echo "$(date '+%Y%m%d-%H%M%S')-$(git describe --always).sql"
else
echo "$1-$(date '+%Y%m%d-%H%M%S')-$(git describe --always).sql"
fi
}
# Hash Salt generator
alias hashsalt='openssl rand -base64 24 > hash_salt.txt && echo "hash_salt.txt has been generated. Best to generate in composer project root and ignore in .git
ignore. To use this file in settings.php use a line like: $settings['hash_salt'] = file_get_contents('../hash_salt.txt');"'