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
ascasc |
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
sdcsdc |
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
location /resize { | |
alias /tmp/nginx/resize; | |
set $width 150; | |
set $height 100; | |
set $dimens ""; | |
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) { | |
set $width $1; | |
set $height $2; | |
set $image_path $3; |
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 Make youtube pizdato | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.youtube.com/watch* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |
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
# kill metro | |
Get-AppxPackage -AllUsers | |
Get-AppxPackage -AllUsers | Remove-AppxPackage | |
Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage -online | |
# kill ntfs features | |
fsutil behavior set memoryusage 2 | |
fsutil behavior set disable8dot3 1 | |
fsutil behavior set disablelastaccess 1 | |
fsutil behavior set disablecompression 1 | |
fsutil behavior set disableencryption 1 |
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
const PLUGIN_NAME = 'gulp-pngquant'; | |
var through = require('through2'); | |
var gutil = require('gulp-util'); | |
var log = gutil.log; | |
var PluginError = gutil.PluginError; | |
var pngquant = require('pngquant'); | |
module.exports = function (options) { | |
var stream = through.obj(function (file, enc, callback) { | |
if (file.isNull()) { |
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
const PLUGIN_NAME = 'gulp-sprites'; | |
var gutil = require('gulp-util'); | |
var log = gutil.log; | |
//var PluginError = gutil.PluginError; | |
var path = require('path'); | |
var sprite = require('node-sprite'); | |
var vow = require('vow'); | |
var exec = require('child_process').exec; | |
var fs = require('fs'); |
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'); | |
var gutil = require('gulp-util'); | |
var rename = require('gulp-rename'); | |
var log = gutil.log; | |
gulp.task('default', ['watch']); | |
/* CONCAT */ | |
var concat = require('gulp-concat'); | |
gulp.task('concat-services', function () { |