Skip to content

Instantly share code, notes, and snippets.

View cfoellmann's full-sized avatar
🐶
Dogging on

Christian Foellmann cfoellmann

🐶
Dogging on
  • W&S Technik GmbH
  • Castrop-Rauxel, NRW, Germany
View GitHub Profile
const apiUrl = "https://www.ai-fitness.de/studios/castrop-rauxel"
let widget = await createWidget()
widget.backgroundColor = new Color("#777777")
if (!config.runsInWidget) {
await widget.presentSmall()
}
Script.setWidget(widget)
Script.complete()
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# Set-ExecutionPolicy RemoteSigned
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
filter:
excluded_paths:
- 'languages/*'
- 'lib/*'
- 'tests/*'
paths:
- 'inc/*'
- '*'
tools:
php_cpd:
@cfoellmann
cfoellmann / gist:d6f11180d159b545947e4aeed7194f19
Created October 9, 2016 12:35 — forked from ethitter/gist:4430520
WordPress MU Domain Mapping and the Customizer
Index: domain_mapping.php
===================================================================
--- domain_mapping.php (revision 688919)
+++ domain_mapping.php (working copy)
@@ -685,7 +685,7 @@
}
function redirect_to_mapped_domain() {
- global $current_blog, $wpdb;
+ global $current_blog, $wpdb, $wp_customize;
@cfoellmann
cfoellmann / DocBlocks-for-WP.php
Created February 26, 2014 19:52
DocBlocks collection for WP development
<?php
/**
* DocBlocks for WordPress
*
* Structural Elements:
* -- to be documented with DocBlocks --
*
* class
* function (including methods)
* variable
@cfoellmann
cfoellmann / posh
Last active January 21, 2016 21:56
provisioning chocolatey-test-environment
PS D:\chocolatey-test-environment> vagrant up > provision.log
The following WinRM command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
powershell -ExecutionPolicy Bypass -OutputFormat Text -file c:\tmp\vagrant-shell.ps1
Stdout from the command:

Keybase proof

I hereby claim:

  • I am cfoellmann on github.
  • I am cfoellmann (https://keybase.io/cfoellmann) on keybase.
  • I have a public key whose fingerprint is 3B7F 6B3C 54BF 0A75 C8D9 BF27 896B 7AEE BBC5 717A

To claim this, I am signing this object:

@cfoellmann
cfoellmann / vvv-installer.ps1
Last active August 29, 2015 14:04
VVV Installer for Windows via PowerShell
<#
# ==============================================================================
#
# Varying Vagrant Vagrants for Windows
#
# ==============================================================================
@todo VBoxManage extpack install <.vbox-extpack> --replace # https://www.virtualbox.org/manual/ch08.html#vboxmanage-extpack
#>
@cfoellmann
cfoellmann / plugins.md
Last active August 29, 2015 14:04
NetBeans PHP bundle

NetBeans 8 fresh installation (netbeans-8.0-php-windows.exe 2014-08-03)

fresh-install

  • Plugins: 42
  • Active: 41

Deactivated unnecessary plugins - a minimal version

deactivated

[28-Jul-2014 09:30:06 UTC] PHP Parse error: syntax error, unexpected end of file in /srv/www/wpmu-trunk/wp-content/themes/zephyr/includes/theme-template.php on line 281