Skip to content

Instantly share code, notes, and snippets.

@backroot
backroot / setup-awscli-for-centos6.sh
Last active July 11, 2022 06:44
Setup AWS CLI for CentOS 6
yum update -y nss
yum install -y https://centos6.iuscommunity.org/ius-release.rpm
perl -pi -e "s/enabled\s+=\s+1/enabled = 0/gi" /etc/yum.repos.d/ius.repo
yum install -y --enablerepo=ius python36u python36u-libs python36u-pip
ln -s /usr/bin/python3.6 /usr/bin/python3
ln -s /usr/bin/pip3.6 /usr/bin/pip3
pip3 install awscli --upgrade --user
echo "# PATH for AWS CLI" >> ~/.bashrc
echo "export PATH=~/.local/bin:$PATH" >> ~/.bashrc
source ~/.bashrc
@rinogo
rinogo / job.service.spec.ts
Last active May 20, 2024 17:09
Integration Testing a NestJS Service that leverages Prisma
import { Test, TestingModule } from '@nestjs/testing';
import { PrismaService } from '../prisma.service';
import { JobService } from './job.service';
import * as crypto from 'crypto';
describe('JobService', () => {
let service: JobService;
let prisma: PrismaService;
beforeEach(async () => {