Skip to content

Instantly share code, notes, and snippets.

View Zhuoqin's full-sized avatar
🏎️
Old Driver

Zhuoqin Zhuoqin

🏎️
Old Driver
View GitHub Profile
@Zhuoqin
Zhuoqin / moodle-ci.gitlab-ci.yml
Created May 12, 2021 17:44
Based the moodle plugin ci(gitlab ci config) I created, https://gist.github.com/Zhuoqin/a6eaed701e9fa0d6d7d0e4385077d6df, here is a version that it's used to test plugin for moodle workplace multi-tenancy.
image: moodlehq/moodle-php-apache:7.3-stretch
services:
- postgres:9.6
variables:
MOODLE_BRANCH: "MOODLE_38_STABLE"
MOODLE_REPO: "git://github.com/moodleworkplace/multitenancy.git"
DB: "pgsql"
MOODLE_DIR: "/var/www/html/moodle"
POSTGRES_DB: moodle
@Zhuoqin
Zhuoqin / .gitlab-ci.yml
Last active May 12, 2021 17:45
After checking a couple of online examples, I created an example of git lab ci for moodle plugin ci testing
image: moodlehq/moodle-php-apache:7.3-stretch
services:
- postgres:9.6
variables:
MOODLE_BRANCH: "MOODLE_39_STABLE"
DB: "pgsql"
POSTGRES_DB: moodle
POSTGRES_DB_USED: mdlunit
POSTGRES_USER: moodle
@Zhuoqin
Zhuoqin / .gitlab-ci.dist.yml
Created May 6, 2021 19:50 — forked from ragusa87/.gitlab-ci.dist.yml
GitLab CI configuration for testing Moodle plugins using moodle-plugin-ci. Thanks to @danielneis who contributed a first version (cf. https://github.com/moodlerooms/moodle-plugin-ci/pull/36).
image: moodlehq/moodle-php-apache:7.0-stretch
services:
- postgres:latest
cache:
paths:
- vendor/
- node_modules/
variables:
image: moodlehq/moodle-php-apache:7.0
services:
- mysql:latest
cache:
paths:
- $HOME/.composer/cache
variables:

Setting up Webpack for any Typescript project from Scratch

Welcome to step by step hands-on guide to setup webpack in your upcoming typescript project. Please follow the steps and you should be able to create your own webpack project. Please download the source code from github.

You will learn below things:

  1. ✅Create a Typescript node.js project.
  2. ✅Install Dependencies with webpack & typescripts.
  3. ✅Use Webpack CLI to crate webpack.config.js file and modify webpack.config.js based on our need.
@Zhuoqin
Zhuoqin / free_email_provider_domains.txt
Created September 30, 2020 17:52 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com
# clean old version if using brew
brew uninstall [email protected]
# php>7.3 some extensions like mcrypt won't work
brew install [email protected]
# edit php path
open ~/.zshrc
# add lines
# PHP Path
*1.Installing NodeJS
Download node here: https://nodejs.org/en/
2.Installing Babel
npm i -S babel-cli babel-preset-es2015
3.Setting phpStorm File watcher
3.0 Scope can be set if neccesary
3.1 find program under bin/babel.js