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
# Parts of this config were created by Derek Taylor, AKA DistroTube. The rest was created by Matt Weber aka The Linux Cast | |
font: | |
size: 12 | |
offset: | |
y: 1 | |
normal: | |
family: "JetBrainsMono Nerd Font Mono" | |
window: | |
padding: |
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 xlsx = require('xlsx'); | |
const filePath = process.argv.slice(2)[0]; | |
const workbook = xlsx.readFile(filePath); | |
const worksheet = workbook.Sheets[workbook.SheetNames[0]]; | |
let posts = []; | |
let post = {}; | |
for (let cell in worksheet) { |
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
import { Req, Res, Injectable } from '@nestjs/common'; | |
import { Profile } from './profile.entity'; | |
import { Repository } from 'typeorm'; | |
import { InjectRepository } from '@nestjs/typeorm'; | |
import { ProfileDto } from './dto/profile.dto'; | |
import { User } from 'users/user.entity'; | |
import { UserQuery, ProfileQuery } from './structures/helpers'; | |
import * as multer from 'multer'; | |
import * as AWS from 'aws-sdk'; | |
import * as multerS3 from 'multer-s3'; |