Skip to content

Instantly share code, notes, and snippets.

View isaldin's full-sized avatar
🏠
Working from home

SALDIN ILYA isaldin

🏠
Working from home
View GitHub Profile
@isaldin
isaldin / git-hist
Created November 16, 2015 11:55
git hist alias
git config --global alias.hist "log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --graph --date=short"
@isaldin
isaldin / bootable-win-on-mac.md
Created August 30, 2024 15:54 — forked from acarril/bootable-win-on-mac.md
Create a bootable Windows USB using macOS

For some reason, it is surprisingly hard to create a bootable Windows USB using macOS. These are my steps for doing so, which have worked for me in macOS Monterey (12.6.1) for Windows 10 and 11. After following these steps, you should have a bootable Windows USB drive.

1. Download a Windows disc image (i.e. ISO file)

You can download Windows 10 or Windows 11 directly from Microsoft.

2. Identify your USB drive

After plugging the drive to your machine, identify the name of the USB device using diskutil list, which should return an output like the one below. In my case, the correct disk name is disk2.

@isaldin
isaldin / ff.json
Last active October 13, 2022 13:58
[
{
"title":"Prod API",
"lsPath":"1inchProdApi",
"trueValue":"1"
},
{
"title":"Fake wallet enabled",
"lsPath":"enableFakeWallet",
"trueValue":"true"
curl 'https://swap-builder.1inch.io/v4.0/1/swap/build' \
-H 'authority: swap-builder.1inch.io' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'origin: http://localhost:4200' \
-H 'pragma: no-cache' \
-H 'referer: http://localhost:4200/' \
-H 'sec-ch-ua: ".Not/A)Brand";v="99", "Google Chrome";v="103", "Chromium";v="103"' \
[ { privateKey: "0x60ddFE7f579aB6867cbE7A2Dc03853dC141d7A4aB6DBEFc0Dae2d2B1Bd4e487F", balance: _1e36Str },
{ privateKey: "0xeaa445c85f7b438dEd6e831d06a4eD0CEBDc2f8527f84Fcda6EBB5fCfAd4C0e9", balance: _1e36Str },
{ privateKey: "0x8b693607Bd68C4dEB7bcF976a473Cf998BDE9fBeDF08e1D8ADadAcDff4e5D1b6", balance: _1e36Str },
{ privateKey: "0x519B6e4f493e532a1BEbfeB2a06eA25AAD691A17875cCB38607D4A4C28DFADC2", balance: _1e36Str },
{ privateKey: "0x09CFF53c181C96B42255ccbCEB2CeE7012A532EcbcEaaBab4d55a47E1874FbFC", balance: _1e36Str },
{ privateKey: "0x054ce61b1eA12d9Edb667ceFB001FADB07FE0C37b5A74542BB0DaBF5DDeEe5f0", balance: _1e36Str },
{ privateKey: "0x42F55f0dFFE4e9e2C2BdfdE2FF98f3d1ea6d3F21A8bB0dA644f1c0e0Acd84FA0", balance: _1e36Str },
{ privateKey: "0x8F3aFFEC01e78ea6925De62d68A5F3f2cFda7D0C1E7ED9b20d31eb88b9Ed6A58", balance: _1e36Str },
{ privateKey: "0xBeBeF90A7E9A8e018F0F0baBb868Bc432C5e7F1EfaAe7e5B465d74afDD87c7cf", balance: _1e36Str },
{ privateKey: "0xaD55BABd2FdceD7aa85eB1FEf47C455DBB7a57a46a16aC9ACFFBE66d7Caf
@isaldin
isaldin / launch.json
Created March 6, 2020 12:36
vscode: debug ts project with nvm
{
"name": "<name>",
"type": "node",
"request": "launch",
"runtimeExecutable": "${env:HOME}/.nvm/versions/node/v11.15.0/bin/node", // path to node
"args": [
"-r",
"ts-node/register",
"${workspaceRoot}/src/index.ts" // path to start file
],
move to parent folder and run
`find . -name "node_modules" -type d -prune -exec rm -rf '{}' +`
@isaldin
isaldin / launch.json
Created March 5, 2020 10:16 — forked from cecilemuller/launch.json
Run ts-node in VSCode Debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "Node Inspector",
"type": "node",
"request": "launch",
"args": ["${workspaceRoot}/src/service.ts"],
"runtimeArgs": ["-r", "ts-node/register"],
"cwd": "${workspaceRoot}",

show disk usage df -h

who is listening ports lsof -i -P -n | grep LISTEN

docker

remove intermediate/unused images docker rmi $(docker images -f dangling=true -q --no-trunc) -f

@isaldin
isaldin / AtomSubscriber.swift
Created June 22, 2016 15:06
AtomSubscriber template
//
// ___FILENAME___
// ___PROJECTNAME___
//
// Created ___FULLUSERNAME___ on ___DATE___.
// Copyright © ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
//
// Generated by Atom templates.
//