could not connect to $SSH_AUTH_SOCK: dial unix /tmp/ssh-FUk5nsIlP1qb/agent.6776: connect: no such file or directory
$ eval $(ssh-agent -s)
$ eval $(ssh-agent -s)
Quick way to for each directory in current folder to show its name, then # of inodes under it: find -type d -maxdepth 1 -exec sh -c “echo {}; ls -Ria {} | sed -e ‘s/^ *//’ -e ‘s/ .*//’ -e ‘/^$/d’ -e ‘/^\./d’ | sort -u | wc -l; ” \; For example, […]
New mac os available. You try to install but you run out of space. It will fail and your mac will be hosed. You could press command + R while booting and get into OS Utilities, but it doesn’t allow you to free up space and delete files individually. Solution: boot into live usb […]
In fedora, if you try to yum install and get: # yum install hfsplus-tools Loaded plugins: presto, refresh-packagekit Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again Change https to http in files in /etc/yum.repos.d/*, e.g.: sed -i ‘s/https/http/g’ /etc/yum.repos.d/*
cat blah | cut -f1 -d$’\t’
screen -S foo Then to reattach it, run screen -r foo # or use -x, as in screen -x foo # for “Multi display mode” (see the man page)
On mac: Fn + Shift + Del. else: Shift + Del once you highlight (up/down arrow keys) the suggestion.
apache2 hangs. Check logs, see: [error] could not make child process 16190 exit, attempting to continue anyway check your php files (such as drupal’s includes/common.inc and sites/all/modules/advagg/advagg.missing.inc ) for: ignore_user_abort Try to comment all out, and restart apache.
which <command> returns nothing. Maybe it’s alias, so: type <command> will tell you what the alias is for.
To make apt-get update work, we simply need to edit /etc/apt/sources.list and update all URLs from security.ubuntu.com and archive.ubuntu.com to point to old-releases.ubuntu.com, as per the following sed command: sudo sed -i.bak -r ‘s/(archive|security).ubuntu.com/old-releases.ubuntu.com/g’ /etc/apt/sources.list After this, sudo apt-get update seems to run without a hitch. Of course if you do this, you’re accepting to […]