Check These Out
Fix's centos 6.2 yum's error:
could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64 error was 14: PYCURL ERROR 77 - "Problem with the SSL CA cert (path? access rights?)"
Error: Cannot retrieve metalink for repository: epel-source. Please verify its path and try again
yes 6 (tail from 6th line)
I like it sorted...
2> /dev/null was also needless, since our pipes already select stdin, only.
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Alternative1 (grep support):
pacman -Ss python | paste - - | grep --color=always -e '/python' | less -R
Alternative2 (eye-candy, no grep):
pacman --color=always -Ss "python" | paste - - | less -R
in ~/.bashrc:
pkg-grep() { pacman -Ss "$1" | paste - - | grep --color=always -e "${2:-$1}" | less -R ; }
pkg-search() { pacman --color=always -Ss "python" | paste - - | less -R; }
Searches bash-history in reverse order (last entered commands first). Pressing ctrl+r again shows the next matching entry.
switch to previous directory or toggle
In general, this is actually not better than the "scrot -d4" command I'm listing it as an alternative to, so please don't vote it down for that. I'm adding this command because xwd (X window dumper) comes with X11, so it is already installed on your machine, whereas scrot probably is not. I've found xwd handy on boxen that I don't want to (or am not allowed to) install packages on.
NOTE: The dd junk for renaming the file is completely optional. I just did that for fun and because it's interesting that xwd embeds the window title in its metadata. I probably should have just parsed the output from file(1) instead of cutting it out with dd(1), but this was more fun and less error prone.
NOTE2: Many programs don't know what to do with an xwd format image file. You can convert it to something normal using NetPBM's xwdtopnm(1) or ImageMagick's convert(1). For example, this would work: "xwd | convert fd:0 foo.jpg". Of course, if you have ImageMagick already installed, you'd probably use import(1) instead of xwd.
NOTE3: Xwd files can be viewed using the X Window UnDumper: "xwud <foo.xwd". ImageMagick and The GIMP can also read .xwd files. Strangely, eog(1) cannot.
NOTE4: The sleep is not strictly necessary, I put it in there so that one has time to raise the window above any others before clicking on it.