Skip to content

Instantly share code, notes, and snippets.

function command1(params) {
if (params.length > 0) {
console.log('command1 --> ', params);
}
return 0;
}
function command2(params) {
if (params.length > 0) {
console.log('command2 --> ', params);
@Ankirama
Ankirama / gitlab.conf
Created November 14, 2016 23:24
gitlab vhost for apache (from gitlab doc but cant remember where I got it)
# This configuration has been tested on GitLab 8.2
# Note this config assumes unicorn is listening on default port 8080 and
# gitlab-workhorse is listening on port 8181. To allow gitlab-workhorse to
# listen on port 8181, edit /etc/gitlab/gitlab.rb and change the following:
#
# gitlab_workhorse['listen_network'] = "tcp"
# gitlab_workhorse['listen_addr'] = "127.0.0.1:8181"
#
#Module dependencies
# mod_rewrite
@Ankirama
Ankirama / firewall.sh
Created November 14, 2016 23:07
Firewall iptables basic rules
#!/bin/sh
### BEGIN INIT INFO
# Provides: Firewall maison
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start:
# Default-Stop:
# X-Interactive: false
# Short-Description: Firewall maison

Utiliser blih / git pour rendre un projet

Configurer son compte blih

Pour pouvoir utiliser blih / git il faut configurer avant tout sa paire de clé SSH

Voici les étapes:

  • Génération d'une paire de clé ssh: