This file contains 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 code to implement a | |
*Producer-Consumer model which | |
*utilizes the Guarded Block | |
*paradigm. | |
*/ | |
import java.util.concurrent.*; | |
public class Driver3 { | |
public static DropBox dropbox = new DropBox(); | |
public static void main(String[] args) { |
This file contains 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
source ~/.rvm/scripts/rvm | |
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
alias ls="ls -Flarp | more" | |
fortune |
This file contains 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
#recursively format print all files using awk | |
ls -R | awk ' /:$/&&f{s=$0;f=0} /:$/&&!f{sub(/:$/,"");s=$0;f=1;next} NF&&f{ print s"/"$0 }' | |
#recursively show the size of files in MegaBytes | |
ls -Rl --block-size=M | |
#list files recursively along with their size in bytes | |
find . -type f -exec du -ab {} + | sort -n -r | less |