Skip to content

Instantly share code, notes, and snippets.

@maykbrito
maykbrito / README.md
Created February 20, 2021 13:44
Generate PDF with NodeJS and Puppeteer. Using ExpressJS, EJS and TailwindCSS to create fake data server

Generate PDF

Using NodeJS and Puppeteer.

Creating a fake data server with ExpressJS, EJS and TailwindCSS.

How to use it.

  1. Add this files do any directory
  2. Run npm install
@kasuken
kasuken / epicshit.chatmode.md
Last active July 11, 2025 08:37
Custom Chat Mode for GitHub Copilot and VS Code
description tools model
4.1 Do Epic Shit Mode v1
changes
codebase
editFiles
fetch
new
openSimpleBrowser
problems
runCommands
runTasks
search
searchResults
terminalLastCommand
testFailure
GPT-4.1

You are an autonomous agent tasked with fully resolving the user's query before yielding back control. Follow this workflow strictly and do not end your turn until everything is truly complete.

Rules:

  • Iterate until fully resolved: Never hand control back until the problem is 100% solved, verified, and all steps are checked off.
@kylegg
kylegg / pspoc.php
Created June 1, 2024 05:04
The backend logic behind free Roblox private servers. Access codes are signed and then returned all right here. https://www.roblox.com/games/16875821750/Any-Game-Reserved-Server-POC
<?php
//
// kylegg 2024
//
// Response is always text/plain for our API.
header('Content-Type: text/plain');
// Generic function I wrote for validating url parameters in like 30 seconds, its not pretty but it works.
function getQueryParameter(string $name, Closure $cl): mixed
@burkeholland
burkeholland / 4.1.chatmode.md
Created July 8, 2025 22:53
41. Beast Mode V3
description model
4.1 Beast Mode v3
GPT-4.1

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

Your thinking should be thorough and so it's fine if it's very long. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough.

You MUST iterate and keep going until the problem is solved.

@arthursalvtr
arthursalvtr / add-custom-mail-driver-to-laravel.md
Last active July 11, 2025 08:01
Add Custom Mail Driver to Laravel

How to add custom Mail Driver to Laravel

Tested on Laravel 5.8

Within the source code of laravel 5.8 at this time of writing, we have this following

<?php

namespace Illuminate\Support;
@l0ki000
l0ki000 / app.js
Last active July 11, 2025 07:54
Script for automated check for foreign passport status in Russian MID / Скрипт для проверки статуса зявления на заграничный паспорт в МИД РФ
// usage:
// 1) npm install
// 2) node ./app.js <YOUR_SUBMISSION_ID>
// or add something like this in your crontab/anacron
// 1 0 mid.pass.check node <FULL_PATH>/app.js <YOUR_SUBMISSION_ID>
// app will create YOUR_SUBMISSION_ID.txt on the first run, and than will write you an email after any changes in status
const process = require('node:process');
@duyixian1234
duyixian1234 / agent.py
Last active July 11, 2025 07:53
Ai Agent
import json
from collections.abc import Callable
import sys
from typing import Annotated
from function_schema import get_function_schema
from openai import OpenAI
from openai.types.chat import ChatCompletionMessageParam
@jakelmg
jakelmg / butane to ignition.md
Last active July 11, 2025 07:16
Simple instructions for how to convert a Butane human-readable YAML config file for operating systems like Flatcar Container Linux, into a system-readable Ignition json file.
  1. Install Butane, which you'll need to convert the human-readable Butane config to a system-readable Ignition config:
    • Windows (in cmd)
      winget install butane
      
    • MacOS (in terminal, requires Homebrew):
      brew install butane
      
  • Debian/Ubuntu Linux:
{
"ignition": {
"version": "3.3.0"
},
"kernelArguments": {
"shouldExist": [
"flatcar.autologin"
]
},
"passwd": {
@jakelmg
jakelmg / lancache-flatcar-config.yaml
Last active July 11, 2025 07:16
LAN Cache Flatcar Butane Config Example (RAID 0 XFS, Bonded Network)
variant: flatcar
version: 1.0.0
kernel_arguments:
should_exist:
- flatcar.autologin
passwd:
users:
- name: core
ssh_authorized_keys:
- "ssh-ed25519 T0r5c5h2exdqJOsFgoimZmnNGkOwHse6CkbMcGrW8pi0vxXbkgdmcRDIepuw EXAMPLE SSH KEY"