Skip to content

Instantly share code, notes, and snippets.

View SamSharaf's full-sized avatar

Sam Sharaf SamSharaf

  • South Bay area
View GitHub Profile
@SamSharaf
SamSharaf / web-servers.md
Created January 5, 2020 20:43 — 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
@SamSharaf
SamSharaf / bobp-python.md
Created October 5, 2019 00:27 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@SamSharaf
SamSharaf / cloudSettings
Last active December 4, 2020 19:02
Visual Studio Code Settings Sync Gist with gregor fraiser java
{"lastUpload":"2020-03-27T20:26:40.274Z","extensionVersion":"v3.4.3"}
@SamSharaf
SamSharaf / setup_mac_dev.sh
Created September 14, 2018 02:21 — forked from HannesHolste/setup_mac_dev.sh
Setup a new mac with basic dev tools and applications like Google Chrome, leaning on homebrew where possible (except for python -- uses conda)
# Mac OSX development setup (data science, python)
# v1.0
cd $HOME
echo "This script sets up a basic software eng / data science environment on Mac OSX."
echo -n "You can edit this file to customize what should be installed."
echo "Exit to do so via [CTRL-C], otherwise press [ENTER] to continue..."
read
USER_DIR=$(pwd | xargs echo -n)
echo "Requesting admin permissions..."
sudo su -