Skip to content

Instantly share code, notes, and snippets.

View cyberbikepunk's full-sized avatar

Loic cyberbikepunk

  • France
  • 12:58 (UTC -12:00)
View GitHub Profile
@cyberbikepunk
cyberbikepunk / sshd_config
Last active September 12, 2015 13:06 — forked from pachacamac/sshd_config
sshd_config
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
@cyberbikepunk
cyberbikepunk / repo.sh
Last active September 12, 2015 15:48 — forked from james2doyle/create-repo.sh
Create a repo on Github from the command line
function repo() {
if [ $# -eq 2 ]; then
# name of repo to be created
PROJECTNAME="$1"
DESCRIPTION="$2"
POST="{\"name\":\"$PROJECTNAME\",\"description\":\"$DESCRIPTION\"}"
curl –sS -u 'cyberbikepunk' https://api.github.com/user/repos -d "$POST"
git remote add origin git@github.com:cyberbikepunk/$PROJECTNAME.git
echo "remote origin added"
else
@cyberbikepunk
cyberbikepunk / dpaste.de_snippet.py
Last active October 5, 2015 19:36 — forked from anonymous/dpaste.de_snippet.py
Quick Unittest Mock tutorial
my_singleton = None
class Foo(object):
def __init__(self):
pass
def do(arg):
@cyberbikepunk
cyberbikepunk / ElasticSearch.sh
Created June 18, 2016 11:42 — forked from ricardo-rossi/ElasticSearch.sh
Installing ElasticSearch on Ubuntu 14.04
#!/bin/bash
### USAGE
###
### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7
### ./ElasticSearch.sh will fail because no version was specified (exit code 1)
###
### CLI options Contributed by @janpieper
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch
@cyberbikepunk
cyberbikepunk / GitHub-Forking.md
Created June 27, 2016 15:53 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, when I started going through the process of forking and issuing pull requests, I had some trouble figuring out the proper method for doing so and made quite a few mistakes along the way. I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your