Skip to content

Instantly share code, notes, and snippets.

View BrianSeng's full-sized avatar
🤟

Brian Sengsourichanh BrianSeng

🤟
View GitHub Profile
@miguelmota
miguelmota / buildspec.yml
Created May 21, 2018 22:24
Yaml spec multiline command example
version: 0.2
phases:
pre_build:
commands:
- echo ...
build:
commands:
- echo ...
- >
@lucasscariot
lucasscariot / model-user.js
Last active October 27, 2024 00:48
Composite Primary Key in Sequelize
/*
* Migration
*/
'use strict';
module.exports = {
up: function(queryInterface, Sequelize) {
return queryInterface.createTable('Users', {
firstName: {
type: Sequelize.STRING
},
@DarrenN
DarrenN / get-npm-package-version
Last active April 12, 2025 14:15 — forked from yvele/get-npm-package-version.sh
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
echo $PACKAGE_VERSION