Skip to content

Instantly share code, notes, and snippets.

View malud's full-sized avatar

Marcel Ludwig malud

View GitHub Profile
@wikimatze
wikimatze / gist:9790374
Created March 26, 2014 18:43
Github Two-Factor Authentication Failed For HTTPS

I heard from GitHub Two-Factor Authentication](https://github.com/blog/1614-two-factor-authentication) nearly a couple of days ago when I was reading my RSS feed. I enabled it and couldn' push to any of my repositories anymore. Learn in this blog post how to fix it.

Two-Factor Authentication

"Is a process involving two stages to verify the identity of an entity trying to access services in a computer or in a network". Github solves this authentication with sending an SMS to a device which wants to push to their platform.

Enabling Two-Factor Authentication

@soarez
soarez / ca.md
Last active May 3, 2024 00:04
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@jeffgca
jeffgca / ghost_upstart.conf
Created October 22, 2013 00:09
An upstart script for ghost on Ubuntu 13.10
#!upstart
2 #
3 # An example upstart script for running a Node.js process as a service
4 # using Forever as the process monitor. For more configuration options
5 # associated with Forever, see: https://github.com/nodejitsu/forever
6 #
7 # You will need to set the environment variables noted below to conform to
8 # your use case, and should change the description.
9 #
10 description "Example upstart script for a Node.js process"
@JeffreyWay
JeffreyWay / .vimrc
Last active January 22, 2024 11:42
My .vimrc file
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@skaag
skaag / redmine2.3inst.sh
Created May 9, 2013 14:43
Redmine 2.3 installation on Ubuntu 12.04 with RVM, Ruby 2.0, Passenger 4 and Nginx
# Install some system dependencies:
apt-get install build-essential openssl libcurl4-openssl-dev \
libreadline6 libreadline6-dev curl mysql-server libmysqlclient-dev git-core \
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev \
libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion \
pkg-config imagemagick joe libmagickwand-dev libmagickwand4
# Install Ruby via RVM (easiest!):
cd /root/
anonymous
anonymous / gist:4039400
Created November 8, 2012 15:14
State machine convention
/**
* State names are described as a enum or string constants if language doesn't support them (as3 for example).
*/
private enum State {
A, B, C
}
/**
* Current state is always private. If previous state is needed add
* private State prevState;
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 7, 2024 06:03
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@hisea
hisea / nginx
Created January 1, 2012 23:37
ubuntu passenger nginx init.d script
sudo cp nginx /etc/init.d/
sudo update-rc.d nginx defaults
sudo chmod +x /etc/init.d/nginx
/etc/init.d/nginx start