Skip to content

Instantly share code, notes, and snippets.

@yurko
Last active May 30, 2018 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurko/d4766b1565f665aff1a3356795134fd7 to your computer and use it in GitHub Desktop.
Save yurko/d4766b1565f665aff1a3356795134fd7 to your computer and use it in GitHub Desktop.
shell
# kill by port
sudo kill -9 $(lsof -i :3000 -t)
# wget with range
wget --user user --password password http://example.com/{0..n}.jpg
# scp
scp dev@123.123.123.123:projects/dev.log /home/dev/dev.log
# Bulk rename
for f in *controller*; do mv $f $(echo $f | sed 's/^foo/bar/g'); done;`
# Symlinks
ln -s source target
find . -type l -ls
unlink /path/to # remove symlink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment