Skip to content

Instantly share code, notes, and snippets.

View fkumro's full-sized avatar
💭
Elixir

Frank Kumro Jr fkumro

💭
Elixir
View GitHub Profile

Keybase proof

I hereby claim:

  • I am fkumro on github.
  • I am frigidcode (https://keybase.io/frigidcode) on keybase.
  • I have a public key ASAvQpaINTFCQ0GMTyJE2unezejFw4KI15QGLeWRKe2u0Qo

To claim this, I am signing this object:

class Foo(object):
@property
def acct_num(self):
# perform action on another db field to get the acct_num
@acct_num.setter
def acct_num(self, value):
# operate on value and then set to db field
# Now in my Resource file
execute pathogen#infect()
syntax on
filetype plugin indent on
set t_Co=256
let mapleader = ","
let g:ruby_path = system('rvm current')
set background=dark
:colo desert256
:set tabstop=2
:set shiftwidth=2
@fkumro
fkumro / custom_headers.rb
Created May 24, 2013 00:17
Showing how to send custom headers using rest-client
resource = RestClient::Request.execute(:method => :get, :url => 'YOUR_URL_HERE', :headers => {'X-Pitbull' => 'woof', 'X-Kitten' => 'fluffy'})
@fkumro
fkumro / open_gl_patch_4.2.10.patch
Created April 5, 2013 18:25
Patch for Virtual Box Additions 4.2.10 and CentOS 6.4 execute patch in /usr/src/vboxguest-4.2.10/vboxvideo patch < patch_name.patch then run /etc/init.d/vboxadd setup Patch credit goes to dmischa (https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=41693&forum=55)
--- vboxvideo_drm.c.ori 2013-03-01 12:11:52.146639050 +0100
+++ vboxvideo_drm.c 2013-03-01 12:18:57.231061446 +0100
@@ -70,6 +70,9 @@
# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,3)
# define DRM_RHEL63
# endif
+# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,4)
+# define DRM_RHEL64
+# endif
# endif
NoMethodError at /users
undefined method `zero?' for nil:NilClass
27 def aliased_name_for(table_name, aliased_name = nil)
28 aliased_name ||= table_name
29
30 if aliases[table_name].zero?
31 # If it's zero, we can have our table_name
32 aliases[table_name] = 1
NOEXEC_DEBUG=1 roo
Noexec - starting check
No valid Gemfile found, moving on
@fkumro
fkumro / Regexp::Common URI
Created October 22, 2012 19:21
Sample URL validation with Regexp::Common
use Regexp::Common qw /URI/;
sub _is_valid_url
{
my ($self, $url) = @_;
my $regexp = qr($RE{URI}{HTTP}{-scheme=>qr/https?/}{-keep});
return 1 if ($url =~ $regexp);
@fkumro
fkumro / SublimeConfig
Created July 18, 2012 14:56
My Sublime Text 2 User Configuration
{
"color_scheme": "Packages/User/Tomorrow-Night.tmTheme",
"caret_style": "phase",
"default_line_ending": "unix",
"font_size": 11,
@fkumro
fkumro / gist:953982
Created May 3, 2011 19:05
catalyst_testing_tutorial
use strict;
use warnings;
use Test::More tests => 1;
use lib 't';
use Mock::Cache; #example of mocked object needed later
BEGIN { use_ok 'MyApp::Model::Books' }