Skip to content

Instantly share code, notes, and snippets.

View tonywang0122's full-sized avatar
🤩

HC Wang tonywang0122

🤩
View GitHub Profile
#!/bin/sh
code --install-extension donjayamanne.githistory
code --install-extension eamodio.gitlens
code --install-extension EditorConfig.EditorConfig
code --install-extension GabrielBB.vscode-lombok
code --install-extension mhutchie.git-graph
code --install-extension ms-azuretools.vscode-docker
code --install-extension Pivotal.vscode-boot-dev-pack
code --install-extension Pivotal.vscode-spring-boot
#!/bin/bash
#
# Install Dev & Tool package
#
# Eclipse Adoptium GPG key
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo apt-key add -
# Configure the Eclipse Adoptium apt repository
#!/bin/bash
#
# Install Dev & Tool package
#
apt update
apt install wget git libaio1 g++ make python unzip -y
apt clean
select
cast((oi * sh.star_rating) as float4) as score,
-- oi as score,
sh.htl_id as htl_id,
sh.htl_name as htl_name,
hoteldb.get_htl_enames(cast(sh.htl_id as text)) as htl_ename,
sh.star_rating as star_rating,
sh.geo_info -> 'Country' ->> 'Name' as country_name,
sh.geo_info -> 'Province' ->> 'Name' as provice_name,
sh.geo_info -> 'City' ->> 'Name' as city_name,
package eztravel.airasia.api;
import java.rmi.RemoteException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import newskies.arms.airasia.ARMSWSStub;
import newskies.arms.airasia.ArrayOfAvailabilityRequest;
var soap = require('soap');
var url = 'https://testarms.airasia.com/aaws/armsws.asmx?WSDL';
var args = {NSReq: {Username: 'blabla', Password: 'blabla'}};
soap.createClient(url, function(err, client) {
client.Login(args, function(err, result){
console.log(result.LoginResult.SessionID);
});
});
@tonywang0122
tonywang0122 / gist:7669674
Created November 27, 2013 02:15
Some Cloud Service
Version Control
1. github.com
2. bitbucket.com
Team Site
1. www.asana.com
2. trello.com
3. www.hipchat.com
4. evernote.com/intl/zh-tw/business
5. c9.io
@tonywang0122
tonywang0122 / rvm_ruby_openssl_fix.sh
Created March 5, 2012 02:56
rvm ruby openssl fix
cd ruby_src_dir/ext/openssl
ruby extconf.rb
make
make install
@tonywang0122
tonywang0122 / gist:1311901
Created October 25, 2011 08:48
How to install nodejs and npm at user directory
1. Download nodejs source
cd ~
git clone https://github.com/joyent/node.git
2. switch branch, if new version exist, use the new version number
cd ~/node
git checkout v0.5.10