bazel query 'rdeps(..., //vistar/geo/qtdb:go_default_library)' --output package
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
| #install FlameGraph library | |
| cd /opt/ | |
| sudo git clone https://github.com/brendangregg/FlameGraph.git | |
| #make it accesible from any folder | |
| vim ~/.bashrc | |
| ##add these lines anywhere and exit vim (if you can) | |
| export FLAMEPATH=/opt/FlameGraph | |
| PATH=$PATH:$FLAMEPATH | |
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
| Music For Hackers | |
| == | |
| To a hacker, there's something distracting about booting up a GUI to listen to your tunes. You live your life in the terminal, you treat the mouse like a high voltage tap. | |
| So give these commands a run in the terminal, and toss on your headphones. | |
| sudo apt-get install mplayer | |
| echo "alias defcon-start='nohup mplayer http://sfstream1.somafm.com:6200 > /dev/null 1>&2 &'" >> ~/.bashrc | |
| echo "alias defcon-stop='killall -9 mplayer'" >> ~/.bashrc |
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
| // This seems way too difficult for what you would expect to be a pretty common task; | |
| // taking a search string from the user and finding documents which contain some or all of the terms | |
| // in the search string. | |
| // This function naively splits a search string into terms and finds documents | |
| // which contain some or all of the terms. Does not handle quoted terms as or ignore case as it should. | |
| public IEnumerable<SearchResult> Search(string searchString, string[] fields) | |
| { | |
| // Spit the search string and return an empty list if no search string was provided. | |
| if (string.IsNullOrEmpty(searchString)) return new List<SearchResult>(); |