View Trellis WSL.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Do this step by step. | |
# WSL: https://learn.microsoft.com/de-de/windows/wsl/install | |
# Trellis-Cli: https://github.com/roots/trellis-cli | |
# install brew (packet manager) - Just for trellis-cli. | |
# If you don't have already probably easier to just download and add to Path... | |
sudo apt update | |
sudo apt-get install build-essential curl file git | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" |
View get-user-logins.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Get last login time of WordPress users. | |
* WordPress stores the last time a user logged in in a serialized array in the usermeta - table. | |
* Your prefix might be different (xyz_usermeta instead of wp_usermeta). | |
* @see https://shocksolution.com/2019/04/16/find-last-login-time-for-wordpress-users-in-the-sql-database/ | |
*/ | |
select | |
wu.user_login, | |
metatable.*, | |
FROM_UNIXTIME(metatable.login_time) |
View convert-myisam-to-innodb.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Original Author Mike https://guides.wp-bullet.com | |
# Edited by Vitus Schuhwerk | |
# Purpose - Convert MyISAM tables to InnoDB with WP-CLI | |
# You can run multiple instances of this like this: | |
# - "bash scriptname 4 0" convert tables 0, 4, 8, ... | |
# - "bash scriptname 4 1" convert tables 1, 5, 9, ... | |
# - "bash scriptname 4 2" convert tables 2, 6, 10, ... | |
# - "bash scriptname 4 3" convert tables 3, 7, 11, ... |
View composer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "spaces/more-composer-dependencies", | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "https://wpackagist.org" | |
} | |
], | |
"require": { | |
"wpackagist-plugin/acf-to-rest-api": "3.*", |
View composer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "spaces/more-composer-dependencies", | |
"require": { | |
"psr/container": "^1.0" | |
} | |
} |
View timing things.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Spaces; | |
require dirname( __DIR__ ) . '/vendor/autoload.php'; | |
/** | |
* @see https://github.com/smhg/date-timespan-php | |
*/ | |
use Timespan\Timespan; |
View font-awesome-4.7.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"4.7.0": [ | |
"fa-500px", | |
"fa-address-book", | |
"fa-address-book-o", | |
"fa-address-card", | |
"fa-address-card-o", | |
"fa-adjust", | |
"fa-adn", | |
"fa-align-center", |
View flatpickr php date.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Localize a Datepicker / Timepicker (flatpickr) | |
* Format PHP datestring to js and vice versa | |
* | |
* fromPhp is the variable that gets passed via wordpress wp_localize_script | |
* fromPhp.dateFormat get_option( 'date_format' ); | |
* fromPhp.timeFormat get_option( 'time_format' ); | |
*/ | |
//https://github.com/kartik-v/php-date-formatter |
View Codebeispiele.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Platzhalter in {} sind zu ersetzen! | |
Externer Link über die Schaltfläche des ILIAS-Editors. Link öffnet sich in neuem Fenster/Tab, je | |
nach Browser-Einstellung des Users: | |
[xln url="{URL des Space}"]{anzuzeigender Text}[/xln] | |
Beispiel: | |
[xln url="https://llc.th-koeln.de/ipk/"]Space: Interne Projektkoordination[/xln] |
NewerOlder