Skip to content

Instantly share code, notes, and snippets.

View lekankoku's full-sized avatar

Olamilekan(Lekan) Koku lekankoku

  • Berlin,Germany
View GitHub Profile
@lekankoku
lekankoku / docker-compose.yml
Created August 31, 2025 17:15 — forked from flomero/docker-compose.yml
Twenty x Coolify using Docker Compose
name: twenty
services:
server:
image: 'twentycrm/twenty:${TAG:-latest}'
volumes:
- 'server-local-data:/app/packages/twenty-server/.local-storage'
ports:
- '3000:3000'
environment:
SERVICE_FQDN_SERVER_3000: null
@lekankoku
lekankoku / readme.md
Created March 26, 2025 19:40 — forked from jeremywall/readme.md
R2, CORS, Presigned Put Object URLs, and uploading directly from browser side JavaScript

First and foremost you need to set the CORS configuration for your bucket. I'm a Java developer so here's the code I wrote using the AWS Java SDK v2 to define the CORS configuration for my R2 bucket. Alternatively you can also edit your bucket CORS configuration using Postman following the tutorial at https://kian.org.uk/configuring-cors-on-cloudflare-r2/

// update the config section here with your information first
String bucketName = "YOUR_BUCKET";
String accessKeyId = "YOUR_R2_ACCESS_KEY_ID";
String secretAccessKey = "YOUR_R2_SECRET_ACCESS_KEY";
String accountId = "YOUR_ACCOUNT_ID";
URI uri = new URI("https://" + accountId + ".r2.cloudflarestorage.com");
@lekankoku
lekankoku / star-wars-planets.html
Created April 20, 2022 08:40 — forked from richard-flosi/star-wars-planets.html
Web Component using Custom Element, Shadow DOM, fetch, async/await, and the Star Wars API
<html>
<head>
<script>
customElements.define("star-wars-planets", class extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: "open" });
}
static get observedAttributes() { return ["loading", "planets"]; }
@lekankoku
lekankoku / webdev_online_resources.md
Created May 1, 2019 05:23 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@lekankoku
lekankoku / gist:604c1645adc5cef70008f70414f6559d
Created September 16, 2017 23:02
Dynamic Bootstrap Row and Column Maker
<?php
$numberOfColumns = 3;
$bootstrapColWidth = 12 / $numberOfColumns ;
$chunkArray = array_chunk($items, $numberOfColumns);
foreach($chunkArray as $items) {
echo '<div class="row">';
foreach($items as $item) {
echo '<div class="col-md-'.$bootstrapColWidth.'">';