Skip to content

Instantly share code, notes, and snippets.

@mleemj
mleemj / web-servers.md
Created March 15, 2020 17:28 — 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
@mleemj
mleemj / cloudSettings
Created March 23, 2019 16:36 — forked from reintroducing/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-03-12T20:07:58.263Z","extensionVersion":"v3.2.7"}
@mleemj
mleemj / ConsumerExample.scala
Created February 25, 2018 03:32 — forked from fancellu/ConsumerExample.scala
Kafka Producer/Consumer Example in Scala
import java.util
import org.apache.kafka.clients.consumer.KafkaConsumer
import scala.collection.JavaConverters._
object ConsumerExample extends App {
import java.util.Properties
@mleemj
mleemj / .bash_profile
Created July 17, 2017 19:55 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management