Skip to content

Instantly share code, notes, and snippets.

View sharondevop's full-sized avatar

Sharon Mafgaoker sharondevop

View GitHub Profile
@sharondevop
sharondevop / web-servers.md
Created March 6, 2018 03:45 — 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
@sharondevop
sharondevop / LFCS_study
Created November 18, 2017 10:22 — forked from gojun077/LFCS_study
LFCS Study Outline 2015.02.28
* LFCS Domains 2015.02
Note - the domains will change somewhat in March 2015. SW RAID
with mdadm will be removed
** The Command Line
*** Editing text files on the CLI
Covers the use of the basic text editors nano and gedit as well
as the advanced editors _vi_ and _emacs_
- nano
simple CLI-based text editor
@sharondevop
sharondevop / build_cross_gcc
Created June 22, 2017 12:12 — forked from preshing/build_cross_gcc
A shell script to download packages for, configure, build and install a GCC cross-compiler.
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.
@sharondevop
sharondevop / puias.rst
Created June 20, 2017 20:54 — forked from nico4/puias.rst
Install python2.7 on Centos 6 using PUIAS repository

Install Python2.7 on Centos with PUIAS

Create puias-computational.repo file:

$ vim /etc/yum.repos.d/puias-computational.repo

Paste the following code into the above file:

@sharondevop
sharondevop / python27_local_install.sh
Created June 18, 2017 16:12 — forked from ctokheim/python27_local_install.sh
Bash (shell): Install local python
#!/bin/bash
#########################################
# Installing python and necessary packages
# locally. This script will install python
# into the ~/local/bin directory and install
# numpy + scipy
#########################################
# installing python 2.7.3