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
@vitallium
vitallium / gist:5842641
Created June 22, 2013 21:14
Debug log for proxy auth
D:\Dev\phantomjs\bin>phantomjs --debug=yes --proxy=http://localhost:3128 --proxy-auth=user:pass tweets.js
2013-06-23T01:09:55 [DEBUG] CookieJar - Created but will not store cookies (use option '--cookies-file=<filename>' to enable persisten cookie storage)
2013-06-23T01:09:56 [DEBUG] Phantom - execute: Configuration
2013-06-23T01:09:56 [DEBUG] 0 objectName : ""
2013-06-23T01:09:56 [DEBUG] 1 cookiesFile : ""
2013-06-23T01:09:56 [DEBUG] 2 diskCacheEnabled : "false"
2013-06-23T01:09:56 [DEBUG] 3 maxDiskCacheSize : "-1"
2013-06-23T01:09:56 [DEBUG] 4 ignoreSslErrors : "false"
2013-06-23T01:09:56 [DEBUG] 5 localToRemoteUrlAccessEnabled : "false"
2013-06-23T01:09:56 [DEBUG] 6 outputEncoding : "UTF-8"
@vitallium
vitallium / bridge_example.js
Created June 26, 2013 11:48
Returning variables from page context
var page = require('webpage').create();
page.open('test.html', function() {
var v = page.evaluate(function() {
return HINCLUDED;
});
console.log(v);
phantom.exit();
});
@vitallium
vitallium / Boxstarter
Last active July 12, 2016 00:08 — forked from mwrock/Boxstarter
[DevBox] Corporate Work machine
cinst VisualStudio2012Ultimate -InstallArguments WebTools
cinst VisualStudio2013Ultimate -InstallArguments WebTools
cinst resharper
cinst fiddler4
cinst mssqlserver2012express
cinst conemu
cinst notepad2-mod
cinst poshgit
cinst googlechrome
cinst sysinternals
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 / gist:b10447dd6dc9781ebb94
Last active October 22, 2015 18:26
Changelog for 2.0.1

Fixes