Skip to content

Instantly share code, notes, and snippets.

View 3D-I's full-sized 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 / req.php
Created May 29, 2017 22:19
Steamsuite ext - Requirements check-in
<?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
*
@3D-I
3D-I / Releasing Steam Suite Group phpBB extension 1.0.0-RC1.md
Last active August 29, 2017 01:50
Releasing Steam Suite Group phpBB extension 1.0.0-RC1

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 / convert-avatars.php
Created October 20, 2017 21:52 — forked from tierra/convert-avatars.php
phpBB 3.1 script that fetches all remote avatars, and converts them to uploaded avatars hosted locally.
<?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 / CSS for <sup> and <sub>
Created March 28, 2018 19:11 — forked from unruthless/CSS for <sup> and <sub>
CSS for <sub> and <sup>
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 / fix-left-right-ids.php
Created July 4, 2018 14:07
MAKE A BACKUP FIRST! Repairs the tree structure of the forums and modules for phpBB 3.2.x
<?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)
<?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 / sqlexplain.yml
Created October 29, 2019 12:38
Enable SQL explain and load time in phpBB 3.3.x
parameters:
debug.load_time: true
debug.sql_explain: true
debug.memory: true
@3D-I
3D-I / test_config.php
Created November 14, 2020 01:29
phpBB Functional test config example
<?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_';
#!/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 / gist:fedf41b6565861e706e5adf69225771b
Created March 14, 2021 17:28 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

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: