Skip to content

Instantly share code, notes, and snippets.

View johappel's full-sized avatar

Joachim Happel johappel

  • Comenius Institut
  • Germany
View GitHub Profile
@johappel
johappel / Und alle werden satt – Schritt 2 Begreifen.md
Created November 1, 2024 13:52
In diesem Schritt geht es um die Reflektion zu Veränderung der Ernährung bei sich und in aller Welt u.a. mithilfe eines Permakultur-Beispiels in Malawi.

Folie 1: Einleitung - Die großen Religionen

  • Die großen Religionen der Welt sind das Christentum, der Islam, der Hinduismus, der Buddhismus und das Judentum.
  • Religion spielt eine wichtige Rolle in der Geschichte, Kultur und im Alltag vieler Menschen.
  • Religiöse Traditionen bieten Antworten auf die grundlegenden Fragen des Lebens.

Folie 2: Das Christentum

  • Das Christentum ist die größte Religion der Welt mit etwa 2,3 Milliarden Anhängern.
  • Die heilige Schrift der Christen ist die Bibel, bestehend aus Altem und Neuem Testament.
import requests
urlFrom = 'https://cloud.domainfrom.tld'
authFrom = ('username', 'password')
urlTo = 'https://nextcloud.domainto.tld'
authTo = ('username', 'password')
headers={'OCS-APIRequest': 'true', 'Content-Type': 'application/json'}
@johappel
johappel / main.py
Created January 4, 2024 06:18 — forked from mberman84/main.py
OpenChat Code
import requests
import json
import gradio as gr
url = "http://localhost:11434/api/generate"
headers = {
'Content-Type': 'application/json',
}
@johappel
johappel / README.md
Created December 17, 2020 00:22 — forked from bekce/README.md
ldap server with mysql backend

I wanted to build an LDAP server that queries a MySQL server to fetch users and check their passwords. It is mainly used for old software that does not work with custom OAuth2 providers. Redmine is an example of this.

Instructions:

  1. Create the database and table with insert.sql
@johappel
johappel / full-page-horizontal-accordion.markdown
Created December 11, 2018 14:23
Full Page Horizontal Accordion
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@johappel
johappel / website_parser.php
Created October 18, 2016 13:38
A Website parser class
<?php
/**
* A Website parser class
*
* Grab website contents and extracts all hyper links and image sources
*
* @package WebsiteParser
* @author Morshed Alam <morshed201@gmail.com>
* @link http://www.scripts.morshed-alam.com/scrapping/
* @website http://morshed-alam.com
@johappel
johappel / ___jhplugin.php
Last active June 27, 2016 14:42
wp_mini_test_plugin
<?php
/*
Plugin Name: jh plugin
Description: jh_plugin
Author: Joachim
Author URI: http://joachim-happel.de
License: A "Slug" license name e.g. GPL2
*/
function jh_plugin(){
/** your code goes here ...**/