Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
😜 Buried by a certain volume of code 🤓

3Di 3D-I

💭
😜 Buried by a certain volume of code 🤓
View GitHub Profile
@3D-I
3D-I / gist:fedf41b6565861e706e5adf69225771b
Created Mar 14, 2021 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:fedf41b6565861e706e5adf69225771b

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
View studio
#!/bin/bash
#
# Brought to you by phpBB Studio © 2020 ( phpbbstudio.com )
#
current=$(git symbolic-ref --short -q HEAD)
function markup {
local bold=1
local dim=2
local line=4
@3D-I
3D-I / test_config.php
Created Nov 14, 2020 — forked from gijsmartens/test_config.php
phpBB Functional test config example
View test_config.php
<?php
// This file should be located as: tests/test_config.php
// So it will be placed after the RUNNING_TESTS.md file.
$dbms = 'phpbb\\db\\driver\\mysqli'; # Change this when needed
$dbhost = 'localhost';
$dbport = '';
$dbname = 'db_name'; # Change this
$dbuser = 'db_username'; # Change this
$dbpasswd = 'db_password'; # Change this
$table_prefix = 'phpbb_';
@3D-I
3D-I / sqlexplain.yml
Created Oct 29, 2019
Enable SQL explain and load time in phpBB 3.3.x
View sqlexplain.yml
parameters:
debug.load_time: true
debug.sql_explain: true
debug.memory: true
View chunck_size.php
<?php
/**
* Change get_chunk_size() calculation to correctly calculate limits without
* letting a zero "unlimited" value always win. Also ensure get_chunk_size()
* can only return zero if all of the limits were in fact set to unlimited.
*/
$max = 0;
$limits = [100, 200, 300];
@3D-I
3D-I / fix-left-right-ids.php
Created Jul 4, 2018
MAKE A BACKUP FIRST! Repairs the tree structure of the forums and modules for phpBB 3.2.x
View fix-left-right-ids.php
<?php
/**
* Use at your own risk! Do a DB backup first!
*.
* This file is released as is, no warraties OF ANY SORT.
*
* -------------------------------------------------------
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
View CSS for <sup> and <sub>
sub, sup {
/* Specified in % so that the sup/sup is the
right size relative to the surrounding text */
font-size: 75%;
/* Zero out the line-height so that it doesn't
interfere with the positioning that follows */
line-height: 0;
/* Where the magic happens: makes all browsers position
@3D-I
3D-I / convert-avatars.php
Created Oct 20, 2017 — forked from tierra/convert-avatars.php
phpBB 3.1 script that fetches all remote avatars, and converts them to uploaded avatars hosted locally.
View convert-avatars.php
<?php
/**
* Converts all phpBB 3.1 remote avatars to uploaded avatars.
*
* To use this script:
*
* 1. Copy this file into the root of your phpBB installation.
* 2. Run the script from the command line: php convert-avatars.php
*
* Any avatar will be skipped if any errors come up, like these:
@3D-I
3D-I / Releasing Steam Suite Group phpBB extension 1.0.0-RC1.md
Last active Aug 29, 2017
Releasing Steam Suite Group phpBB extension 1.0.0-RC1
View Releasing Steam Suite Group phpBB extension 1.0.0-RC1.md

General

  • Make sure it is installable and full working on a fresh 3.2.1
  • Make sure it is installable and full working on a fresh 3.1.11
  • Review every single file for comments/typos or glitches of any sort
  • Update composer.json with the current date
  • Update ext.php and the core code to force/check the install starting from 3.2.1 or 3.1.9 as usual
  • Merge master to 1.0.0-rc1 branch (Private repo)
  • Create a local archive
  • Create the branch v1.0.0-rc1 (Public repo)
@3D-I
3D-I / req.php
Created May 29, 2017
Steamsuite ext - Requirements check-in
View req.php
<?php
/**
*
* Steam suite. An extension for the phpBB Forum Software package.
*
* @copyright (c) 2017, 3Di, http://3di.space/32/
* @license GNU General Public License, version 2 (GPL-2.0)
*
* Requirements' check-in
*