Skip to content

Instantly share code, notes, and snippets.

View malebolgia's full-sized avatar
:octocat:
mal-a-code

Aaron Villanueva malebolgia

:octocat:
mal-a-code
  • Nimue, Rzeznik, Rzeznor
  • Manila, Philippines
View GitHub Profile
@malebolgia
malebolgia / README.md
Created November 26, 2017 18:56 — forked from evandrix/README.md
Headless web browsers

Here are a list of headless browsers that I know about:

  • [HtmlUnit][1] - Java. Custom browser engine. JavaScript support/DOM emulated. Open source.
  • [Ghost][2] - Python only. WebKit-based. Full JavaScript support. Open source.
  • [Twill][3] - Python/command line. Custom browser engine. No JavaScript. Open source.
  • [PhantomJS][4] - Command line/all platforms. WebKit-based. Full JavaScript support. Open source.
  • [Awesomium][5] - C++/.Net/all platforms. Chromium-based. Full JavaScript support. Commercial/free.
  • [SimpleBrowser][6] - .Net 4/C#. Custom browser engine. No JavaScript support. Open source.
  • [ZombieJS][7] - Node.js. Custom browser engine. JavaScript support/emulated DOM. Open source.
  • [EnvJS][8] - JavaScript via Java/Rhino. Custom browser engine. JavaScript support/emulated DOM. Open source.
select (p.pkey || '-' || i.issuenum) as key, i.summary, i.reporter, i.assignee, t.pname as issuetype, to_char(i.created,'dd/MM/yy HH24:MI') as created, to_char(i.updated,'dd/MM/yy HH24:MI') as modified, i.description, to_char(i.duedate,'dd/MM/yy HH24:MI') as duedate, i.environment, s.pname as priority, i.resolution, i.resolutiondate, w.status, i.timeestimate as originalestimate, i.timeestimate as remainingestimate, i.timespent from jiraissue i, project p, issuetype t, os_currentstep w, priority s;
#display keys and issues
select (p.pkey || '-' || i.issuenum) as key from jiraissue i, project p;
#show all keys
select (p.pkey || '-' || i.issuenum) as key, i.summary, i.reporter, i.assignee, t.pname as issuetype, to_char(i.created,'dd/MM/yy HH24:MI') as created, to_char(i.updated,'dd/MM/yy HH24:MI') as modified, i.description, to_char(i.duedate,'dd/MM/yy HH24:MI') as duedate, i.environment, s.pname as priority, i.resolution, i.resolutiondate, w.status, i.timeestimate as originalestimate, i.timeestimate as remai
@malebolgia
malebolgia / README.md
Created September 10, 2017 02:16 — forked from zenorocha/README.md
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

@malebolgia
malebolgia / navwalker.php
Last active August 29, 2015 14:07
Wordpress
if ( $args->has_children && $depth === 0 ) {
// $atts['href'] = '#';
$atts['href'] = ! empty( $item->url ) ? $item->url : ''; //use link instead of pragma link
$atts['data-toggle'] = 'dropdown';
$atts['class'] = 'dropdown-toggle disabled'; // add disabled to this part so e.preventdefault will be override
} else {
$atts['href'] = ! empty( $item->url ) ? $item->url : '';
}
$atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args );
Assuming the site is already at /var/www/
Copy the /etc/apache2/sites-available/default file with the name same as the new sites:
Ubuntu 14 is using conf below is alreay Out Dated
$sudo cp default ntvwordpress
@malebolgia
malebolgia / gist:ea25931920588ef55219
Created May 11, 2014 11:16
Sencha Command Build Production - Sencha Architect coded ready for deployment
Create first a folder for production
sencha -sdk C:\xampp\htdocs\ext-4.2.1.883 generate app PurekoBBS PurekoProd
if ever encounter error below
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: Cannot find file: G:\Program Files\Sencha\Sencha\Cmd\repo\.sencha\codegen.json
[ERR]
@malebolgia
malebolgia / Powershell
Last active August 20, 2017 19:37
Window Tricks
-----Clear DNS
ipconfig /flushdns
net stop dnscache
net start dnscache
----Enable Administrator login
net user Administrator /active:yes
----Echoing text
Get-Content c:\scripts\test.txt
@malebolgia
malebolgia / Heroku logs - refinery
Last active December 15, 2015 10:08
Error Heroku Refinery Dashboard
2013-03-26T04:17:18+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activereco
rd-3.2.2/lib/active_record/relation.rb:170:in `exec_queries'
2013-03-26T04:17:18+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack
-3.2.2/lib/abstract_controller/base.rb:167:in `process_action'
2013-03-26T04:17:18+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack
-3.2.2/lib/action_controller/metal/instrumentation.rb:30:in `block in process_ac
tion'
2013-03-26T04:17:18+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack
-3.2.2/lib/action_controller/metal/rendering.rb:10:in `process_action'
2013-03-26T04:17:18+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack
@malebolgia
malebolgia / events.html
Created November 19, 2012 06:23
Json for timeline using awesome timeline.verite js CakePHP
<script>
createStoryJS({
type: 'timeline',
width: '700',
height: '600',
start_at_slide: '4',
hash_bookmark: true,
start_zoom_adjust: '-1',
source: '/jsonexports/event_workshop_timeline',
embed_id: 'event-timeline',
@malebolgia
malebolgia / html.php
Created October 10, 2012 09:57
Auth Permissions hide links (CakePHP 1.3) Framework
/**
* Override html helper put at the apps/views/helper/html.php
*/
var $helpers = array('Permissions');
/*
* Creates an HTML link.
*
* If $url starts with "http://" this is treated as an external link. Else,