Skip to content

Instantly share code, notes, and snippets.

View DynastyKids's full-sized avatar

Wentworth Gong ʕ•̫͡•ʔ DynastyKids

View GitHub Profile
@DynastyKids
DynastyKids / KuCoin_Dockerfile
Last active August 24, 2022 15:29
KuCoinAPI_Dockerfile
# This image is build for using KuCoin API Document
# Based on Ruby on Rails, using slate from Repo
FROM ruby:2.7.6-buster
EXPOSE 4567
WORKDIR /root
RUN apt-get update && apt-get install -y --no-install-recommends build-essential git nodejs vim && gem install bundler && git clone https://gitlab.com/DynastyKids/kucoin-api-docs.git && cd /root/kucoin-api-docs && bundle install && apt-get remove -y build-essential && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
WORKDIR /root/kucoin-api-docs
@DynastyKids
DynastyKids / CakePHP3_DefDockerfile
Last active August 24, 2022 15:33
CakePHP's skeleton dockerfile
FROM ubuntu:focal
EXPOSE 8765
WORKDIR /root
RUN apt update && export DEBIAN_FRONTEND=noninteractive && apt install -yq php php-mysql php-mbstring php-xml php-xmlrpc php-intl composer && composer create-project --prefer-dist cakephp/app:^3.10 cakephp3_project
WORKDIR /root/cakephp3_project
CMD /root/cakephp3_project/bin/cake server -p 8765
## Using host.docker.internal for Docker MySQL connection hostname
@DynastyKids
DynastyKids / install.sh
Last active November 20, 2019 04:33
Install script for COMP6733
#!/bin/bash
## Check if user is the super user
if [ $UID -ne 0 ]; then
echo "Superuser privileges are required to run this script."
echo "Please run: \"sudo $0\""
exit 1
fi
echo -e "\n\nUpdating Repository Information prepare for install\n\n"
sudo apt-get update
@DynastyKids
DynastyKids / 1048Revision.md
Last active August 19, 2023 02:40
Monash FIT1048 C++ Revision

FIT1048 Final Revision

Week 1

#include <iostream>
using namespace std;

int main(){
 cout&lt;&lt;"Hello World"&lt;
@DynastyKids
DynastyKids / ohmy-27486206.c
Created December 17, 2018 06:29
Ground 0, C practice
/*
Read a list of integers from standard input.
Find all pairs of numbers in the list whose product is greater than the sum of the list.
Print out a formatted list of the pairs.
For example:
The list: 3, 10, 4, 9, 8, 7
You have to find all pairs of numbers that multiply to more than (3+10+4+9+8+7) = 41.
These are (10, 9), (10, 8), (10, 7), (9, 8), (8, 7), but not (3, 10) and (10, 4), for example.
*/