Skip to content

Instantly share code, notes, and snippets.

@nozpheratu
nozpheratu / gist:236a40b4f6026269edc9
Created January 7, 2016 20:40
powershell_out! chef output
# Logfile created on 2016-01-07 20:30:46 +0000 by logger.rb/41954
[2016-01-07T20:30:47+00:00] INFO: Started chef-zero at http://localhost:8889 with repository at C:\ProgramData\OpsWorksAgent\var\chef\71300020150612113504
One version per cookbook
clients at C:/ProgramData/OpsWorksAgent/var/chef/71300020150612113504/clients
cookbooks at C:/ProgramData/OpsWorksAgent/71300020150612113504/chef/cookbooks
data_bags at C:/ProgramData/OpsWorksAgent/var/chef/71300020150612113504/data_bags
environments at C:/ProgramData/OpsWorksAgent/var/chef/71300020150612113504/environments
nodes at C:/ProgramData/OpsWorksAgent/var/chef/71300020150612113504/nodes
roles at C:/ProgramData/OpsWorksAgent/var/chef/71300020150612113504/roles
users at C:/ProgramData/OpsWorksAgent/var/chef/71300020150612113504/users
@nozpheratu
nozpheratu / gist:414fda667f8daff46f38
Created November 7, 2014 23:44
AgileCRM duplicate note creation
D, [2014-11-07T17:40:56.510399 #16808] DEBUG -- : [httplog] Connecting: justtesting.agilecrm.com:443
D, [2014-11-07T17:40:56.709039 #16808] DEBUG -- : [httplog] Sending: POST http://justtesting.agilecrm.com:443/dev/api/contacts/email/note/add
D, [2014-11-07T17:40:56.709118 #16808] DEBUG -- : [httplog] Data: [email protected]&note={"subject":"Made a webstore purchase","description":"Order ID: i9vtb0ima\nPayment ID: ch_14wLO12XtjxbXZd4RobbvR3I\n-----------------------------------------------------------\n1 STEM Virtual Robotics Toolkit (@500.00/ea): $500.00\n-----------------------------------------------------------\nSub-total: $500.00\nPST: $0.00\nGST: $25.00\nTOTAL: $525.00\n\nGo to http://cogmation.com/transactions/i9vtb0ima for additional information."}
D, [2014-11-07T17:40:57.405360 #16808] DEBUG -- : [httplog] Status: 204
D, [2014-11-07T17:40:57.405435 #16808] DEBUG -- : [httplog] Benchmark: 0.696179858 seconds
D, [2014-11-07T17:40:57.405488 #16808] DEBUG -- : [httplog] Response:
@nozpheratu
nozpheratu / gist:806f0380ea34694260d1
Created October 8, 2014 17:11
Add Tags to contacts 404
cyle@cyle-UX302LG:~/development/ruby/gems/agilecrm-ruby-api (seperate-classes)$ curl https://mydomain.agilecrm.com/dev/api/contacts/bulk/tags -H "Accept : application/json" -d '{"tags":["Paid in December" "Not paid in March" "paid in April"], "contact_ids":[4808361379889152]}' -v -u "[email protected]:xxxxx" -X POST
* About to connect() to mydomain.agilecrm.com port 443 (#0)
* Trying 72.14.246.1... connected
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
@nozpheratu
nozpheratu / gist:71337e7f6b7031dea662
Created October 8, 2014 16:36
AgileCRM REST api bulk contact delete with DELETE
curl https://mydomain.agilecrm.com/dev/api/contacts/bulk -d '{"model_ids" : [4808361379889152, 5069036098420736]}' -v -u "[email protected]:4uqfa24di3qhllialsr816dhdl" -X DELETE
* About to connect() to mydomain.agilecrm.com port 443 (#0)
* Trying 72.14.246.1... connected
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
@nozpheratu
nozpheratu / gist:ab886ff3b89352ee5ae3
Last active August 29, 2015 14:07
AgileCRM REST api bulk contact delete with POST
cyle@cyle-UX302LG:~/development/ruby/gems/agilecrm-ruby-api (seperate-classes)$ curl https://mydomain.agilecrm.com/dev/api/contacts/bulk -d '{"model_ids" : [4808361379889152, 5069036098420736]}' -v -u "[email protected]:xxxxx" -X POST
* About to connect() to mydomain.agilecrm.com port 443 (#0)
* Trying 72.14.246.1... connected
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
@nozpheratu
nozpheratu / gist:4fbc442d1e413bc69109
Created October 7, 2014 19:06
AgileCRM Contact PUT curl request output
curl https://mycompany.agilecrm.com/dev/api/contacts/5735995932672000 -H "Accept :application/xml" -v \
-u "[email protected]:xxxx" -d '{"tags":["foo"] }' -X PUT
* About to connect() to mycompany.agilecrm.com port 443 (#0)
* Trying 72.14.246.1... connected
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
@nozpheratu
nozpheratu / exhibit.rb
Created August 23, 2014 18:00
Exhibit class
require "delegate"
class Exhibit < SimpleDelegator
include Pundit
def self.exhibits
[
RegistrationExhibit,
EliminationExhibit,
@nozpheratu
nozpheratu / matchmaking.js.jsx
Last active August 29, 2015 14:04
In this gist I'm trying to get the PlayerForm to receive the new players state as it gets updated in the MatchList component.
// Example eliminations.json to generate match data
// [
// {
// "id":223,
// "competition_id":2,
// "home_id":2,
// "away_id":9,
// "round":1,
// "home_name":"nicolas_badila",
// "away_name":"thedarkship4"
require "sikulix"
require "rspec"
def image(file_name)
"#{Dir.pwd}/images/#{file_name}"
end
describe "UI" do
include SikuliX4Ruby
@nozpheratu
nozpheratu / gist:8445614
Created January 15, 2014 22:01
Twitter Bootstrap Mail Interface
<table class="table table-condensed table-hover">
<thead>
<tr>
<th class="span1"><input type="checkbox"></th>
<th class="span2"></th>
<th class="span2"></th>
<th class="span9"></th>
<th class="span2"></th>
</tr>
</thead>