This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name AliExpress Improve | |
// @description Разные мелкие улучшения AliExpress: подсчёт общей цены, возвращение breadcrumb на верх | |
// @version 1.9.4 | |
// @author BaNru | |
// @run-at document-end | |
// @include https://*.aliexpress.com/* | |
// @match https://*.aliexpress.com/* | |
// @grant GM_xmlhttpRequest | |
// @downloadURL https://gist.githubusercontent.com/banru/1ad008c65c3359ddb494393fa9c71afe/raw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# source directory / папка с исходными видео | |
dirstart="DCIM/100MEDIA/" | |
# date format for new file / формат даты для названия нового файла | |
firstfile=`date -u -r $dirstart$(ls $dirstart | head -n 1) +"%Y%m%d %H:%M"` | |
lastfile=`date -u -r $dirstart$(ls $dirstart | tail -n 1) +"%Y%m%d %H:%M"` | |
echo -n "Введите название видео: " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$path = 'image.svg'; | |
$type = pathinfo($path, PATHINFO_EXTENSION); | |
$data = file_get_contents($path); | |
switch ($type) { | |
case 'svg': | |
$type_ = 'data:image/svg+xml'; | |
break; | |
case 'ttf': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp') | |
, minJS = require('gulp-jsmin') | |
, minCSS = require('gulp-cssmin') | |
, minHTML = require('gulp-minify-html-2') | |
, beautifyCSS = require('gulp-cssbeautify') | |
, beautifyHTML = require('gulp-html-beautify') | |
, beautify = require('gulp-beautify') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Сборка или обновление CSV файлов, прайслистов и т.д. на PHP | |
* Запускать из консоли! Через браузер можете положить всё и вся! | |
* | |
* Проверено на синхронизации файлов c 7000+ 2 столбика и 1000+ строк в 1 столбик | |
* | |
* Входящие данные на тесте | |
* | |
* price1 (1000+ позиций) - список позиций по имени, ID или другому уникальному полю |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
filesList="" | |
for file in $(ls DCIM/100MEDIA/*.mp4|sort -n);do | |
filesList="$filesList -cat $file" | |
done | |
filedate=$(date -d "1970-01-01 + $(stat -c '%Z' $(ls DCIM/100MEDIA/*.mp4|sort -n | head -1) ) secs" '+%Y%m%d') | |
MP4Box $filesList -new ~/Видео/$filedate.mp4 | |
mediainfo --LogFile=~/Видео/$filedate.txt DCIM/100MEDIA/*.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
// Скачиваемый CSS файл | |
$css = 'http://fonts.googleapis.com/css?family=Roboto%3A500'; | |
// Имя файла для записи | |
$localfile = 'roboto.css'; | |
/* | |
* Юзер агент. | |
* От него зависит формат выдаваемых шрифтов у ГуглФонтс | |
* Юзер агент Хрома для woff2 |