Skip to content

Instantly share code, notes, and snippets.

View ngocducpham's full-sized avatar
🦆
Duck GO

Ngọc Đức ngocducpham

🦆
Duck GO
View GitHub Profile
@ngocducpham
ngocducpham / image.jsx
Created March 28, 2025 08:20 — forked from lambdaxyzt/image.jsx
Remix Image Component ( use cache 'cacashe library' , stream base , sharp library )
// resource route component
import React from "react";
import { PassThrough } from "node:stream"
import fs from "node:fs"
import {createReadableStreamFromReadable} from "@remix-run/node"
import { defaultQuality,widths,mainImageReadStream,generatedImageReadstream, isThereImage,BadImageResponse } from "../../util/image.server"
export const loader = async ({ request }) => {
const url = new URL(request.url);
const src = url.searchParams.get("src");
@ngocducpham
ngocducpham / JetBrains trial reset.md
Created September 29, 2024 02:51
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

@ngocducpham
ngocducpham / BalsamiqForever.py
Created September 18, 2022 14:48 — forked from HoussemNasri/BalsamiqForever.py
Extend your trial period for Balsamiq Wireframes on Windows and macOS Forever!
import json
import os
import time
import webbrowser
import sys
import re
def handleWindows(extra_seconds):
print("OS : Windows")