Skip to content

Instantly share code, notes, and snippets.

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

Paul Nike m4tlch

🏠
Working from home
  • Ukraine
View GitHub Profile
Deleted Field Tables keep multiplying
When you delete a field, if there is data in it, Drupal does a bit of a two-step shuffle to avoid locking the tables while it gets rid of them, so it moves them to other tables so it can go through them one at a time when cron runs.
Sometimes this process does not clean itself up. You will notice It by seeing the number of tables in your DB grow and the DB will contain lots of
tables like this
field_deleted_data_103
field_deleted_data_105
field_deleted_data_109
Ублюдок, мать твою, а ну иди сюда, говно собачье, а ну решил ко мне лезть, ты... засранец вонючий, мать твою. А?! ну иди сюда, попробуй меня трахнуть, я тебя сам трахну ублюдок, анонист чертов, будь ты проклят, иди идиот, трахать тебя за свою семью, говно собачье, жлоб вонючий, дерьмо, сука, падла, иди сюда мерзавец, негодяй, гад, иди сюда ты говно, жопа!
Опыт работы от 50 лет.
Вы должны победить дракона.
Ненормированный рабочий день.
Наличие прав на управление вертолетом.
Умение программировать на всех возможных языках.
Знание языка суахили не ниже уровня upper intermediate.
Расширение клиентской базы на 100500 человек в день.
Знание основ термоядерного синтеза.
Опыт в организации концертов Бориса Моисеева в Дагестане.
You can call 0 800 308 80 01 / +380 44 230 5101 44 230 5101 You can visit our support page at https://support.microsoft.com/en-us/contactus and choose services and apps
099 270 30 40 позвони и тебе все объясняет, автошкола в центре
<input onkeyup="value=value.replace(/[^0-9\.]/g,'')" />
<input onblur="if(value.match(/[^0-9\.]/)) raise_alert(this)" />
@m4tlch
m4tlch / gulpfile.js
Created February 17, 2016 09:23 — forked from sawadays0118/gulpfile.js
【gulp】livereloadxを実行する ref: http://qiita.com/sawadays0118/items/7e953244a9543d5b6be1
var gulp = require('gulp'),
exec = require('child_process').exec;
gulp.task('livereloadx', function(){
exec('livereloadx -s -p 8000');
});
gulp.task('livereloadx', ['livereloadx']);
@m4tlch
m4tlch / 01-gulpfile.js
Created February 17, 2016 10:40 — forked from markgoodyear/01-gulpfile.js
Comparison between gulp and Grunt. See http://markgoodyear.com/2014/01/getting-started-with-gulp/ for a write-up.
/*!
* gulp
* $ npm install gulp-ruby-sass gulp-autoprefixer gulp-cssnano gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-notify gulp-rename gulp-livereload gulp-cache del --save-dev
*/
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
cssnano = require('gulp-cssnano'),
@m4tlch
m4tlch / wget-files-cyrillic-friendly.sh
Created February 20, 2016 20:29 — forked from DmitrySandalov/wget-files-cyrillic-friendly.sh
Download all files from website using wget (+encoding)
#!/bin/zsh
wget -m -p -E -k -K -np --restrict-file-names=nocontrol http://site/path/
@m4tlch
m4tlch / drupal-colorbox.js
Created March 31, 2016 10:31
JS: Responsive ColorBox Drupal
/*
==========================================================================
$Colorbox Responsive
* How to make colorbox responsive
* see @ https://www.drupal.org/node/2154099
==========================================================================
*/
(function ($, Drupal, window, document, undefined) {
//Configure colorbox call back to resize with custom dimensions