Skip to content

Instantly share code, notes, and snippets.

@marfillaster
marfillaster / pageant.bat
Created July 29, 2011 04:56
Autoload private keys in windows
@echo off
SetLocal EnableDelayedExpansion
set "keys="
for /f %%a IN ('dir /b %UserProfile%\*.ppk') do set "keys=!keys! %UserProfile%\%%a"
start "pageant" "%PROGRAMFILES(X86)%\PuTTY\pageant.exe"%keys%
@marfillaster
marfillaster / gitweb-hightlight.cgi
Created August 17, 2011 16:15
Gitweb highlight aware (highlight params are hardcoded)
#!/usr/bin/perl
# gitweb - simple web interface to track changes in git repositories
#
# (C) 2005-2006, Kay Sievers <kay.sievers@vrfy.org>
# (C) 2005, Christian Gierke
#
# This program is licensed under the GPLv2
use strict;
@marfillaster
marfillaster / mimeapps.list
Created March 14, 2012 15:19
Sublime Text ubuntu xdebug url handler
#~/.local/share/applications/mimeapps.list
[Added Associations]
#...
x-scheme-handler/subl=subl-urlhandler.desktop
@marfillaster
marfillaster / gist:2383497
Created April 14, 2012 10:44
aosp crespo error
grep: build/target/board/generic/recovery.fstab: No such file or directory
build/core/java.mk:20: *** dalvik/dexgen: Invalid LOCAL_SDK_VERSION '4' Choices are: current . Stop.
@marfillaster
marfillaster / openkore_party.md
Created May 23, 2012 03:09
Priest supported party
#auth slave to send chat command to master
auth slavename 1

#auth master to send chat command to slave
auth mastername 1
#config_master
route_step 10
@marfillaster
marfillaster / form.php
Created December 6, 2012 07:29
option override
<?php
class BicycleType extends AbstractType
{
public function buildForm($formBuilder)
{
$formBuilder->add('wheels', 'choice', array('choices' => array(1, 2)));
}
}
class Tricycle extends BicycleType
@marfillaster
marfillaster / config_prod.yml
Created August 22, 2013 14:03
Symfony2 automatic asset versioning. `nginx symfony version`
imports:
- { resource: release.php }
- { resource: config.yml }
framework:
templating:
assets_version: %release_version%
assets_version_format: "assets/rev/%%2$s/%%1$s"
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;

Keybase proof

I hereby claim:

  • I am marfillaster on github.
  • I am marfillaster (https://keybase.io/marfillaster) on keybase.
  • I have a public key whose fingerprint is DC23 23ED D36A 52F5 3D56 3F2F 074F E92E 70F2 1CC6

To claim this, I am signing this object:

// ==UserScript==
// @name coinsph rate info
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author Ken Marfilla
// @match http://stackoverflow.com/questions/5258989/manually-adding-a-userscript-to-google-chrome
// @include https://coins.ph/*
// @grant none
// ==/UserScript==