Skip to content

Instantly share code, notes, and snippets.

View Unity-Billal-mesloub's full-sized avatar
🏠
Working from home

Billal Mesloub Unity-Billal-mesloub

🏠
Working from home
View GitHub Profile
sub, sup {
/* Specified in % so that the sup/sup is the
right size relative to the surrounding text */
font-size: 75%;
/* Zero out the line-height so that it doesn't
interfere with the positioning that follows */
line-height: 0;
/* Where the magic happens: makes all browsers position
@Unity-Billal-mesloub
Unity-Billal-mesloub / deployer.ts
Created March 5, 2026 20:12 — forked from dphang/deployer.ts
Deploy serverless-next.js to different stages
#!/usr/bin/env node
// Example (opinionated) configuration with yarn (I use TypeScript/Node environment, feel free to adapt this file to JS if needed). Note: I am running in Node 12.x environment with aws cli installed.
// 1. Copy this file to scripts/deployer.ts (or any other you prefer)
// 2. Add "deploy": "ts-node --project tsconfig.scripts.json scripts/deployer.ts deploy" to your package.json file
// 3. You may also need to install devDependencies like yargs, @types/node, @types/yargs, js-yaml, @types/js-yaml
// 4. I also add tsconfig.scripts.json like the following:
/*
{
@Unity-Billal-mesloub
Unity-Billal-mesloub / serverless-deploy.yml
Last active March 5, 2026 20:11 — forked from hadynz/serverless-deploy.yml
Serverless deploy with state management in S3
name: Continuous deploy
on:
push:
branches: [main]
jobs:
serverless-deploy:
runs-on: ubuntu-latest