Skip to content

Instantly share code, notes, and snippets.

View Ibochkarev's full-sized avatar
🏠
Working from home

Bochkarev Ivan Ibochkarev

🏠
Working from home
View GitHub Profile
@splittingred
splittingred / .htaccess
Created April 9, 2012 21:48
Example of how to use new REST server class in MODX 2.3+
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule ^(.*)$ rest/index.php?_rest=$1 [QSA,NC,L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*)$ rest/index.php [QSA,NC,L]
</IfModule>
@rxaviers
rxaviers / gist:7360908
Last active June 17, 2024 00:05
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:
@anandslab
anandslab / advancedsettings.xml
Last active November 5, 2021 20:43
AdvacedSettings.xml for Kodi with MySQL and other tweaks.
<!-- General Settings -->
<advancedsettings>
<loglevel hide="true">-1</loglevel> <!-- Comment: Disables logging -->
<playcountminimumpercent>95</playcountminimumpercent>
<skiploopfilter>0</skiploopfilter> <!-- Comment: For RPi or similar use 16 or higher (low CPU usage) -->
<nodvdrom>true</nodvdrom>
<!-- MySQL Library -->
<videodatabase>
<type>mysql</type>
@icqparty
icqparty / gource-visualization-git-commit
Last active August 25, 2019 13:10
Визуализация активности Git репозитория
1.Установка gource
#sudo apt-get update
#sudo apt-get install gource
2. Запуск и создане исходного файла
#gource -f --highlight-all-users --multi-sampling /home/icqparty/DRIVE/Server/work_projects/leadroi.ru/.git/ -o source.ppm
3.Конвертирование ppm в mp4
#ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i source.ppm -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 dist.mp4 && rm viz.ppm
<div class='row ms2_product col-md-4' itemtype='http://schema.org/Product' itemscope>
<meta itemprop='description' content='[[+description:default=`[[+pagetitle]]`]]'>
<div class='prev'>
<a href='[[+uri]]'>
<img src='[[+thumb:default=`[[++assets_url]]components/minishop2/img/web/ms2_small.png`]]' itemprop='image'
alt='[[+pagetitle]]' title='[[+pagetitle]]'>
</a>
</div>
<h3 class='tm-title' itemprop='name'>[[+pagetitle]]</h3>
<div class='tm-product'>
<h1>[[*pagetitle]]</h1>
<div id='msProduct' class='row' itemtype='http://schema.org/Product' itemscope>
<meta itemprop='name' content='[[*pagetitle]]'>
<meta itemprop='description' content='[[*description:default=`[[*pagetitle]]`]]'>
<div class='span5 col-md-5 col-sm-6'>
[[!msGallery@bsMsGallery]]
</div>
<div class='span7 col-md-7 col-sm-5' itemtype='http://schema.org/AggregateOffer' itemprop='offers' itemscope>
<meta itemprop='category' content='[[#[[*parent]].pagetitle]]'>
@sepiariver
sepiariver / sample_csv_export.php
Last active January 16, 2023 11:53
Example export script to turn MODX Resources into CSV entries for importing in another site.
<?php
// Only run this via SSH
if (PHP_SAPI !== 'cli') return;
// Sometimes helpful if processing lots of Resources
ini_set('memory_limit', '2048M');
// Init @modx
@include(dirname(__FILE__) . '/config.core.php');
if (!defined('MODX_CORE_PATH')) define('MODX_CORE_PATH', dirname(__FILE__) . '/core/');
include_once (MODX_CORE_PATH . "model/modx/modx.class.php");
$modx= new modX();
@cronfy
cronfy / maintenance.html
Last active June 6, 2023 19:44 — forked from pitch-gist/gist:2999707
HTML: Техническое обслуживание сайта (503) (Simple Maintenance Page)
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Техническое обслуживание</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
@jamiemagique
jamiemagique / .eslintrc
Last active August 8, 2021 03:58
Pre commit JS and SCSS fixing via Husky, Lint-Staged and StyleLint with AirBnB linting.
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"extends": "airbnb",
"rules": {
"no-console":0,
"nomen": 0
@james2doyle
james2doyle / ios-chrome-devtools.md
Last active May 17, 2023 04:33
Enable remote debugging on the iOS simulator using Chrome Dev Tools

Install the tools:

brew install ios-webkit-debug-proxy

Run the simulator. And choose an iOS 10 device. The chrome remote debugging doesn't work with iOS 11 yet.

Enable the inspector