Skip to content

Instantly share code, notes, and snippets.

View kennydukor's full-sized avatar
:octocat:
Hi

Kenechi Dukor kennydukor

:octocat:
Hi
View GitHub Profile
@kennydukor
kennydukor / docker-compose.yml
Created May 7, 2022 11:37
Docker compose file for jwilder image on VPS
version: "3"
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
restart: always
@kennydukor
kennydukor / Dockerfile
Last active May 7, 2022 10:44
Strapi Dockerfile for GitLab CI
FROM strapi/base
WORKDIR /app
COPY ./package.json ./
COPY ./provider-upload-cloudinary ./provider-upload-cloudinary # take this out if you are not using the modified package
RUN yarn install
COPY . .
ENV NODE_ENV production
ARG HOST
ENV HOST=$HOST
@kennydukor
kennydukor / .gitlab-ci.yml
Last active May 7, 2022 11:38
GitLab .yml file for Strapi deployment to VPS
image: node:16.11.1
cache:
paths:
- node_modules/
stages:
- build
- deploy
@kennydukor
kennydukor / plugins.js
Created May 7, 2022 06:49
Cloudinary Configuration for Strapi
module.exports = ({ env }) => ({
// ...
upload: {
config: {
provider: 'cloudinary',
providerOptions: {
cloud_name: env('CLOUDINARY_NAME'),
api_key: env('CLOUDINARY_KEY'),
api_secret: env('CLOUDINARY_SECRET'),
folder: env('CLOUDINARY_FOLDER'),
@kennydukor
kennydukor / database.js
Last active May 7, 2022 06:48
Strapi with Docker Configurations
const path = require('path');
module.exports = ({ env }) => ({
defaultConnection: "default",
connection: {
client: "postgres",
connection: {
host: process.env.DATABASE_HOST,
port: process.env.DATABASE_PORT,
database: process.env.DATABASE_NAME,
@kennydukor
kennydukor / readme.md
Created March 24, 2018 12:19 — forked from flyyufelix/readme.md
Resnet-152 pre-trained model in Keras

ResNet-152 in Keras

This is an Keras implementation of ResNet-152 with ImageNet pre-trained weights. I converted the weights from Caffe provided by the authors of the paper. The implementation supports both Theano and TensorFlow backends. Just in case you are curious about how the conversion is done, you can visit my blog post for more details.

ResNet Paper:

Deep Residual Learning for Image Recognition.
Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
arXiv:1512.03385