Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View trosck's full-sized avatar
🧐

Sergey trosck

🧐
View GitHub Profile
@trosck
trosck / prettier.mjs
Created April 10, 2023 15:10
modinfo nodejs prettier
import { exec } from "node:child_process";
const mods = await new Promise((resolve, reject) => {
exec("lsmod", (error, stdout, stderr) => {
if (error) return reject(error)
const mods_array = stdout.split("\n")
resolve(
mods_array.slice(1, mods_array.length - 1).map(
mod => mod.split(" ")[0]
)
@trosck
trosck / logs
Last active January 1, 2023 11:22
sergey-nginx-1 | 185.213.174.115 - - [01/Jan/2023:10:57:29 +0000] "\x16\x03\x01\x02\x00\x01\x00\x01\xFC\x03\x03+\xA0l\x93\x1Cr\xE6v\x0E\xB0\xDFV\x86\x01\xB4\xA7\x91O\xE5\xB4\x97\xEE\xC5\x14\xA8?\xD7W\xD2E\xB0$ \xFB\xBFC\xE12\xD7\xFD\xB4\xD8&\xD1A\xF1\xFAdM-\xE8\x91\xF3:\xBE\xA5\x9B\xD6\x08DV\x15i@M\x00>\x13\x02\x13\x03\x13\x01\xC0,\xC00\x00\x9F\xCC\xA9\xCC\xA8\xCC\xAA\xC0+\xC0/\x00\x9E\xC0$\xC0(\x00k\xC0#\xC0'\x00g\xC0" 400 157 "-" "-" "-"
sergey-nginx-1 | 185.213.174.115 - - [01/Jan/2023:10:57:30 +0000] "{\x22id\x22: 1, \x22method\x22: \x22mining.subscribe\x22, \x22params\x22: [\x22cpuminer/2.5.1\x22]}" 400 157 "-" "-" "-"
sergey-nginx-1 | 185.213.174.115 - - [01/Jan/2023:10:57:30 +0000] "{\x22id\x22: 1, \x22method\x22: \x22mining.subscribe\x22, \x22params\x22: [\x22MinerName/1.0.0\x22, \x22EthereumStratum/1.0.0\x22]}" 400 157 "-" "-" "-"
sergey-nginx-1 | 185.213.174.115 - - [01/Jan/2023:10:57:30 +0000] "{\x22id\x22:1,\x22method\x22:\x22eth_submitLogin\x22,\x22worker\x22:\x22eth1.0\x22,\x22params\x22:[\x
@trosck
trosck / css_colors.js
Created October 5, 2020 18:43 — forked from bobspace/css_colors.js
All of the CSS Color names as an array in javascript.
// CSS Color Names
// Compiled by @bobspace.
//
// A javascript array containing all of the color names listed in the CSS Spec.
// The full list can be found here: https://www.w3schools.com/cssref/css_colors.asp
// Use it as you please, 'cuz you can't, like, own a color, man.
const CSS_COLOR_NAMES = [
"AliceBlue",
"AntiqueWhite",
<template lang="pug">
.wrapper-tooltip
.tooltip(
v-if="show"
ref="modal"
:class="arrowDirection"
:style="{ top, left }"
)
span.arrow(:style="{ borderBottomWidth, borderTopWidth }")
span.tooltip-text {{ tooltipText }}