Skip to content

Instantly share code, notes, and snippets.

View Maxim-Mazurok's full-sized avatar
👨‍💻
Building great stuff

Maxim Mazurok Maxim-Mazurok

👨‍💻
Building great stuff
View GitHub Profile
This file has been truncated, but you can view the full file.
{"context":{"allowJs":false,"logLevel":20,"namespace":"jest-preset","package":"ts-jest","version":"29.0.2"},"message":"creating jest presets not handling JavaScript files","sequence":1,"time":"2022-09-26T07:52:02.454Z"}
{"context":{"logLevel":20,"namespace":"Importer","package":"ts-jest","version":"29.0.2"},"message":"creating Importer singleton","sequence":2,"time":"2022-09-26T07:52:02.727Z"}
{"context":{"actualVersion":"29.0.3","expectedVersion":">=29.0.0 <30","logLevel":20,"namespace":"versions","package":"ts-jest","version":"29.0.2"},"message":"checking version of jest: OK","sequence":3,"time":"2022-09-26T07:52:02.736Z"}
{"context":{"logLevel":20,"namespace":"ts-jest-transformer","package":"ts-jest","version":"29.0.2"},"message":"created new transformer","sequence":4,"time":"2022-09-26T07:52:02.736Z"}
{"context":{"logLevel":20,"namespace":"ts-jest-transformer","package":"ts-jest","version":"29.0.2"},"message":"created new transformer","sequence":5,"time":"2022-09-26T07:52:02.743Z"}
{"context":{"logLevel":
@Maxim-Mazurok
Maxim-Mazurok / index.js
Last active April 1, 2024 13:13
Private Vimeo / Akamai CDN long video downloader
// NOTE: you might have to run it a few times if it doesn't download the full video from the first try, I guess it needs to be cached or something..
const { appendFileSync, writeFileSync } = require("fs");
const https = require("https");
// find that URL in devtools, search for akamai, there's also manifest with different names based on quality (remove &range from it)
const URL = `https://xxxxx-adaptive.akamaized.net/exp=0000000000~xxx=xxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxxx~xxxx=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/parcel/video/xxxxxxxx.mp4?r=xxxxxxxxxxxxxxxxxx`;
const rangeWidth = 1000000000; // using smaller range will be slower, but might result in more stable/reliable download success
let foundEnd = false;
@Maxim-Mazurok
Maxim-Mazurok / switch_monitors.ahk
Created March 16, 2022 13:02
Autohotkey script to switch between different WS Display Settings/profiles
; I have two monitors: one for games, one for work and I want to switch between them using different profiles in https://wizardsoft.nl/products/wsdisplaysettings
; first, set up profiles, and create cmd files (probably optional, but helpful if you want to have shortcuts as well)
;
; Something like:
; cd C:\Users\maxim\Downloads\WsDisplaySettings\portable
; start "" "wsds.exe" "play.dis"
;
; then fix paths and add this script to startup folder
; use Ctrl+Alt+P to play, ...+W to work, ...+B to enable both displays
; (at least that's my setup, yours might differ, this script helps to click "ok" on dialogue in free version of WS Display Setting software, that's pretty much it)
@Maxim-Mazurok
Maxim-Mazurok / index.ts
Created September 16, 2021 02:05
Running npm start for all projects in folder
import { SH } from "./sh";
import { join } from "path";
import { readFileSync } from "fs";
import { platform, EOL } from "os";
const rootPath = join(__dirname, "vendors");
const sh = new SH(rootPath);
const os = platform();
const getDirs = async (rootPath: string): Promise<string[]> => {
@Maxim-Mazurok
Maxim-Mazurok / sentry.6f9a9855.js
Last active June 5, 2022 00:59
Sentry scripts
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var core_1 = require("@sentry/core");
var types_1 = require("@sentry/types");
var utils_1 = require("@sentry/utils");
var eventbuilder_1 = require("./eventbuilder");
var transports_1 = require("./transports");
/**
* The Sentry Browser SDK Backend.
@Maxim-Mazurok
Maxim-Mazurok / App.vue
Last active February 7, 2021 01:43
Vue Props issue
<template>
<!-- Correct Usage: -->
<app-bar :tabs="tabs" />
<!-- Incorrect Usage (still compiles/builds without any warnings): -->
<app-bar :crabs="tabs" />
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import AppBar from "@/components/AppBar.vue";
@Maxim-Mazurok
Maxim-Mazurok / index.html
Created September 24, 2020 02:06
Analytics Reporting API V4 demo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Hello Analytics Reporting API V4</title>
<meta name="google-signin-client_id" content="CLIENT_ID" />
<meta
name="google-signin-scope"
content="https://www.googleapis.com/auth/analytics.readonly"
/>
@Maxim-Mazurok
Maxim-Mazurok / index.js
Created April 27, 2020 08:38
Get download stats of all gapi.client.* packages from npmjs api from behind a proxy
const http = require('http');
const https = require('https');
const { getProxySettings } = require('get-proxy-settings');
const apis = [
'acceleratedmobilepageurl',
'adexchangebuyer',
'adexchangebuyer2',
'adexchangeseller',
'adexperiencereport',
@Maxim-Mazurok
Maxim-Mazurok / index.js
Last active April 16, 2020 14:42
Download all available Vue Mastery lessons
/**
* Tested with "selenium-webdriver": "^4.0.0-alpha.7"
* and NodeJS v12.14.0
* on April 17, 2020
*
* Make sure to download Chrome selenium WebDriver for your version: https://chromedriver.chromium.org/downloads
* and put it in the same folder as this file or add to PATH
* Tested on Chrome 81
*
* This script downloads pages with embedded videos, lesson materials and links to challenges
@Maxim-Mazurok
Maxim-Mazurok / apigee_v1.json
Created March 19, 2020 11:52
Apigee API Platform Google Cloud type defintions
{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
},