Skip to content

Instantly share code, notes, and snippets.

View Gomez's full-sized avatar
🚲
Working from home

Steffen Lindner Gomez

🚲
Working from home
View GitHub Profile
# -*- coding: utf-8 -*-
"""
"""
import datetime
from email.mime.text import MIMEText
import requests
import smtplib
import sys
import os.path
before_script:
- /usr/bin/virtualenv .
- source bin/activate Ansible2100:
script:
- bin/pip install -r requirements.txt
- bin/debops-update
- ansible-galaxy install -nr requirements.yml --force -p ansible/roles/
- export PATH=$PATH:bin/
before_script: - /usr/bin/virtualenv . - source bin/activate Ansible2100: script: - bin/pip install -r requirements.txt - bin/debops-update - ansible-galaxy install -nr requirements.yml --force -p ansible/roles/ - export PATH=$PATH:bin/ - bin/debops --syntax-check
#!/bin/bash
set -e
export OC_PASS=test12
for ((j=1;j<=30;j++));
do
for ((i=1;i<=50;i++));
do
./occ user:add pomes_$i-$j --password-from-env -g tester_$j
done
@Gomez
Gomez / gist:ec31813c84a8e433c31f
Created February 7, 2015 10:09
Gitlab > debop move

Move Gitlab to a new server

This howto shows how to move a non-debops Gitlab Installation to debops managed install (and let debops do the upgrade).

You need a working debops gitlab install on a (new) server. See Getting started and debops.gitlab

To be able to import a backup both Gitlab Installations need be the same version:

@Gomez
Gomez / debopsbootstrap
Last active August 29, 2015 14:13
debops bootstap
We just have a root user so copy key to it:
ssh-copy-id root@debops1
Let debops bootstrap:
debops bootstrap -u root -l debops1
bootstrap works, we now let create the rest and user:

Keybase proof

I hereby claim:

  • I am gomez on github.
  • I am gomez (https://keybase.io/gomez) on keybase.
  • I have a public key whose fingerprint is AFA5 22C2 8C46 698A 7558 5BA3 6341 1B94 FD70 495B

To claim this, I am signing this object:

@Gomez
Gomez / gist:c188735b4713441010e5
Created September 12, 2014 08:30
change_user_lang.php
<?php
/** * ownCloud
*
* @author Steffen Linnder
* @copyright 2013 Steffen Lindner mail@steffen-lindner.de
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
@Gomez
Gomez / gist:ccac4442391561428810
Created July 4, 2014 13:42
convert-away-from-MyISAM.sh
DBNAME=DBNAME
DBUSER=DBUSER
DBPASS=DBPASS
# Used parenthesis for the initial 'mysql' command so we can have a heredoc and still
# pipe stdout back into mysql.
# The tail command skips the first line of output, so we have only the ALTER TABLE commands.
# After all that, pipe the output back into the mysql command.
(mysql -u$DBUSER -p$DBPASS $DBNAME << ENDSQL