This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.vim/plugged') | |
" leave some space in between | |
Plug 'preservim/nerdtree' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'pineapplegiant/spaceduck', { 'branch': 'main' } | |
Plug 'nvim-lualine/lualine.nvim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const axios = require('axios'); | |
const bodyParser = require('body-parser') | |
const app = express() | |
const port = 5000; | |
app.use(bodyParser.json()) | |
app.get('/', (req, res) => { | |
res.send('Hello World!') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { parentPort, workerData } = require('worker_threads'); | |
const { sendMail } = require("../module/mailer"); | |
// Perform send mail | |
parentPort.once("message", (message) => { | |
message.forEach(async item => { | |
await sendMail(item.transporterOptions, item.mailOptions, item.num); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo gitlab-runner register \ | |
--non-interactive \ | |
--url "https://gitlab.com" \ | |
--registration-token "<REGISTRATION_TOKEN_FROM_GITLAB>" \ | |
--description "tester ci/cd" \ | |
--executor "shell" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo dpkg -i gitlab-runner_amd64.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_amd64.deb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variables: | |
TEST_NAME: gitlab.com/viclates-kingdom/test-ci-cd:$CI_COMMIT_REF_NAME | |
stages: | |
- test | |
- stop | |
- run | |
testing: | |
stage: test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deploying-staging: | |
stage: deploy | |
script: | |
- echo 'Deploying $CI_PROJECT_NAME to staging' | |
- npm install | |
- ./scripts/deploy-staging.sh | |
only: | |
- staging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script: | |
- echo 'Running a test' | |
- npm install | |
- npm run test | |
tags: | |
- test |
NewerOlder