Skip to content

Instantly share code, notes, and snippets.

View develar's full-sized avatar

Vladimir Krivosheev develar

  • JetBrains
  • Kronach, Bavaria
View GitHub Profile
# docker run -ti --rm -v `pwd`:/tmp/nsis buildpack-deps:trusty
# no luck to build using debian wheezy, so, we use ubuntu trusty
apt-get update -y && apt-get install --no-install-recommends -y mingw32 mingw64 unzip
mkdir -p /tmp/scons && curl -L http://prdownloads.sourceforge.net/scons/scons-local-2.5.0.tar.gz | tar -xz -C /tmp/scons
mkdir -p /tmp/nsis && curl -L http://downloads.sourceforge.net/project/nsis/NSIS%203%20Pre-release/3.0rc1/nsis-3.0rc1-src.tar.bz2 | tar -xj -C /tmp/nsis --strip-components 1 && cd /tmp/nsis
python /tmp/scons/scons.py STRIP=0 SKIPUTILS=all NSIS_CONFIG_CONST_DATA_PATH=no makensis dist-zip
mkdir bin && mv build/urelease/makensis/makensis bin/makensis
declare module "image-size" {
interface ImageInfo {
width: number
height: number
type: string
}
function sizeOf(path: string, callback: (error: Error, dimensions: ImageInfo) => void): void
export = sizeOf
Index: cli.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- cli.js (date 1454269165000)
+++ cli.js (revision )
@@ -52,6 +52,7 @@
// Leave --watch and --sources undocumented until they're stable enough
// ' --watch, -w Re-run tests when tests and source files change',
declare module 'electron-builder/out/awaiter' {
function tsAwaiter(thisArg: any, _arguments: any, ignored: any, generator: Function): any
}
declare module 'electron-builder/out/promisifed-fs' {
import * as fs from "fs"
import { Promise as BluebirdPromise } from "bluebird"
function readText(file: string): BluebirdPromise<string>
Internal error. Please report to http://jb.gg/ide/critical-startup-errors
java.lang.NoSuchFieldError: ENABLED
at com.intellij.configurationStore.StateStorageManagerImpl.addMacro(StateStorageManagerImpl.kt:408)
at com.intellij.configurationStore.ApplicationStoreImpl.setPath(ApplicationStoreImpl.kt:47)
at com.intellij.openapi.application.impl.ApplicationImpl$11.run(ApplicationImpl.java:480)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:101)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:458)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:450)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:194)
@develar
develar / gist:91d2030f0522bbaf831d
Created February 2, 2016 16:35
stream (object) vs xml text vs xml binary
/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/bin/java -Didea.launcher.port=7532 -Didea.launcher.bin.path=/Applications/Idea.app/Contents/bin -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jd
lineBreakpointManager.removeAllBreakpoints()
.then { connection.detachAndClose() }
/Users/develar/Documents/idea/contrib/AngularJS/test/org/angularjs/codeInsight/data/attributes/object.ts
Warning:File was not compiled because there is no a reference from tsconfig.json
/Users/develar/Documents/idea/contrib/AngularJS/test/org/angularjs/refactoring/data/rename/object.ts
Warning:File was not compiled because there is no a reference from tsconfig.json
/Users/develar/Documents/idea/contrib/AngularJS/test/org/angularjs/refactoring/data/rename/object.binding.ts
Warning:File was not compiled because there is no a reference from tsconfig.json
/Users/develar/Documents/idea/contrib/AngularJS/test/org/angularjs/refactoring/data/rename/object.event.ts
Warning:File was not compiled because there is no a reference from tsconfig.json
//declare module "got" {
// interface Got {
// stream(url: string): Stream
// }
//
// const got: Got
// export = got
//}
fun runAndWait(commandLine: GeneralCommandLine) {
val handler = KillableColoredProcessHandler(commandLine, true)
var hasErrors = false
handler.addProcessListener(object : ProcessAdapter() {
override fun onTextAvailable(event: ProcessEvent, outputType: Key<*>) {
val text = event.text
// https://github.com/maxogden/electron-packager/pull/228
val out = if (outputType == ProcessOutputTypes.STDERR && !text.startsWith("Packaging app for platform ")) {
hasErrors = true
System.err