Skip to content

Instantly share code, notes, and snippets.

@agragregra
agragregra / modx_ace_material.txt
Last active December 6, 2022 18:15
MODx Ace Material Theme
MODx Ace Material Theme
1. Системные настройки > Пространство имен "ace":
Размер шрифта: 13px
Высота области редактирования: 560
Невидимые символы: Да
Мягкая табуляция: Нет
Размер табуляции: 2
Тема редактора: tomorrow_night
@agragregra
agragregra / userChrome.css
Last active February 4, 2018 11:03
Firefox DevTools font size
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("chrome://browser/content/devtools/**/.*"){
.devtools-monospace {
font-size: 13pt!important;
}
}
@agragregra
agragregra / httpd-vhost.conf
Created March 27, 2016 05:28
XAMPP httpd-vhost.conf
<VirtualHost *:80>
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/"
ServerName localhost
<Directory "/Applications/XAMPP/xamppfiles/htdocs/">
Options Indexes FollowSymLinks Includes execCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
@agragregra
agragregra / jquery-active.js
Last active April 7, 2022 19:27
jQuery Active Menu
//Active menu
$("li a").each(function() {
if (this.href == window.location.href) {
$(this).addClass("active");
}
});
@agragregra
agragregra / gist:7ae9c76e895b3bacd944
Last active December 4, 2022 16:43
Sublime Text My Settings
// Keymap (Windows Users):
[
{ "keys": ["alt+shift+f"], "command": "reindent" },
]
// Settings:
{
"auto_complete": false,
"bold_folder_labels": true,
"close_windows_when_empty": false,
@agragregra
agragregra / gist:358ff867f1fce031fd72
Last active May 18, 2022 14:48
ffmpeg Scree Capture + Audio/Video Sync
ffmpeg -f alsa -ac 2 -i default -f x11grab -r 60 -s $(xwininfo -root | grep 'geometry' | awk '{print $2;}') -s 1366x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -threads 0 output.mkv
@agragregra
agragregra / gulpfile.js
Created January 15, 2016 10:36 — forked from martinwolf/gulpfile.js
Jekyll, Browsersync and Gulp
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
concat = require('gulp-concat'),
notify = require('gulp-notify'),
@agragregra
agragregra / jquery-active-mnu.js
Created January 12, 2016 14:53
jQuery active menu
var url = window.location.pathname,
urlRegExp = new RegExp(url.replace(/\/$/,"") + "$");
$(".box-mnu a").each(function(){
if(urlRegExp.test(this.href.replace(/\/$/,""))){
$(this).addClass("active");
}
});
@agragregra
agragregra / mfp-blurred.css
Last active July 4, 2023 22:22
Magnific-Popup Blurred Background
CSS:
* {
transition: filter .25s ease;
}
.mfp-wrap ~ * {
filter: blur(1px);
}
Sass:
*
@agragregra
agragregra / wordpress-get-all-fields.php
Last active October 23, 2019 11:28
WordPress Get All Custom Fields without _edit_lock, _edit_last, _thumbnail_id
<?php
$custom_fields = get_post_custom($post->ID);
foreach ( $custom_fields as $field_key => $field_values ) {
if(!isset($field_values[0])) continue;
if(in_array($field_key,array("_edit_lock", "_edit_last", "_thumbnail_id"))) continue;
echo "<strong>$field_key:</strong> $field_values[0] <br>";
}