Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>comment</key>
<string>
TODO: unresolved issues
text:
@ppdeassis
ppdeassis / bug_report.rb
Created May 25, 2014 14:29
Ruby minimal script for bug reporting
# encoding: utf-8
# source http://www.jonathanleighton.com/articles/2011/awesome-active-record-bug-reports/
gem 'rails', '3.1.0' # change as required
require 'active_record'
# Print out what version we're running
puts "Active Record #{ActiveRecord::VERSION::STRING}"
# Connect to an in-memory sqlite3 database (more on this in a moment)
# config/initializers/char_converter.rb
require 'uri'
module Support
class CharConverter
def initialize(app)
@app = app
end
@ppdeassis
ppdeassis / tomcat6
Created February 18, 2014 23:50 — forked from willnet/tomcat6
#!/bin/bash
# description: Tomcat6 service
# processname: java
# chkconfig: - 99 1
# Source function library.
. /etc/init.d/functions
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre
export TOMCAT_USER=solr
export CATALINA_HOME=/opt/tomcat6
@ppdeassis
ppdeassis / Default (OS X).sublime-keymap
Last active July 25, 2018 22:20
Sublime Text - Key binding Preferences
[
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
{ "keys": ["super+shift+w"], "command": "close_all" },
{ "keys": ["super+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["ctrl+shift+d"], "command": "file_diff_menu" },
{ "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["alt+shift+down"], "command": "select_lines", "args": {"forward": true} }
]
@ppdeassis
ppdeassis / model_template.rb
Last active December 15, 2015 20:11
Rails model template
class ContractLink < ActiveRecord::Base
# NOTE: whenever possible, use alphabetic order
# includes/extends
# --
include MyModule
extend MyOtherModule
# class definitions, like gem configurations/initializations
# --
@ppdeassis
ppdeassis / whenever
Created January 17, 2014 23:18
whenever gem sample schedule.rb file
# IMPORTANT
# When you run `wheneverize .` on your app root path, it'll create a config/schedule.rb file.
# Below is a sample content for schedule.rb
# -------
# this file is in app/config. let's find out app root path
app_path = "#{File.expand_path(File.dirname(__FILE__))}/../"
# log files
stdlog = "#{app_path}/messages"
@ppdeassis
ppdeassis / .bash_profile
Last active December 31, 2015 15:59
Bash profile
# Tell ls to be colourful
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
# Tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
# ignore dupes on bash history
export HISTCONTROL=ignoredups
@ppdeassis
ppdeassis / .vimrc
Last active December 31, 2015 15:49
Vim rc
" syntax highlighting
syntax on
" tab to 2 spaces
set tabstop=2 shiftwidth=2 expandtab
" line numbers
set number
@ppdeassis
ppdeassis / Preferences.sublime-settings
Last active March 6, 2019 12:33
Sublime Text 3 Preferences
{
"binary_file_patterns":
[
"*.csv",
"*.dds",
"*.doc",
"*.docx",
"*.eot",
"*.gif",
"*.gz",