Skip to content

Instantly share code, notes, and snippets.

View calebkiage's full-sized avatar

Caleb Kiage calebkiage

  • Nairobi
  • 12:30 (UTC +03:00)
View GitHub Profile
@calebkiage
calebkiage / web-servers.md
Created May 5, 2017 08:46 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@calebkiage
calebkiage / svg2ico.sh
Created January 28, 2017 02:32 — forked from azam/svg2ico.sh
Convert SVG to ICO using ImageMagick, with transparent background and multi-size icons
convert -density 384 -background transparent favicon.svg -define icon:auto-resize -colors 256 favicon.ico
# http://wiki.apache.org/solr/FAQ#How_can_I_delete_all_documents_from_my_index.3F
# http://wiki.apache.org/solr/UpdateXmlMessages#Updating_a_Data_Record_via_curl
curl http://index.websolr.com/solr/a0b1c2d3/update -H "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>'