This file contains hidden or 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
private static List<(string name, string paramName, object value)> GenerateNameValuePair(object obj, params string[] ignoredProperties) | |
{ | |
List<(string name, string paramName, object value)> pairs = new List<(string name, string paramName, object value)>(); | |
var props = obj.GetType().GetProperties(); | |
foreach (var prop in props) | |
{ | |
if (!IsPrimitiveType(prop.PropertyType) || ignoredProperties.Contains(prop.Name)) continue; |
This file contains hidden or 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
alembic==0.8.10 | |
amqp==2.4.1 | |
apache-airflow==1.10.2 | |
asn1crypto==0.24.0 | |
Babel==2.6.0 | |
bcrypt==3.1.6 | |
billiard==3.5.0.5 | |
bleach==2.1.4 | |
boto==2.48.0 | |
boto3==1.6.7 |
This file contains hidden or 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
pipeline { | |
agent { | |
docker { | |
image 'goforgold/build-container:latest' | |
} | |
} | |
stages { | |
stage('Build') { | |
steps { | |
sh 'npm install' |
This file contains hidden or 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
variable "access_key" {} | |
variable "secret_key" {} | |
provider "aws" { | |
access_key = "${var.access_key}" | |
secret_key = "${var.secret_key}" | |
region = "ap-south-1" | |
} | |
data "aws_ami" "node_app_ami" { |
This file contains hidden or 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
--- | |
- hosts: all | |
tasks: | |
- name: Install the gpg key for nodejs LTS | |
become: true | |
apt_key: | |
url: "http://deb.nodesource.com/gpgkey/nodesource.gpg.key" | |
state: present |
This file contains hidden or 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": { | |
"aws_access_key": "", | |
"aws_secret_key": "" | |
}, | |
"provisioners": [ | |
{ | |
"type": "shell", | |
"execute_command": "echo 'ubuntu' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", |
This file contains hidden or 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
FROM node:8.9.4 | |
RUN mkdir /root/packer | |
WORKDIR /root/packer | |
RUN wget https://releases.hashicorp.com/packer/1.1.3/packer_1.1.3_linux_amd64.zip | |
RUN wget https://releases.hashicorp.com/terraform/0.11.1/terraform_0.11.1_linux_amd64.zip | |
RUN apt-get update | |
RUN apt-get install unzip -y | |
RUN unzip packer_1.1.3_linux_amd64.zip | |
RUN unzip terraform_0.11.1_linux_amd64.zip | |
RUN mv packer /usr/local/bin/packer |
This file contains hidden or 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
android { | |
signingConfigs { | |
release { | |
keyAlias 'KEY_ALIAS' | |
keyPassword 'KEY_PASS' | |
storeFile file('PATH_TO_KEY.jks') | |
storePassword 'STORE_PASS' | |
} | |
} |
This file contains hidden or 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
image: uber/android-build-environment:latest | |
pipelines: | |
branches: | |
develop: | |
- step: | |
caches: | |
- gradle | |
script: | |
- mkdir "${ANDROID_HOME}/licenses" || true |
This file contains hidden or 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
@echo off | |
setlocal | |
if /i not [%1] == [] ( | |
set migrationname=%1 | |
goto Begin | |
) | |
for /f "delims=" %%i in ('dotnet ef migrations list') do ( | |
set migrationname=%%i |