Skip to content

Instantly share code, notes, and snippets.

View vitallium's full-sized avatar
🖥️
Hex, Bugs and Source Control!

Vitaly Slobodin vitallium

🖥️
Hex, Bugs and Source Control!
View GitHub Profile
var page = require('webpage').create();
page.settings.userAgent = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1976.2 Safari/537.36';
page.viewportSize = {
width: 1024,
height: 768
};
page.onConsoleMessage = function(msg) {
@echo off
SETLOCAL EnableExtensions EnableDelayedExpansion
set BUILD_TYPE=release
if /i "%1" == "debug" (
SET BUILD_TYPE=debug
)
set ROOT_DIR=%CD%
SET BUILD_DATESTAMP=%date:~-4,4%%date:~-7,2%%date:~-10,2%
var page = require('webpage').create(),
fs = require('fs');
page.content = fs.read('fragment.html');
// to make sure that our web page has downloaded all referenced resources: CSS, JS, etc.
page.onLoadFinished = function(status) {
page.render('out.png');
phantom.exit();
};
Web application to analyze Breakpad (https://code.google.com/p/google-breakpad/) crash dumps.
TODO:
- Choose platform (node.js?)
- write web application itself
- write a collector. Collector will analyze a crash dump and save its resuls to a storage.
- etc...
class MyObject
{
public string FirstName {get;set;}
public string LastName {get;set;}
}
using (var context = new MyContext())
{
try
{
### Keybase proof
I hereby claim:
* I am vitallium on github.
* I am vitallium (https://keybase.io/vitallium) on keybase.
* I have a public key whose fingerprint is 7407 1899 ED67 CDBB 6E57 C18B 3A7D C00B F4FE 19EC
To claim this, I am signing this object:
@vitallium
vitallium / 0001-Fix-missing-ICO-plugin.patch
Created September 13, 2012 09:39
Fix missing ICO plugin
From 2d7806b6a5e89e4daebbd78c7fd553d994ef6090 Mon Sep 17 00:00:00 2001
From: Vitaliy Slobodin <vitaliy.slobodin@gmail.com>
Date: Thu, 13 Sep 2012 13:36:20 +0400
Subject: [PATCH] Fix missing ICO plugin
---
src/main.cpp | 1 +
src/phantomjs.pro | 3 +-
src/qt/src/plugins/imageformats/ico/ico.pro | 14 +
src/qt/src/plugins/imageformats/ico/main.cpp | 96 +++
@vitallium
vitallium / fix_compile_vs2012
Created December 4, 2012 06:46
[PhantomJS] Patch for compiling using VS2012
diff --git a/src/qt/mkspecs/win32-msvc2010/qmake.conf b/src/qt/mkspecs/win32-msvc2010/qmake.conf
index 036c522..ea2ddb0 100644
--- a/src/qt/mkspecs/win32-msvc2010/qmake.conf
+++ b/src/qt/mkspecs/win32-msvc2010/qmake.conf
@@ -9,7 +9,7 @@ TEMPLATE = app
CONFIG += qt warn_on release incremental flat link_prl precompile_header autogen_precompile_source copy_dir_files debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe
QT += core gui
DEFINES += UNICODE WIN32 QT_LARGEFILE_SUPPORT
-QMAKE_COMPILER_DEFINES += _MSC_VER=1600 WIN32
+QMAKE_COMPILER_DEFINES += _MSC_VER=1700 WIN32
@vitallium
vitallium / gist:b10447dd6dc9781ebb94
Last active October 22, 2015 18:26
Changelog for 2.0.1

Fixes

Building static libcurl and openssl on Windows

These instructions were tested on Windows 7 Professional w/ Visual Studio 2010

Building openssl

  1. Download the latest openssl from the website; at the time of this writing, it is 1.0.0d
  2. Extract it to your drive; I put it in c:\code\openssl-1.0.0d
  3. install ActiveState perl unless you already have a non-cygwin perl installed on windows