Skip to content

Instantly share code, notes, and snippets.

View butonic's full-sized avatar

Jörn Friedrich Dreyer butonic

View GitHub Profile
@butonic
butonic / contributions.php
Last active January 4, 2016 03:19
lists all your contributions via github api. including private repositories.
<?php
// parameters
$username = 'username';
$password = 'secret';
//how many days should be fetched?
$days = 7;
// functions
@butonic
butonic / app.php
Last active April 4, 2017 10:45
MyCSP app for ownCloud
<?php
/**
* ownCloud
*
* @author Jörn Friedrich Dreyer <[email protected]>
*
* @copyright Copyright (c) 2016, ownCloud, Inc.
* @license AGPL-3.0
*

Keybase proof

I hereby claim:

  • I am butonic on github.
  • I am butonic (https://keybase.io/butonic) on keybase.
  • I have a public key whose fingerprint is 5F7F 7F40 E732 009C 5E69 94EA 3F8C AA2A 1CD2 281A

To claim this, I am signing this object:

@butonic
butonic / oracle.sql
Created April 20, 2017 11:16
oracle queries
SELECT *
FROM all_constraints
WHERE constraint_name = 'SYS_C0010867';
SELECT *
FROM all_cons_columns
WHERE table_name = 'oc_preferences';
SELECT sess.process, sess.status, sess.username, sess.schemaname, sql.sql_text
FROM v$session sess,
#!/bin/bash
echo -n "GitHub User: "
read USER
echo -n "GitHub Password: "
read -s PASS
echo ""
echo -n "GitHub Repo (e.g. foo/bar): "
@butonic
butonic / migrate-groups.sh
Created August 18, 2025 10:45
migrate ownclouduuid to openclouduuid
#!/bin/bash
LDAP_URI="ldaps://localhost:9235"
BASE_DN="ou=groups,o=libregraph-idm"
BIND_DN="uid=libregraph,ou=sysusers,o=libregraph-idm"
LDIF_OUT="migrate-groups.ldif"
# Prompt for password
read -s -p "LDAP Password: " LDAP_PASS
echo ""
@butonic
butonic / nfs.yaml
Created August 18, 2025 10:48
nfs server for opencloud-compose
---
services:
# https://hub.docker.com/r/itsthenetwork/nfs-server-alpine
nfs:
image: itsthenetwork/nfs-server-alpine:12
container_name: nfs
restart: unless-stopped
privileged: true
environment:
- SHARED_DIRECTORY=/data