Skip to content

Instantly share code, notes, and snippets.

View marius92mc's full-sized avatar

Marius-Constantin Melemciuc marius92mc

  • Bucharest, Romania
View GitHub Profile
@marius92mc
marius92mc / git.css
Last active December 4, 2015 08:56 — forked from neilgee/git.css
Git commands and tutorial
Awesome git tutorial, learn by doing in browser.
https://try.github.io/levels/1/challenges/1
/* Set up Git Configuration */
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git config --global core.editor "vi"
git config --global color.ui true
@marius92mc
marius92mc / .gitconfig
Created December 9, 2016 18:35 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
#! /usr/bin/env python
import fileinput
import argparse
from operator import itemgetter
parser = argparse.ArgumentParser()
parser.add_argument('--target-mb', action = 'store', dest = 'target_mb', default = 61000, type = int)
parser.add_argument('vmtouch_output_file', action = 'store', nargs = '+')
args = parser.parse_args()
@marius92mc
marius92mc / osx-10.10-setup.md
Created April 7, 2017 00:09 — forked from kevinelliott/osx-10.10-setup.md
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@marius92mc
marius92mc / emacs.md
Created April 14, 2017 11:05 — forked from adimanea/emacs.md
My emacs tips, tricks & config
@marius92mc
marius92mc / tmux-cheatsheet.markdown
Created April 23, 2017 17:19 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@marius92mc
marius92mc / README.md
Created July 26, 2017 21:43 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@marius92mc
marius92mc / bobp-python.md
Created November 13, 2017 22:29 — 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
@marius92mc
marius92mc / main.go
Created January 7, 2018 15:12 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"