Skip to content

Instantly share code, notes, and snippets.

View and-semakin's full-sized avatar

Andrey Semakin and-semakin

View GitHub Profile
@and-semakin
and-semakin / FAIL1: logread
Created July 29, 2019 05:03
Автозапуск L2TP на OpenWRT срабатывает через раз
root@tp-link-home:~# logread
Mon Jul 29 09:40:05 2019 kern.notice kernel: [ 0.000000] Linux version 4.9.184 (buildbot@2ccc8102e0c3) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7808-ef686b7292) ) #0 Thu Jun 27 12:18:52 2019
Mon Jul 29 09:40:05 2019 kern.debug kernel: [ 0.000000] MyLoader: sysp=7f15abbf, boardp=2eb6ad83, parts=7fb4e127
Mon Jul 29 09:40:05 2019 kern.info kernel: [ 0.000000] bootconsole [early0] enabled
Mon Jul 29 09:40:05 2019 kern.info kernel: [ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
Mon Jul 29 09:40:05 2019 kern.info kernel: [ 0.000000] SoC: Qualcomm Atheros QCA9558 ver 1 rev 0
Mon Jul 29 09:40:05 2019 kern.info kernel: [ 0.000000] Determined physical RAM map:
Mon Jul 29 09:40:05 2019 kern.info kernel: [ 0.000000] memory: 04000000 @ 00000000 (usable)
Mon Jul 29 09:40:05 2019 kern.info kernel: [ 0.000000] Initrd not found or empty - disabling initrd
Mon Jul 29 09:40:05 2019 kern.warn kernel: [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 by
@and-semakin
and-semakin / webpack.config.js
Created June 22, 2019 11:51
Less loader with prefixwrap & css-modules
prefixer = require('postcss-prefix-selector');
// ...
{
test: /.*\/some-vendor\/.*\.less$/,
use: [
{ loader: 'style-loader' },
{
loader: 'css-loader',
options: {
@and-semakin
and-semakin / underscore.js
Created August 3, 2018 11:27
Underscore.js _.isEqual for Map objects
define(["_underscore"], function(_) {
"use strict";
// underscore.js monkey patches
// from 1.9.1
return (function() {
// All **ECMAScript 5** native function implementations that we hope to use
// are declared here.
var nativeKeys = Object.keys;
// Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.