https://unix.stackexchange.com/questions/139089/how-to-read-first-and-last-line-from-cat-output
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
# Removing PPAs in Ubuntu | |
sudo apt-add-repository --remove ppa:iaz/battery-status |
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
# Update VMware kernel modules after upgrading your Linux kernel | |
# Depending on your current kernel version, linux-headers-3.8.0-29-generic might be something else (i.e. 3.8.0-31) | |
# | |
# References: | |
# http://mergy.org/2013/03/three-tips-to-get-vmware-workstation-9-going-on-kernel-3-8-0/ | |
# http://askubuntu.com/questions/288373/vmplayer-problem-vmware-kernel-module-updater-doesnt-run-since-13-04-upgrade | |
# | |
sudo ln -s /usr/src/linux-headers-3.8.0-29-generic/include/generated/uapi/linux/version.h /usr/src/linux-headers-3.8.0-29-generic/include/linux/version.h | |
sudo /usr/bin/vmware-modconfig --console --install-all |
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 | |
# | |
# Getting the last 'n' characters of a string | |
# i.e. for getting the last 16 characters of all files (useful when dealing | |
# with Youtube downloads) | |
ls | awk '{print substr($0, length($0) - 15, length($0))}' |
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 | |
# Recursively adding write permissions for the group | |
chmod -R ug+rw ./directory/ | |
# <OR> | |
chmod --recursive ug+rw ./directory/ |
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
# How do you view quora links without logging in? | |
https://www.quora.com/Topic/this-is-the-question | |
# Add ?share=1 to the end of the URL | |
https://www.quora.com/Topic/this-is-the-question?share=1 |
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
# Non-interactive MPUT (i.e. doing MPUT without getting prompted for a Y/N for each file) | |
ftp -i the.server.you.are.connecting.to.com | |
MPUT /path/to/files/* | |
<or> |
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
# write, writing, towrite | |
Write about how to do multiline SMS with chan_dongle and SendDongleSMS() | |
ssh-keygen (rsa vs dsa)???? Does it make any difference???? | |
Compare difflib to pylevenshtein to hashlib for simple text similarity analysis (i.e. how similar is Kihara to Kiara?) | |
- pylevenshtein (code.google.com/p/pylevenshtein/) | |
- hashlib | |
- difflib |
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
chromeext: See just one css rule for a particular element at a time (i.e. background-image) | |
chromeext: Get all links on a page, automatically put in clipboard | |
desktop-app: copy/clipboard history |
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
wget -E -H -k -K -p http://example.com/site/page-you-want-to-mirror.html |
OlderNewer