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 / .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 / 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
<?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 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)
@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 / 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: