A word cloud from this list of most common city names created with D3 and D3 Word Cloud.
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
| # count port 80 connections | |
| netstat -alpen | grep -c :80 | |
| # watch connections, refresh every 5 seconds | |
| sudo watch -n5 -d 'netstat -alpen | grep -c :' |
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
| grep --exclude=*.{pyo,pyc,txt} -r STRING |
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
| var list = []; | |
| $('ul a').each(function(idx, item){ | |
| list.push({ | |
| href: $(item).attr('href'), | |
| text: item.textContent | |
| }); | |
| }); | |
| JSON.stringify(list, null, " "); |
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
| # DBpedia table | |
| csvcut -c 2 Film.csv | sed -e 's/(.*)$//' > film-titles.txt | |
| # wikitables CSV | |
| csvcut -c 1 List_of_Academy_Award-winning_films.csv | sed -e 's/(.*)//' | sed -e 's/\"//g' > film-titles.txt | |
| # fix names | |
| sed -e 's/|.*}//g' -e 's/{//' -i datasets/populated-places-locations.csv |
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
| # scan up to 1000 URLs | |
| arachni --link-count=1000 --report=afr:outfile=domain.tld.html http://domain.tld | |
| # convert existing afr report to html | |
| arachni --repload=domain.tld.afr --report=html:outfile=domain.tld.html |
This map shows the graph distance of each county from the Pacific or Atlantic coast; it is a recreation of a map posted to /r/dataisbeautiful using TopoJSON. Coastal counties are dark blue, while counties nine or more counties away from the coast are light yellow. (I opted not to reuse the original’s cycling color scale.)
See also the underlying graph.
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 apt-get purge brother-lpr-drivers-extra | |
| sudo apt-get autoremove | |
| sudo dpkg -i dcp135clpr-1.0.1-1.i386.deb | |
| sudo mkdir ls /var/spool/lpd | |
| sudo dpkg -i dcp135ccupswrapper-1.0.1-1.i386.deb |
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
| no_vat = final_amount * 100 / 119 |
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 easy_install -U distribute | |
| find . -type d -maxdepth 1 -exec virtualenv {} \; |