Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kanzie on github.
  • I am kanzie (https://keybase.io/kanzie) on keybase.
  • I have a public key ASB6NPSLN6Ho9ZgdFtZybNCOeZY7MTKq3bOMmlCdV-pJVgo

To claim this, I am signing this object:

@kanzie
kanzie / gist:27615ba5cd90306c4e3e
Created December 5, 2014 21:49
my flexget check output
2014-12-05 22:48 WARNING check Config line 3 is likely missing ':' at the end
2014-12-05 22:48 WARNING check Config line 6 is likely missing ':' at the end
2014-12-05 22:48 WARNING check Config line 9 is likely missing ':' at the end
2014-12-05 22:48 VERBOSE check Pre-checked 227 configuration lines
Traceback (most recent call last):
File "/usr/local/bin/flexget", line 9, in <module>
load_entry_point('FlexGet==1.2.230', 'console_scripts', 'flexget')()
File "/usr/local/lib/python2.7/dist-packages/flexget/__init__.py", line 36, in main
manager.start()
File "/usr/local/lib/python2.7/dist-packages/flexget/manager.py", line 290, in start
@kanzie
kanzie / gist:c979bd26b5db1bdccef2
Last active August 29, 2015 14:03
send sms with beepsend example
<?php
$apiToken = "";
$data = array(
"from" => "",
"to" => "",
"message" => ""
);
$data_string = json_encode($data);
$ch = curl_init('https://api.beepsend.com/2/sms/');
### Keybase proof
I hereby claim:
* I am kanzie on github.
* I am kanzie (https://keybase.io/kanzie) on keybase.
* I have a public key whose fingerprint is 8919 6590 1904 A4A4 375D 015F E7CB 6644 4CEA 5F48
To claim this, I am signing this object:
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<title>Blocked :: PassThePopcorn</title>
<link>http://tls.passthepopcorn.me/</link>
<description>RSS feed.</description>
<language>en-us</language>
<lastBuildDate>Tue, 15 Oct 2013 17:35:57 +0000</lastBuildDate>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Gazelle Feed Class</generator>
</channel>
<%=
require 'yaml'
simple_format @revisions.to_yaml
%>
<%
@revisions.each do |revision|
%>
<div class="revisionContainer">
<span class="labelSimple"><%= User.find(revision.created_by) %></span>
class CreatePdmRevisions < ActiveRecord::Migration
def self.up
create_table :pdm_revisions do |t|
t.column :commit_message, :string
t.column :attachment, :string
t.column :created_by, :string
t.column :created_date, :datetime
t.column :document_type, :string
t.column :pdm_document_id, :int
end
class CreatePdmDocuments < ActiveRecord::Migration
def self.up
create_table :pdm_documents do |t|
t.column :id, :id
t.column :description, :text
t.column :locked_by, :int
t.column :time_stamp, :date
t.column :last_revision_by, :int
t.column :name, :string
end
@kanzie
kanzie / gist:988582
Created May 24, 2011 11:54
Cant get the association to work so I can count number of revisions per document
Model pdm_documents:
class PdmDocument < ActiveRecord::Base
has_many :revisions
End
Model pdm_revisions:
class PdmRevision < ActiveRecord::Base