Skip to content

Instantly share code, notes, and snippets.

View vitoc's full-sized avatar
😀
I am OK!

Vito Chin vitoc

😀
I am OK!
View GitHub Profile
@vitoc
vitoc / flat.yml
Last active August 15, 2021 09:02
Flat data workflow for Singapore temperature update
name: data
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch: {}
push:
paths:
- .github/workflows/flat.yml
jobs:
scheduled:
@vitoc
vitoc / gist:2dda3559aafe8e2603f74b418be16532
Created November 19, 2020 03:53
Cloud-native applications workshop (Dec 2020)
This event has not started. The short link to the event will be updated closer to event date.
@vitoc
vitoc / test.sh
Created August 1, 2018 06:25
TouchTest
cd ~
touch chengho.txt
@vitoc
vitoc / zos.sh
Created July 31, 2018 09:34
Azure Custom Script Extension to install ZeppelinOS
npm install --global zos
@vitoc
vitoc / ether-stats-on-tx.md
Last active May 25, 2018 09:28
Add eth-netstats to Transaction node of private blockchain deployed using Ethereum Proof-Of-Work Consortium solution template on Azure

SSH to transaction node (see SSH-TO-FIRST-TX-NODE-REGION1 in deployment output at microsoft-azure-blockchain.azure-blockchain-ether-[DATE]). Then:

$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ sudo npm install -g grunt-cli
$ sudo npm install -g bower
$ git clone https://github.com/cubedro/eth-netstats
$ cd eth-netstats
$ npm install
@vitoc
vitoc / index.html
Last active April 21, 2018 10:09
Using canvas to highlight an image
<html>
<style>
body {
background-image: url('https://upload.wikimedia.org/wikipedia/en/a/a9/Example.jpg');
}
canvas {
background-color: yellow;
opacity: 0.5;
}
</style>
@vitoc
vitoc / WebTest.webtest
Last active April 15, 2017 02:11
Web Test example used to load test Microsoft Bot Framework based bot via DirectLine API
<?xml version="1.0" encoding="utf-8"?>
<WebTest Name="WebTest" Id="" Owner="" Priority="" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="" ResultsLocale="">
<Items>
<Request Method="POST" Guid="" Version="1.1" Url="https://directline.botframework.com/api/conversations" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False">
<DependentRequests>
<Request Method="POST" Guid="" Version="1.1" Url="https://directline.botframework.com/api/conversations/{{ConvID}}/messages" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Ca

Keybase proof

I hereby claim:

  • I am vitoc on github.
  • I am vitoc (https://keybase.io/vitoc) on keybase.
  • I have a public key whose fingerprint is FBD9 6B1B 9BE4 AF07 CB68 FD0D F362 6DEA 7EBD 7B33

To claim this, I am signing this object: