This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package: | |
name: Sinatra | |
version: 0.1.0 | |
description: Sinatra melange demo | |
target-architecture: | |
- aarch64 | |
- x86_64 | |
copyright: | |
- license: Apache-2.0 | |
paths: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "papoin" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" } ], "name": "approve", "outputs": [ { "name": "success", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "", "type": "uint256", "value": "2.2111e+22" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "name": "success", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [ { " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OmarMB:~ omar$ minishift delete | |
Deleting local OpenShift cluster... | |
Machine deleted. | |
OmarMB:~ omar$ oc new-app https://github.com/openshift/nodejs-ex -l name=myapp --allow-missing-images | |
^C | |
OmarMB:~ omar$ minishift start --deploy-router | |
Starting local OpenShift cluster... | |
oc is now configured to use the cluster. | |
OmarMB:~ omar$ oc login --username=admin --password=admin | |
Login successful. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ minishift start --vm-driver=virtualbox --deploy-registry --deploy-router | |
$ oc login --username=admin --password=admin | |
$ oc new-app https://github.com/lachie83/croc-hunter.git | |
$ oc expose svc/croc-hunter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "testhost ansible_connection=docker ansible_host=fb99f018ea3f" > inventory | |
echo "- hosts: testhost" > playbook.yml | |
echo " tasks:" >> playbook.yml | |
echo " - name: host is reachable" >> playbook.yml | |
echo " ping:" >> playbook.yml | |
ansible-playbook -vvv -i inventory playbook.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# provisioner "local-exec" { | |
# command = "sleep 120 && echo -e \"[windows]\n${aws_instance.tabl | |
eau-server.associate_public_ip_address} ansible_ssh_user=admistrator\ | |
" > inventory && ansible-playbook -i inventory ../../ansible/r-statis | |
tics/rstatistics.yml" | |
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am pollosp on github. | |
* I am pollosp (https://keybase.io/pollosp) on keybase. | |
* I have a public key whose fingerprint is 06C9 4070 7B41 1B20 EA6D 222F 8BFF C7B7 BD2E B64D | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time curl http://api.keen.io | |
{"message": "Specified API Key is invalid. API Key: 'None'.", "error_code": "InvalidApiKeyError"} | |
real 0m34.150s | |
user 0m0.008s | |
sys 0m0.004s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo fdisk /dev/xvda << EEOF | |
d | |
n | |
p | |
1 | |
4096 | |
| |
w | |
EEOF | |
sudo partx -u /dev/xvda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Example Invocation | |
#./dbconv.sh --rds_jdbc=jdbc:mysql://dbtest.cob91vaba6fq.us-east-1.rds.amazonaws.com:3306/sakila | |
# --rds_tbl=customer --rds_pwd=testpassword --rds_usr=admin | |
# --red_jdbc=jdbc:postgresql://eudb3.cvprvckckqrm.eu-west-1.redshift.amazonaws.com:5439/dbtest?tcpKeepAlive=true | |
# --red_usr=admin --red_pwd=test123E —red_tbl=RedTub | |
# —red_dist=customer_id —red_sort=create_date --red_ins=OVERWRITE_EXISTING | |
NewerOlder