Skip to content

Instantly share code, notes, and snippets.

@parweb
parweb / provisioning.sh
Last active April 1, 2025 19:27
Provision a new server
sudo apt-get update -y
# ssh config
sudo sed -i 's/^#Port 22/Port 38293/' /etc/ssh/sshd_config
sudo systemctl restart ssh
sudo systemctl daemon-reexec
sudo systemctl daemon-reload
sudo systemctl restart ssh.socket
@parweb
parweb / user-registered.md
Created April 1, 2025 09:58
Séquence Email

Okay, voici une proposition de séquence d'emails transactionnels et d'engagement pour l'inscription à votre application avec une période d'essai de 30 jours. Cette séquence intègre des éléments conditionnels basés sur l'activité de l'utilisateur.

Objectifs de la Séquence :

  1. Confirmer l'inscription et accueillir l'utilisateur.
  2. Guider l'utilisateur vers les premières actions clés ("Activation").
  3. Démontrer la valeur de l'application pendant l'essai.
  4. Maintenir l'engagement et encourager l'utilisation régulière.
  5. Convertir l'utilisateur en client payant avant la fin de l'essai.
  6. Recueillir du feedback (surtout si l'utilisateur n'est pas actif ou ne convertit pas).
@parweb
parweb / CursorTools.json
Created February 10, 2025 10:42 — forked from ScriptedAlchemy/CursorTools.json
Reverse Engineering cursor prompts
{
"tools": [
{
"type": "function",
"function": {
"name": "codebase_search",
"description": "Find snippets of code from the codebase most relevant to the search query.\nThis is a semantic search tool, so the query should ask for something semantically matching what is needed.\nIf it makes sense to only search in particular directories, please specify them in the target_directories field.\nUnless there is a clear reason to use your own search query, please just reuse the user's exact query with their wording.\nTheir exact wording/phrasing can often be helpful for the semantic search query. Keeping the same exact question format can also be helpful.",
"parameters": {
"type": "object",
"properties": {

AWS SES Configuration for Sending Emails with Node.js: A Step-by-Step Guide

This document provides a comprehensive guide to configuring Amazon Simple Email Service (SES) for sending emails from your Node.js applications. We will cover setting up IAM permissions, verifying email addresses and domains, and configuring the AWS SDK in your Node.js project.

Prerequisites:

  • An AWS Account: You need an active AWS account.
  • Node.js and npm (Node Package Manager) installed: Ensure you have Node.js and npm set up on your development machine.
  • AWS CLI (Optional but Recommended): The AWS Command Line Interface is helpful for programmatic IAM user creation and retrieving domain verification details. Install it from AWS CLI documentation.
@parweb
parweb / zef
Created January 13, 2023 14:48
zef
zef
@parweb
parweb / .deps...npm...@openzeppelin...contracts...token...ERC20...ERC20.sol
Created May 20, 2022 09:06
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.14+commit.80d49f37.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
const fs = require('fs');
const emlformat = require('eml-format');
const htmlToImage = require('html-to-image');
const nodeHtmlToImage = require('node-html-to-image');
const input = 'sample.eml';
const output = 'image.png';
const eml = fs.readFileSync(input, 'utf-8');
emlformat.read(eml, function (error, data) {
@parweb
parweb / test.js
Created April 27, 2020 12:47
zegzeg
jQuery(window).on('load', function() {
jQuery('fieldset#give-ffm-section').toggle();
});
// You can change the selecto to trigger the function on a different gateway
jQuery('.give-gateway-radio-list input').change(e => {
console.log('hello');
});
features: {
post-booking: true,
maximize: false,
}
FROM ubuntu:18.04
LABEL name "rqlited"
COPY ./sysctl.conf /etc/sysctl.conf
COPY ./rqlited /tmp/
RUN echo $NOW_URL