Skip to content

Instantly share code, notes, and snippets.

Avatar

Cyle H nozpheratu

View GitHub Profile
@nozpheratu
nozpheratu / gist:236a40b4f6026269edc9
Created Jan 7, 2016
powershell_out! chef output
View gist:236a40b4f6026269edc9
# 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 Nov 7, 2014
AgileCRM duplicate note creation
View gist:414fda667f8daff46f38
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=cyle@cogmation.com&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:
View gist:806f0380ea34694260d1
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 "myemail@example.com: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 Oct 8, 2014
AgileCRM REST api bulk contact delete with DELETE
View gist:71337e7f6b7031dea662
curl https://mydomain.agilecrm.com/dev/api/contacts/bulk -d '{"model_ids" : [4808361379889152, 5069036098420736]}' -v -u "myemail@example.com: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 Aug 29, 2015
AgileCRM REST api bulk contact delete with POST
View gist:ab886ff3b89352ee5ae3
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 "myemail@example.com: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 Oct 7, 2014
AgileCRM Contact PUT curl request output
View gist:4fbc442d1e413bc69109
curl https://mycompany.agilecrm.com/dev/api/contacts/5735995932672000 -H "Accept :application/xml" -v \
-u "test@example.com: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):
View exhibit.rb
require "delegate"
class Exhibit < SimpleDelegator
include Pundit
def self.exhibits
[
RegistrationExhibit,
EliminationExhibit,
@nozpheratu
nozpheratu / matchmaking.js.jsx
Last active Aug 29, 2015
In this gist I'm trying to get the PlayerForm to receive the new players state as it gets updated in the MatchList component.
View matchmaking.js.jsx
// 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"
View ui_spec.rb
require "sikulix"
require "rspec"
def image(file_name)
"#{Dir.pwd}/images/#{file_name}"
end
describe "UI" do
include SikuliX4Ruby
@nozpheratu
nozpheratu / gist:8445614
Created Jan 15, 2014
Twitter Bootstrap Mail Interface
View gist:8445614
<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>