Skip to content

Instantly share code, notes, and snippets.

@hadisfr
hadisfr / ConfluenceRLT.md
Last active October 10, 2025 08:19
wrinting Right to Left Persian/Arabic texts in Atlassian Confluence

Confluence RLT

Adding RTL Macro

  1. go to Confluence Administration
  2. go to User Macros page under Configuration part
  3. click on Create a User Macro to add a new macro
  4. create RTL Section macro
  • use rtl-section as Macro Name
@nrollr
nrollr / MySQL_macOS_Sierra.md
Last active September 27, 2025 02:50
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@ksimka
ksimka / inarray_flipisset_arraysearch.php
Created March 4, 2015 13:24
in_array vs array_flip+isset vs array_search
<?php
$a = [];
//$s = 123456;
$s = 's6tbdfgj222dJGk';
$rs = str_repeat("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 10);
$numGen = function() {
return rand(1, 9999999);
};
@hofmannsven
hofmannsven / README.md
Last active October 2, 2025 20:17
Git CLI Cheatsheet