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 / modission_reset_3111.php
Last active April 18, 2024 04:03
Reset modules and permissions to the standard set for phpBB 3.1.x. May be useful if upgrading from 3.0.x and there is an error about a missing module, or language keys, such as, ACP_SOME_MOD, are visible in a control panel. Does not remove all database changes from MODs, it is not a database cleaner, it just removes non standard permissions and…
<?php
/***
* Usage: Download and unzip the file, upload it to your Board's root (i.e.: www.mydomain.com/phpBB3/)
* Point your browser to i.e.: www.mydomain.com/phpBB3/modission_reset_3111.php) and follow instructions.
*
* Version 2.2.6 (3Di in 17-Jul-2017 for phpBB 3.1.11) - Oyabun1 2015
*
* This script is free software. It comes without any warranty.
* license http://opensource.org/licenses/GPL-2.0 GNU General Public License v2.
*
@3D-I
3D-I / sos_admin.php
Last active May 15, 2023 18:02
For phpBB [3.1][3.2] - Gives a SOS admin account in order to fix some things.
<?php
/**
* Usage: --> make sure you have a backup of your Database before to run this tool!
* Download and/or unzip the file, upload it to your Board's root (i.e.: www.mydomain.com/phpBB3/)
* Point your browser to i.e.: www.mydomain.com/phpBB3/sos_admin.php), it auto-destroys itself once ran.
*
* This file will create an admin user named Admin1 with a password of admin. From that point you should be
* able to get into the ACP.
* As soon as you have done this, use the temporary admin account to change the details on the original admin
* account, then delete the temporary account.
@3D-I
3D-I / modission_reset_325.php
Last active February 9, 2022 22:25
phpBB 3.2.5 ONLY! - Delete Non-standard Modules and Permissions, and AutoMOD.
<?php
/***
* Usage: Download and unzip the file, upload it to your Board's root (i.e.: www.mydomain.com/phpBB3/)
* Point your browser to i.e.: www.mydomain.com/phpBB3/modission_reset_325.php)
* and follow instructions.
*
* Version 3.0.4 by 3Di in 10-Feb-2019 for phpBB 3.2.5 - (Oyabun1 2015 for 3.1.x)
*
* This script is free software. It comes without any warranty.
* license http://opensource.org/licenses/GPL-2.0 GNU General Public License v2.
@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
@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 / 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:
#!/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 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_';
@3D-I
3D-I / sos_admin30.php
Created May 8, 2016 00:52
For phpBB 3.0.x - Gives a SOS admin account in order to fix some things.
<?php
/**
* Usage: --> make sure you have a backup of your Database before to run this tool!
* Download and/or unzip the file, upload it to your Board's root (i.e.: www.mydomain.com/phpBB3/)
* Point your browser to i.e.: www.mydomain.com/phpBB3/sos_admin30.php), it auto-destroys itself once ran.
*
* This file will create an admin user named Admin1 with a password of admin. From that point you should be
* able to get into the ACP.
* As soon as you have done this, use the temporary admin account to change the details on the original admin
* account, then delete the temporary account.
@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