-
Get all unique file extensions
find . -type f ! -path './.git/*' ! -path './node_modules/*' ! -path './.idea/*' ! -path './todo.txt' | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u
-
Decompile all .jar file
for f in ./*.jar ; do docker run -it --rm -v `pwd`:/mnt --user $(id -u):$(id -g) kwart/jd-cli /mnt/$f -od /mnt/${f%.*}_src; done;
async function printFont(index: number): Promise<boolean> {
const res = await cdp.send(
"Runtime.evaluate",
{expression: `Array.from(document?.querySelector('#my-iframe')?.contentWindow?.document?.body?.querySelector('#my-webcomponent')?.shadowRoot?.querySelectorAll('text') || []).filter((c) => c.textContent && (c.textContent.includes('Access') || c.textContent.includes('TV')))[${index}]`},
) as any
if (res?.result?.objectId) {
// eslint-disable-next-line prefer-destructuring
const nodeId = ((await cdp.send("DOM.requestNode", {objectId: res.result.objectId})) as any).nodeId
if (nodeId) {Error: listen EACCES: permission denied 0.0.0.0:3001:
net stop winnat
net start winnat// todo use typescript 4.1 with https://www.typescriptlang.org/docs/handbook/2/template-literal-types.html to filter keys in type by prefix automatically
// example: https://stackoverflow.com/questions/53501721/typescript-exclude-property-key-when-starts-with-target-string
// example: https://stackoverflow.com/questions/71811073/substrings-of-string-unions-using-template-literal-types
type FilterStartingWith<Set, Needle extends string> = Set extends `${Needle}${infer _X}` ? Set : never
type FilteredKeys<Prefix extends string> = FilterStartingWith<keyof AccessResourcesNames, Prefix>
type FilteredResourceName<Prefix extends string> = Pick<AccessResourcesNames, FilteredKeys<Prefix>>
function pickResources<Prefix extends string>(...prefix: Prefix[]): FilteredResourceName<Prefix>{
return accessResourcesNames as FilteredResourceName<Prefix>
};import functools
import os.path
from pathlib import Path
from urllib.parse import urlparse
import bookmarks_parser
import ffmpeg
import piexif
from PIL import Image-
- Rmove all
~,^from versions inpackage.json - Create initial
package.lock
- Rmove all
- Create
/Users/<user-name>/.npmrcor%USERPROFILE%\.npmrcor hereecho $(npm config ls -l) - Fill
.npmrcwith this content@netcracker:registry=https://corp-npm-server.com/path-to-internal-packages/ registry=https://corp-npm-server.com/path-to-external-packages/ - Command
See final versions without trash here
- Download necessary version of docker binaries from https://docs.docker.com/engine/install/binaries/ and extract archive to
c:/Program Files, for example, using script in powershell. Run powershell as Administrator and call:FilesExpand-Archive .\docker-20.10.9.zip -DestianationPath $Env:ProgramFiles
docker.exeanddockerd.exewill be herec:/Program Files/docker/.
- Install and configure Ubuntu WSL
- Install application
- Docker in Windows without Docker Desktop
- Docker/Kubernetes Clients
- Git tricks
- GIT for Windows
- Ubuntu WSL:
sudo apt install -u git