Skip to content

Instantly share code, notes, and snippets.

View andychongyz's full-sized avatar
🌶️
BURN!

Andy Chong andychongyz

🌶️
BURN!
  • Kuala Lumpur, Malaysia
  • 05:19 (UTC +08:00)
View GitHub Profile
@andychongyz
andychongyz / heroku_deploy.yml
Created January 29, 2020 06:45
github action - deploy master to heroku
name: deployment
on: [push]
pull_request:
types: [closed]
branches:
- master
jobs:
main:
@andychongyz
andychongyz / rspec.yml
Created January 28, 2020 10:18
knapsack rspec github flow
name: rspec
on: [push]
env:
SHOPIFY_API_KEY: ${{ secrets.SHOPIFY_API_KEY }}
SHOPIFY_API_SECRET: ${{ secrets.SHOPIFY_API_SECRET }}
REACT_APP_RETAILER_CLIENT_URL: ${{ secrets.REACT_APP_RETAILER_CLIENT_URL }}
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ""
<soapenv:Envelopexmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"xmlns:v1=\"http://ws.aramex.net/ShippingAPI/v1/\">
<soapenv:Header/>
<soapenv:Body>
<v1:PickupCreationRequest>
<v1:ClientInfo>
<v1:UserName>info@postco.com.my</v1:UserName>
<v1:Password>TvAgQ2D4TW5ieiFG4l</v1:Password>
<v1:Version>v1.0</v1:Version>
<v1:AccountNumber>139695</v1:AccountNumber>
<v1:AccountPin>331431</v1:AccountPin>
@andychongyz
andychongyz / ready time error.xml
Last active February 23, 2018 06:56
Aramex Sample request
"
<soapenv:Envelopexmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"xmlns:v1=\"http://ws.aramex.net/ShippingAPI/v1/\">
<soapenv:Header/>
<soapenv:Body>
<v1:PickupCreationRequest>
<v1:ClientInfo>
//sensitive data removed
</v1:ClientInfo>
<v1:Transaction>
<v1:Reference1>PostCoParcelReturnService</v1:Reference1>
"
<soapenv:Envelopexmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"xmlns:v1=\"http://ws.aramex.net/ShippingAPI/v1/\">
<soapenv:Header/>
<soapenv:Body>
<v1:ShipmentCreationRequest>
<v1:ClientInfo>
</v1:ClientInfo>
<v1:Transaction>
<v1:Reference1>PostCoParcelReturnService</v1:Reference1>
<v1:Reference2></v1:Reference2>
@andychongyz
andychongyz / create shipment.xml
Created February 9, 2018 07:35
aramex dev create shipment credential error with AMM credential
"\n" +
" <soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:v1=\"http://ws.aramex.net/ShippingAPI/v1/\">\n" +
" <soapenv:Header/>\n" +
" <soapenv:Body>\n" +
" <v1:ShipmentCreationRequest>\n" +
" <v1:ClientInfo>\n" +
" <v1:UserName>testingapi@aramex.com</v1:UserName>\n" +
" <v1:Password>R123456789$r</v1:Password>\n" +
" <v1:Version>v1.0</v1:Version>\n" +
" <v1:AccountNumber>102331</v1:AccountNumber>\n" +
@andychongyz
andychongyz / aramex create shipment credential error.xml
Last active February 9, 2018 07:32
aramex create shipment credential error with LON credential
<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:v1=\"http://ws.aramex.net/ShippingAPI/v1/\">\n" +
" <soapenv:Header/>\n" +
" <soapenv:Body>\n" +
" <v1:ShipmentCreationRequest>\n" +
" <v1:ClientInfo>\n" +
" <v1:UserName>testingapi@aramex.com</v1:UserName>\n" +
" <v1:Password>R123456789$r</v1:Password>\n" +
" <v1:Version>v1.0</v1:Version>\n" +
" <v1:AccountNumber>102331</v1:AccountNumber>\n" +
" <v1:AccountPin>331321</v1:AccountPin>\n" +
2016-10-05T04:03:05.190341+00:00 heroku[web.1]: State changed from crashed to starting
2016-10-05T04:03:09.169703+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma_production.rb`
2016-10-05T04:03:11.673229+00:00 app[web.1]: [3] Puma starting in cluster mode...
2016-10-05T04:03:11.673257+00:00 app[web.1]: [3] * Version 3.6.0 (ruby 2.3.0-p0), codename: Sleepy Sunday Serenity
2016-10-05T04:03:11.673259+00:00 app[web.1]: [3] * Min threads: 5, max threads: 5
2016-10-05T04:03:11.673259+00:00 app[web.1]: [3] * Environment: production
2016-10-05T04:03:11.673260+00:00 app[web.1]: [3] * Process workers: 2
2016-10-05T04:03:11.673261+00:00 app[web.1]: [3] * Preloading application
2016-10-05T04:03:12.492744+00:00 app[web.1]: ** [NewRelic][2016-10-05 04:03:12 +0000 web.1 (3)] INFO : Starting the New Relic agent in "production" environment.
2016-10-05T04:03:12.492772+00:00 app[web.1]: ** [NewRelic][2016-10-05 04:03:12 +0000 web.1 (3)] INFO : To prevent agent startup add a NEW_RELIC_AGENT_EN
daemon off;
# Heroku dynos have at least 4 cores.
worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>;
events {
use epoll;
accept_mutex on;
worker_connections 1024;
}