Skip to content

Instantly share code, notes, and snippets.

:octocat:
Focusing

Calvin Cheng calvinchengx

:octocat:
Focusing
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
calvinchengx / exampleconfig.yml
Last active May 20, 2020
direct deployment to git repo
View exampleconfig.yml
version: 2
jobs:
build:
machine: true
steps:
- run:
name: Clone repo
working_directory: ~/workdir
command: |
git clone --depth 1 https://${REPO_GITHUB_TOKEN}@github.com/namespace/repo.git
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
View example.tf
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" {
View test.sh
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 https://www.openssl.org/source/openssl-1.0.2h.tar.gz
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
calvinchengx / upgrade_postgresql.sh
Last active Mar 30, 2016
homebrew: upgrade PostgreSQL 9.4.5_2 to 9.5.0
View upgrade_postgresql.sh
#!/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
perl
Makefile.PL
INSTALL_BASE=/usr/local/Cellar/linode-cli/1.4.7/libexec
Welcome to JSON (v.2.90)
=============================
You can’t perform that action at this time.