Skip to content

Instantly share code, notes, and snippets.

@infomiho
infomiho / README.md
Last active December 27, 2024 07:57
Deploy Wasp to a VPS (reverse proxy + Docker)

Deploying a Wasp app to a VPS

Let's deploy a Wasp app directly to a VPS. We'll do things directly on the machine without any management dashboard.

We'll need a couple of things to get this going:

  • a VPS (I'll be using Hetzner, but it doesn't matter which provider you use)
  • a domain name (mostly to have HTTPS)

Our setup will look like this:

  • Ubuntu LTS
This will help you activate Microsoft Windows 10/11
===================================================
Run CMD as Administrator these 3 commands:
[1] slmgr /ipk [windows_key_from_below]
Home: TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home N: 3KHY7-WNT83-DGQKR-F7HPR-844BM
Home Single Language: 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
@oSumAtrIX
oSumAtrIX / README.md
Last active December 27, 2024 07:57
Useful snippets for Discord

Discord console scripts

My collection of scripts for Discord.

Scripts

  • friend_invitelink.js: Generate a friend invite link
  • clientside_nitro.js: Spoof the client and enable client side Discord Nitro
@infomiho
infomiho / README.md
Last active December 27, 2024 07:56
Deploying Wasp apps to Coolify

Self-hosting is a great way to have control over your deployment infrastructure (you own the data) and a great way to keep the costs down (you pay a fixed amount per month). One of the smoothest way to manage your self-hosted deployment is Coolify.

Deploying Wasp apps to Coolify is straightforward:

  • create your Coolify apps (client, server and db)
  • build your app's Docker images (e.g. using Github Actions),
  • trigger Coolify to pull the Docker images and deploy them.

It'll take you ~1 hour depending on your level of experience with servers and Github Actions.

Installing Coolify

@thinkycx
thinkycx / start-fuzz-18.04.sh
Created January 7, 2019 01:58
use afl preeny to fuzz nginx
#!/bin/bash
# fuzz-nginx
FUZZER_AFL_PATH="$HOME/Fuzz/fuzzer/afl.git"
NGINX_PATH="$HOME/Fuzz/fuzz-nginx/nginx.git"
WORK_PATH="$HOME/Fuzz/fuzz-nginx"
CLANG_LLVM_PATH="$HOME/Fuzz/fuzz-nginx/clang-3.8.0/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-16.04/bin"
install_preeny(){
@jrjohansson
jrjohansson / qutip-example-mesolve-with-time-dependent-liouvillian.ipynb
Last active December 27, 2024 07:56
Examples of how to solve master equations with time-dependent Hamiltonian and/or collapse-operator/Liouvilllian using QuTiP.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@endrsmar
endrsmar / index.ts
Created January 9, 2024 12:11
Raydium new pool listener
import { LiquidityPoolKeysV4, MARKET_STATE_LAYOUT_V3, Market, TOKEN_PROGRAM_ID } from "@raydium-io/raydium-sdk";
import { Connection, Logs, ParsedInnerInstruction, ParsedInstruction, ParsedTransactionWithMeta, PartiallyDecodedInstruction, PublicKey } from "@solana/web3.js";
const RPC_ENDPOINT = 'https://api.mainnet-beta.solana.com';
const RAYDIUM_POOL_V4_PROGRAM_ID = '675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8';
const SERUM_OPENBOOK_PROGRAM_ID = 'srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX';
const SOL_MINT = 'So11111111111111111111111111111111111111112';
const SOL_DECIMALS = 9;
const connection = new Connection(RPC_ENDPOINT);
@buananetpbun
buananetpbun / Password and username ONT Modem Telkom Indihome
Last active December 27, 2024 07:50
Password and username ONT Modem Telkom Indihome
Default Password and Username For Modem ONT Telkom Indihome
username : admin
password : %0|F?H@f!berhO3e
username : telecomadmin
password : zep2kjzol
username : admin
password : Telkomdso123
@Phryxia
Phryxia / bezier.ts
Last active December 27, 2024 07:49
TypeScript implementation of bezier curve and its derivative.
type Vector = number[]
function add(u: Vector, v: Vector): Vector {
return u.map((x, i) => x + v[i])
}
function sub(u: Vector, v: Vector): Vector {
return u.map((x, i) => x - v[i])
}
@denya-vs
denya-vs / README.md
Last active December 27, 2024 07:49
Falcon Lisk Autobot Readme

Falcon Lisk Autobot

Этот проект предоставляет скрипт на Node.js для автоматизации транзакций и выполнения ежедневных задач для профилей, описанных в JSON. Скрипт поддерживает выполнение транзакций по расписанию и с помощью задачи Checkin.

Требования

Перед тем как начать, убедитесь, что у вас установлены следующие компоненты:

  • Node.js версии 14 или выше