Skip to content

Instantly share code, notes, and snippets.

View eskye's full-sized avatar
🎯
Focusing

Sunkanmi Ijatuyi eskye

🎯
Focusing
View GitHub Profile
@eskye
eskye / bitbucket-pipelines.yml
Created March 25, 2022 05:29 — forked from jincod/bitbucket-pipelines.yml
Docker deployment using Bitbucket Pipelines and Heroku
pipelines:
default:
- step:
name: build and publish docker image
services:
- docker
caches:
- docker
script:
- docker build -t $APP_NAME .
@eskye
eskye / .angular-htaccess.md
Created March 18, 2021 04:45 — forked from julianpoemp/.angular-htaccess.md
Optimal .htaccess configuration for Angular 11, Angular 10, Angular 9, Angular 8, Angular 7, Angular 6, Angular 5 (and older) app in production incl. fix for the angular browser caching issue.

New generator

I created a new htaccess generator for angular apps that makes it easier for you to create the optimal htaccess file: https://julianpoemp.github.io/ngx-htaccess-generator/

The goal of this generator is to make the configuration process much easier. To make this possible I created a kind of interview mode with some questions. As an additional feature the generator supports adding exclusions for example if you have installed a blog in a subdirectory of your web application.

The generator 😁: https://julianpoemp.github.io/ngx-htaccess-generator/ The project: https://github.com/julianpoemp/ngx-htaccess-generator Place for issues and bug reports: https://github.com/julianpoemp/ngx-htaccess-generator/issues

@eskye
eskye / FizzBuzz.c
Created May 8, 2019 09:08
FizzBuzz: Given an integer number n, for multiples of three print “Fizz” for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.
#include <stdio.h>
void fizz_buzz(int n)
{
int i;
for (i=1; i<=n; i++) {
if (i%3==0) printf("Fizz");
if (i%5==0) printf("Buzz");
if ((i%3)*(i%5)) printf("%d", i);
printf("\n");
@eskye
eskye / htaccess-cache-config
Created May 1, 2019 22:57 — forked from Fayozjon/htaccess-cache-config
Enable and Disable Browser Caching with .htaccess
# Enable and Disable Browser Caching with .htaccess
## Enable Examples
### 1 MONTH for static assets
<filesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=2592000, public"
</filesMatch>
### 1 DAY for rss feeds and robots