Skip to content

Instantly share code, notes, and snippets.

View rasibn's full-sized avatar
🎣
Focusing

Rasib Nadeem rasibn

🎣
Focusing
View GitHub Profile
@dgalling
dgalling / add.c
Created September 8, 2024 18:09
Simple C interop example in swift
int add(int a, int b) {
return a + b;
}
@aradalvand
aradalvand / DockerfileForSvelteKit.md
Last active November 5, 2024 04:20
Dockerfile and .dockerignore for SvelteKit:

*This Dockerfile is intended for SvelteKit applications that use adapter-node. So, the Dockerfile below assumes that you have already installed and configured the adapter.

Dockerfile:

FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json .
RUN npm ci
COPY . .
RUN npm run build
@mrladeia
mrladeia / readme.md
Last active October 29, 2024 14:09
Iptables to Oracle Cloud port 80 and 443 open

IPTABLES to Oracle Cloud port 80 and 443 open

If you need to open up ports 80 and 443, on file /etc/iptables/rules.v4 just add

-A INPUT -p tcp -m state --state NEW -m multiport --dports 80,443 -j ACCEPT

directly below