Skip to content

Instantly share code, notes, and snippets.

Avatar

Andreas Döbeling ADoebeling

View GitHub Profile
@ADoebeling
ADoebeling / fudforum-attach-export.sql
Last active Jul 5, 2016
How to export *.atch-Files from FudForum 2.6.0 / eGroupware 1.0 with with original filename/extension?
View fudforum-attach-export.sql
# 1.) Generate Bash-Script in MySQL
SELECT concat("mv ", id, ".atch \"", original_name, "\"") FROM phpgw_fud_attach
# 2.) Export as plain-text
# 3.) Insert result into rename.sh and add chmod +x
# 4.) Run rename.sh :)
View contao.robots.txt
User-agent: *
Disallow: /check/
Disallow: /contao/
Disallow: /system/
Disallow: /templates/
Disallow: /vendor/
Disallow: /share/index.php
Disallow: /build.xml
Disallow: /composer.json
Disallow: /composer.lock
View github-basiswissen.sh
# Zum Verbinden auf mac
# Terminal starten
ssh SSH-BENUTZERNAME@DOMAINNAME
# Repariert die SSH-Berechtigung in einem Quota, einmal täglich
chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
# Gibt Übersicht über alle Änderungen seit letztem Checkin
git status
@ADoebeling
ADoebeling / gitAutoCommit.sh
Last active Aug 29, 2015
Simple shellscript for updating .gitignore, auto-commit and push all changes to github
View gitAutoCommit.sh
#!/bin/sh
# GIT Auto-Commit
#
# @author Andreas Doebeling <ad@1601.com>
# @copyright 1601.production siegler&thuemmler ohg
# @link http://www.1601.com
# @link http://xing.doebeling.de
# @version 0.1.150502_1ad
@ADoebeling
ADoebeling / README.MD
Last active Mar 16, 2016
Stored in the dir about /htdocs/ it will dump the mysql-db that's configured in the contao localconfig.php
View README.MD

1601.com contaoMysqlDump

Setup-instruction

  • Switch into www-dir (above htdocs) of your project

  • Download this script:
    git clone git@gist.github.com:e78e9bafda5e1e1ff9e9.git

  • Rename folder:

@ADoebeling
ADoebeling / 1601_cmsBackup.sh
Last active Sep 15, 2015
Backup eines CMS
View 1601_cmsBackup.sh
# How to backup a CMS
#
# @Author: Andreas Doebeling <ad@1601.com>
# @Copyright: 1601.communication gmbh
# @Link: http://www.1601.com
# Switch to customer-folder
cd /$PATH/
# Check the current mySQL-Config
@ADoebeling
ADoebeling / .htaccess
Last active Aug 8, 2017
.htaccess-defaults
View .htaccess
# .htaccess-defaults
# Some often used .htaccess-parameters
#
# @Author: Andreas Doebeling <ad@1601.com>
# @Copyright: 1601.communication gmbh
# @Link: http://www.1601.com
# @Link: http://xing.doebeling.de
# Always required at 1601-Hosting
RewriteEngine on
You can’t perform that action at this time.