I hereby claim:
- I am jozzawockee on github.
- I am jozzawockee (https://keybase.io/jozzawockee) on keybase.
- I have a public key ASA5669Q9T7qY9xQkbzyl6kaDKNorixDkeaxZkYUE4XsYAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # ... | |
| config.middleware.insert_before "Rack::Cache", "SkipCache" | |
| # ... |
| # Replace oauth_consumer_key with your consumer key | |
| # Replace oauth_token with your access token | |
| # Replace oauth_signature with "your_consumer_secret%26your_access_token_secret" | |
| # Note that the oauth_nonce must change and be unique for every request | |
| curl -X GET 'https://yoursite.desk.com/api/v1/account/verify_credentials.json' -H 'Authorization: OAuth oauth_version="1.0",oauth_timestamp=1321473112,oauth_nonce=937459123,oauth_signature_method="PLAINTEXT",oauth_consumer_key="nMu4u9pLRfDrxhPVK5yn",oauth_token="ivouGxpsJbyIU5viPKOO",oauth_signature="vLr9MjzowzVwbvREpWhIVQMJQI0G7Pin6KHCoXak%26igQY0L2bcbwonZTC4kG5ulZxTMTDW0K0zIyceSuF"' |
| require 'openssl' | |
| require 'base64' | |
| key = '7fc4d85e2e4193b8' | |
| crypted_text = Base64.decode64(ARGV[0]) | |
| cipher = OpenSSL::Cipher::Cipher.new("aes-128-cbc") | |
| cipher.decrypt | |
| cipher.key = key |
| # Ruby example for exporting Cases to CSV | |
| # requires ruby version 1.9.2 | |
| # requires oauth and json gems (gem install oauth json) | |
| require "rubygems" | |
| require "oauth" | |
| require "json" | |
| require "csv" | |
| ASSISTLY_DOMAIN = "domain.assistly.com" |
| # Ruby example for exporting Cases to CSV | |
| # requires ruby version 1.9.2 | |
| # requires oauth and json gems (gem install oauth json) | |
| require "rubygems" | |
| require "oauth" | |
| require "json" | |
| require "csv" | |
| ASSISTLY_DOMAIN = "domain.assistly.com" |
| ruby-1.9.2-p180 :001 > p = Post.create | |
| => #<Post id: 1, title: nil, comments_count: 0, created_at: "2011-08-29 02:58:04", updated_at: "2011-08-29 02:58:04"> | |
| ruby-1.9.2-p180 :002 > p.comments.create | |
| => #<Comment id: 1, title: nil, post_id: 1, created_at: "2011-08-29 02:58:16", updated_at: "2011-08-29 02:58:16"> | |
| ruby-1.9.2-p180 :003 > p.comments.create | |
| => #<Comment id: 2, title: nil, post_id: 1, created_at: "2011-08-29 02:58:18", updated_at: "2011-08-29 02:58:18"> | |
| ruby-1.9.2-p180 :004 > p.reload | |
| => #<Post id: 1, title: nil, comments_count: 2, created_at: "2011-08-29 02:58:04", updated_at: "2011-08-29 02:58:04"> | |
| ruby-1.9.2-p180 :005 > Post.create | |
| => #<Post id: 2, title: nil, comments_count: 0, created_at: "2011-08-29 02:58:30", updated_at: "2011-08-29 02:58:30"> |
| POST /user_sessions.json { "email": "[email protected]", "password": "somepassword" } | |
| => { "user_credentials": "123abc" } | |
| GET /case_filters/1/cases.json?user_credentials=123abc | |
| => [ ...cases ... ] |
| #!/bin/sh -x | |
| # repull: Merge the latest changes from the master branch into your current branch | |
| function repull { | |
| ref=$(git symbolic-ref HEAD 2> /dev/null) || exit 0 | |
| CURRENT="${ref#refs/heads/}" | |
| git checkout master | |
| git pull origin master | |
| git checkout ${CURRENT} | |
| git rebase master | |
| } |
| function parse_git_branch { | |
| ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
| echo "("${ref#refs/heads/}")" | |
| } | |
| BRIGHT_RED="\[\033[1;31m\]" | |
| DULL_WHITE="\[\033[0;37m\]" | |
| BRIGHT_WHITE="\[\033[1;37m\]" | |
| PS1="${DULL_WHITE}\w${BRIGHT_RED} \$(parse_git_branch)${BRIGHT_WHITE}\$ " |