Skip to content

Instantly share code, notes, and snippets.


Calvin Cheng calvinchengx

Block or report user

Report or block calvinchengx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
calvinchengx / exampleconfig.yml
Last active May 20, 2020
direct deployment to git repo
View exampleconfig.yml
version: 2
machine: true
- run:
name: Clone repo
working_directory: ~/workdir
command: |
git clone --depth 1 https://${REPO_GITHUB_TOKEN}
View dashboard.qml
import QtQuick 2.2
import QtQuick.Window 2.1
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4
import QtQuick.Extras 1.4
Window {
id: root
visible: true
width: 1024
resource "google_compute_address" "static" {
name = "ipv4-address"
data "google_compute_image" "debian_image" {
family = "debian-9"
project = "debian-cloud"
resource "google_compute_instance" "instance_with_ip" {
expect <<EOF
set timeout -1
spawn ./hedera -X setup
expect "default account does not exist\r"
expect "Start the setup process\r"
expect "account ID in the format of 0.0.xxxx that will be used as default operator: \r"
View integration-test.gradle
// in build.gradle, declare
// apply from: 'integration-test.gradle'
sourceSets {
integrationTest {
java {
srcDirs = [ file('src/integration/java') ]
compileClasspath += sourceSets.main.output + sourceSets.test.output + configurations.testRuntime
runtimeClasspath += sourceSets.main.output + sourceSets.test.output + configurations.testRuntime
View .eslintrc
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
"settings": {
"ecmascript": 6,
"jsx": true
View openssl-1.0.2h
sudo cd /usr/local && mkdir src
sudo chown -R `whoami`:admin src
cd src
# Download and install
curl --remote-name
tar -xzvf openssl-1.0.2h.tar.gz
cd openssl-1.0.2h
./configure darwin64-x86_64-cc --prefix=/usr/local/openssl-1.0.2h shared
make depend
calvinchengx /
Last active Mar 30, 2016
homebrew: upgrade PostgreSQL 9.4.5_2 to 9.5.0
#!/usr/bin/env bash
export OLDPG=9.4.5_2
export NEWPG=9.5.0
brew update && brew upgrade
brew install postgresql
# stop current server
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
View Dockerfile
FROM scratch
ADD certs /etc/ssl/certs
ADD main /
CMD ["/main"]
View 01.perl
2015-10-21 22:19:34 +0800
Welcome to JSON (v.2.90)
You can’t perform that action at this time.