Skip to content

Instantly share code, notes, and snippets.

View digitalhitler's full-sized avatar

Sergey S Petrenko digitalhitler

View GitHub Profile
@digitalhitler
digitalhitler / gulpfile.js
Created December 6, 2015 20:10
GulpBoss: gulpfile.js with extendable plugins, less, css, js, browserify, minify-uglify-anythingyouwantfy
/**
* gulpfile.js
*
* Gulp BOSS 8-)
*
* Удобный (для меня) способ компилировать всё в Gulp-е.
* Всякие ништяки included.
*
* Made by http://github.com/digitalhitler
*
@digitalhitler
digitalhitler / SETUP_GUIDE.md
Last active December 8, 2015 14:39 — forked from hwdsl2/.MOVED.md
IPsec L2TP VPN Auto Install Script for Ubuntu 14.04 & 12.04 and Debian 8
@digitalhitler
digitalhitler / gulpfile.js
Created December 8, 2015 15:11
GulpFile that concatenates CSS and JS (with plugin support), compile LESS and Browserify, watches for changes for live-edit
/**
* gulpfile.js
*
* @project vkcm
* @summary A GULP configuration
*
* @todo
* refer configuration to one object
* beautify intends and req's
*
@digitalhitler
digitalhitler / promiseModuleSandboxExecutor.js
Created January 19, 2016 20:25
Promise-way sandboxed context module preloading and then executing code.
// It is not yet another reinventing the well.
// Did you ever see what's happens with module that requires lots of times in
// a row for example in Express?
// Check it out and come back!
Promise.all(['module1', 'module2', 'module3']
.map(x => System.import(x)))
.then(([module1, module2, module3]) => {
// Do something in separate scope.
});
@digitalhitler
digitalhitler / gist:eba013c2f83d6eec4e9002ce0fbdab5e
Created May 19, 2016 20:56
Ubuntu/Debian PHP5 packages install command
apt-get install php5 php5-cli php5-cgi php5-fpm php5-gd php5-intl php5-json php5-mcrypt php5-memcache php5-memcached php5-mongo php5-mysql php5-oauth php5-redis php5-sasl php5-rrd php5-ssh2 php5-xcache
@digitalhitler
digitalhitler / gist:5943dab1b55b941ab1e0f3b96b7864f4
Last active July 10, 2016 15:22
ZyXEL Keenetic telnet commands to fuck Roskomnadzor's asshole
ip host ui.skype.com 192.168.1.1
ip host v.kaaterhaus.com 10.11.12.100
ip host front.v.kaaterhaus.com 10.11.12.77
ip host www.pandora.com 107.170.15.247
ip host www.lalalala.ru 10.11.12.1
ip host pandora.com 107.170.15.247
ip host tuner.pandora.com 107.170.15.247
ip host www.spotify.com 107.170.15.247
ip host play.spotify.com 107.170.15.247
ip host apresolve.spotify.com 107.170.15.247
"use strict";
const output = require('./output');
const VKQueue = {
_tasks: [],
_checkInterval: 100
_intervalHandler: false,
_lastRequestStarted: null,
_lastRequestFinished: null,
https://oauth.vk.com/authorize?client_id=3087106&scope=wall,offline&redirect_uri=http://api.vk.com/blank.html&display=page&response_tai=token
@digitalhitler
digitalhitler / configure.sh
Last active October 8, 2016 13:11
CentOS Proxmox Dev Machine Auto-Configurator
#!/usr/bin/env bash
yum install -y wget nano openssh-server
systemctl enable sshd.service
systemctl start sshd.service
cd /tmp
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
rpm -ivh epel-release-7-8.noarch.rpm
@digitalhitler
digitalhitler / SFUI-webfont.css
Created October 20, 2016 13:57
SFUI-webfont.css
/**
* http://applemusic.tumblr.com/
* https://jsfiddle.net/xq56dmrh/
*/
/** Ultra Light */
@font-face {
font-family: "San Francisco";
font-weight: 100;
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff");