As configured in my dotfiles.
start new:
tmux
start new with session name:
| name "base" | |
| description "Baseline configuration for all systems." | |
| run_list( | |
| "recipe[ohai]", | |
| "recipe[chef-client::delete_validation]", | |
| "recipe[chef-client]", | |
| "recipe[zsh]", | |
| "recipe[git]", | |
| "recipe[users]", |
| access_token=LaOkR40QmYiYoS1eF2GwDPk64c6ONkFM | |
| access_token_secret=T1cfl2tPfoy7oU1whloQUgELcIsTyMlm | |
| consumer_key=hardcoded-consumer | |
| consumer_secret=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxZDzGUGk6rElyPm0iOua0lWg84nOlhQN1gmTFTIu5WFyQFHZF6OA4HX7xATttQZ6N21yKMakuNdRvEudyN/coUqe89r3Ae+rkEIn4tCxGpJWX205xVF3Cgsn8ICj6dLUFQPiWXouoZ7HG0sPKhCLXXOvUXmekivtyx4bxVFD9Zy4SQ7IHTx0V0pZYGc6r1gF0LqRmGVQDaQSbivigH4mlVwoAO9Tfccf+V00hYuSvntU+B1ZygMw2rAFLezJmnftTxPuehqWu9xS5NVsPsWgBL7LOi3oY8lhzOYjbMKDWM6zUtpOmWJA52cVJW6zwxCxE28/592IARxlJcq14tjwYwIDAQAB | |
| url=https://ecomjira.wsgc.com/rest/api/2/application-properties |
| ''' | |
| sample code to demonstrate using JIRA's oauth API | |
| ''' | |
| from rauth.session import OAuth1Session | |
| from rauth.oauth import RsaSha1Signature | |
| from Crypto.PublicKey import RSA | |
| from Crypto.Hash import MD5 | |
| from Crypto import Random | |
| from jira.client import JIRA |
| rauth | |
| PyCrypto | |
| jira-python |
| Input: List numbers, Integer target | |
| Output: List solution | |
| ofSize = 1 #size of combination to generate | |
| while ofSize <= numbers.size: | |
| for each combination in possibleCombinations(numbers, ofSize): | |
| if sum(combination) == target: | |
| return combination | |
| ofSize++ |
| def subsetsum(numbers, target): | |
| size = 1 | |
| subsets = [] | |
| while size <= len(numbers): | |
| for combination in combinations(numbers, size): | |
| if sum(combination) == target: | |
| subsets.append(combination) | |
| size += 1 | |
| return subsets |
| 2016-08-11 20:12:38.939 ERROR 929 --- [ol-11-thread-10] c.n.s.c.o.DefaultOrchestrationProcessor : com.amazonaws.AmazonServiceException: Request limit exceeded. (Service: AmazonEC2; Status Code: 503; Error Code: RequestLimitExceeded; Request ID: 368563fd-b527-47fa-bc33-955e0b1c1b20) | |
| at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1389) | |
| at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:902) | |
| at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:607) | |
| at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:376) | |
| at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:338) | |
| at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:287) | |
| at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:11133) | |
| at com.amazonaws.services.ec2.AmazonEC2Client.describeImages(AmazonEC2Client.java:5106) | |
| at com.amazonaws.services.ec2.AmazonEC2$describeImages$11.call(Unknown Source) |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| Showtimes Results | |
| Results | |
| [{ | |
| "tmsId": "MV007327660000", | |
| "rootId": "11597968", | |
| "subType": "Feature Film", | |
| "title": "Rogue One: A Star Wars Story", | |
| "releaseYear": 2016, |
| # Create keys | |
| openssl genrsa -des3 -out ca.key 4096 | |
| openssl genrsa -des3 -out server.key 4096 | |
| openssl genrsa -des3 -out client.key 4096 | |
| # Self-sign CA certificate | |
| openssl req -new -x509 -days 365 -key ca.key -out ca.crt | |
| # Generate server and client certificate signing requets | |
| openssl req -new -key server.key -out server.csr |