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
sudo fsck -fvy /dev/sdb5 | tee ~/sdb5_results | |
# try -fvn |
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/sh | |
# Execute for every subdir | |
for dir in ~/projects/git/* | |
do | |
(cd $dir && git pull) | |
done | |
Find text | |
find / -type f -exec grep -H 'text-to-find-here' {} \; |
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 | |
# Make sure you change the following variable | |
# to match the network interface you would like to monitor | |
nic=en0 | |
echo "CPU information:" | |
sysctl -n machdep.cpu.brand_string | |
# Find current bandwith in each pipe |
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
$ git clone --mirror https://github.com/yuchdev/entropy_calculator.git | |
$ cd entropy_calculator.git | |
$ git push --mirror https://bitbucket.org/ycherkasov/entropy_calculator.git |
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
git remote set-url --add --push origin https://github.com/yuchdev/entropy_calculator.git | |
git remote set-url --add --push origin https://bitbucket.org/ycherkasov/entropy_calculator.git |
NewerOlder