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 / reparse_bbcodes.php
Created April 13, 2016 01:09 — forked from Elsensee/reparse_bbcodes.php
Copied from STK for Olympus and customized to work on Ascraeus (phpBB 3.1). For me it works. Tell me if it works for you too. (Please be logged in as administrator if you call it)
<?php
/**
*
* @package Support Toolkit - Reparse BBCode
* @version $Id$
* @copyright (c) 2009 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
@3D-I
3D-I / core.php
Created November 9, 2016 01:32 — forked from cYbercOsmOnauT/core.php
The url params are cleaned by the order they are in the request This gets rid of unneeded 301 redirects
public function expected_url($path = '')
{
$path = empty($path) ? $this->phpbb_root_path : $path;
$params = array();
// Check the params by the order they are in the request
foreach($this->request->variable_names(\phpbb\request\request_interface::GET) AS $get) {
$def = $this->seo_opt['zero_dupe']['redir_def'][$get];
if (($this->request->is_set($get, \phpbb\request\request_interface::GET) && $def['keep']) || !empty($def['force']))
{
@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 / 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:
@3D-I
3D-I / gitcom.md
Created January 2, 2022 01:12 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

git init
@3D-I
3D-I / .zshrc
Created January 2, 2022 01:12 — forked from jednano/.zshrc
source /usr/local/lib/python3.7/site-packages/powerline/bindings/zsh/powerline.zsh
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
export PATH="/usr/local/opt/python/bin:$PATH"
export GPG_TTY=$(tty)
# export START="$HOME/a"
# if [[ $PWD == $HOME ]]; then
# cd $START
# fi