Skip to content

Instantly share code, notes, and snippets.

@ruionwriting
ruionwriting / README.md
Last active June 19, 2024 17:59
LogiOps configuration for MX Master 3S

LogiOps configuration for MX Master 3S

LogiOps is an amazing projet - please donate.

TL;DR;

I've moved from MacOS (I also use Windows with this mouse) and I wanted to keep most of the behaviors I'm used too. Thinks that didn't work for me:

  • Gestures button dragging left/right switch desktops
  • Hold/release gestures buttom shows all apps in active desktop
@ruionwriting
ruionwriting / crawl-mssql-db.sql
Last active October 12, 2020 16:25
SQL Server: how to crawl all databases for data
-- selecting master database
USE master
GO
SET NOCOUNT ON
GO
CREATE TABLE #tmpTables (
TableName NVARCHAR(300) NULL,
TableId INT
@ruionwriting
ruionwriting / Logger.php
Last active December 20, 2015 13:29
Easy to use logging class for PHP taken from Chris Valleriani blog article.
<?php
/**
* +90% based on the article of Chris Valleriani
* http://chrisvall.com/coding/php-easy-to-use-logging-class-for-your-scripts
*
* My changes:
*
* - force default timezone;
* - defines a base dir for log files output
@ruionwriting
ruionwriting / PHP_I18N_basics.md
Last active December 20, 2015 13:29
Basics for setting up localized PHP applications using gettext functions.

Overview

Localizing/internationalizing any PHP application is easy through gettext functions. Basically you'll have a set of localization files (*.po) that have a binary format version (*.mo) across a simple and standard directory structure. Then gettext functions will use existing binary files based on current language locale.

Directory structure and localization files

locale/
├── en_US
│   └── LC_MESSAGES