Skip to content

Instantly share code, notes, and snippets.

@z81
z81 / json_circular.carbide.md
Created September 5, 2016 19:31
json_circular
@z81
z81 / logger.carbide.md
Last active September 18, 2016 21:12
logger

logger

@z81
z81 / epic_logger_v0_0_1.carbide.md
Created September 19, 2016 15:08
epic_logger_v0_0_1

epic_logger_v0_0_1

@chcp 1251
start /min "audiorepeater" "%programfiles%\Virtual Audio Cable\audiorepeater.exe" /Priority:realtime /BufferMs:50 /SamplingRate:96000 /BitsPerSample:24 /Channels:2 /Input: "Line 1 (Virtual Audio Cable)" /Output: "Динамики (SB Audigy)" /Autostart
@z81
z81 / client.js
Last active March 22, 2017 16:23
graphql over weboscket
import io from 'socket.io-client';
import { parse } from 'graphql';
let socket = null;
let queryId = 0;
const queryResolvers = new Map();
const queryInstancesCache = new Map();
const fragmentsCache = new Map();
const QueryStatus = {
PENDING: 1,
#EXTM3U
#EXTINF:-1,7 ТВ
http://176.100.73.33:81/udp/239.1.1.98:1234
#EXTINF:-1,Мой мир
http://176.100.73.33:81/udp/239.1.1.122:1234
#EXTINF:-1,РТ ДОК
http://176.100.73.33:81/udp/239.1.1.194:1234
#EXTINF:-1,ЦАРЬГРАД
http://176.100.73.33:81/udp/239.1.1.198:1234
#EXTINF:-1,ПИК ТВ
// ...
"scripts": {
"build": "neo build --config webpack.prod.js",
"start": "neo start --port 3001 --config webpack.dev.js",
// ...
}
// ...
@z81
z81 / CertificateGeneration.sh
Created March 18, 2017 15:43 — forked from sandfox/CertificateGeneration.sh
TLS certificate inspection example (using nodejs)
###
#Step 1 - Generate server certificates etc... (most of this code is horribly ripped off from nodejs docs currently -> http://nodejs.org/docs/latest/api/tls.html)
###
#Assuming your starting from a clean directory
mkdir server
cd server
#generate private key
import io from 'socket.io-client';
import { parse } from 'graphql';
let socket = null;
let queryId = 0;
const queryResolvers = new Map();
const queryInstancesCache = new Map();
const fragmentsCache = new Map();
const QueryStatus = {
PENDING: 1,
@z81
z81 / .neutrinorc.js
Created August 7, 2017 15:58
My neutrinojs confi, neutrino 6.1.5, scss, es6 decorators, class-properties, react
const path = require('path');
const HtmlPlugin = require('html-webpack-plugin');
const loaderMerge = require('neutrino-middleware-loader-merge');
const SRC = path.join(process.cwd(), 'src');
module.exports = {
use: [
"neutrino-preset-react",
({ config, use }) => {