Skip to content

Instantly share code, notes, and snippets.

View develar's full-sized avatar

Vladimir Krivosheev develar

  • JetBrains
  • Kronach, Bavaria
View GitHub Profile
develar-home-imac:win-unpacked develar$ 7za l -slt /Users/develar/Documents/onshape-desktop-shell/dist/asddsf.7z
7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)
Scanning the drive for archives:
1 file, 33745692 bytes (33 MiB)
Listing archive: /Users/develar/Documents/onshape-desktop-shell/dist/asddsf.7z
7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)
Scanning the drive for archives:
1 file, 38485198 bytes (37 MiB)
Listing archive: /Users/develar/Documents/onshape-desktop-shell/dist/asf.7z
--
7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)
Scanning the drive for archives:
1 file, 38521758 bytes (37 MiB)
Listing archive: /Users/develar/Documents/onshape-desktop-shell/dist/fd.zip
--
@develar
develar / gist:9405c4430fac7e556aaa94cdf3b49a9d
Last active July 21, 2017 10:01
WEB-27555 — without await
'use strict';
const path = require('path');
const fs = require('fs');
const promisify = require('util').promisify;
const unlink = promisify(fs.unlink);
const rmDir = promisify(fs.rmdir);
const readDir = promisify(fs.readdir);
const lstat = promisify(fs.lstat);
@develar
develar / gist:db9ef805bbde3994ad33d010e8a40025
Created August 18, 2017 20:05
isDoNotWriteIfOnlyLineSeparatorChanged
if (processor is LazySchemeProcessor && processor.isDoNotWriteIfOnlyLineSeparatorChanged && file.exists()) {
val detectedLineSeparator = file.detectedLineSeparator
// scheme always uses LF
if (detectedLineSeparator != LineSeparator.LF.separatorString) {
val oldData = file.contentsToByteArray()
if (detectLineSeparators(Charsets.UTF_8.decode(ByteBuffer.wrap(oldData))) != LineSeparator.LF) {
}
}
}
@develar
develar / commit-message-format.md
Created September 1, 2017 05:34
Commit Message Format

Commit Message Format

Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:

<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
@develar
develar / appveyor.yml
Created September 29, 2017 05:34
Sample appveyor.yml to Build Electron App for Windows
image: Visual Studio 2017
platform:
- x64
cache:
- node_modules
- '%USERPROFILE%\.electron'
init:
@develar
develar / crash report
Created October 4, 2017 05:40
info.plist modified
Process: Slack [84333]
Path: /Applications/Slack.app/Contents/MacOS/Slack
Identifier: com.tinyspeck.slackmacgap
Version: 2.8.0 (4320)
App Item ID: 803453959
App External ID: 823582564
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Slack [84333]
User ID: 501
"AWT-EventQueue-0 2017.3#__BUILD_NUMBER__ IDEA, eap:true, os:Mac OS X 10.13, java-version:JetBrains s.r.o 1.8.0_152-release-b1016@3121" prio=6 tid=0x1f nid=NA runnable
java.lang.Thread.State: RUNNABLE
at com.intellij.ui.treeStructure.SimpleNode.update(SimpleNode.java:89)
at com.intellij.build.ExecutionNode.update(ExecutionNode.java:64)
at com.intellij.ide.util.treeView.PresentableNodeDescriptor.getUpdatedPresentation(PresentableNodeDescriptor.java:88)
at com.intellij.ide.util.treeView.PresentableNodeDescriptor.update(PresentableNodeDescriptor.java:41)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.updateNodeDescriptor(AbstractTreeBuilder.java:545)
at com.intellij.ide.util.treeView.AbstractTreeUi$22.perform(AbstractTreeUi.java:935)
at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:36)
at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1856)