Skip to content

Instantly share code, notes, and snippets.

@burkeholland
burkeholland / 4.1.chatmode.md
Last active August 13, 2025 11:46
4.1 Beast Mode v2
description tools
4.1 Beast Mode
changes
codebase
editFiles
extensions
fetch
findTestFiles
githubRepo
new
openSimpleBrowser
problems
readCellOutput
runCommands
runNotebooks
runTasks
runTests
search
searchResults
terminalLastCommand
terminalSelection
testFailure
updateUserPreferences
usages
vscodeAPI

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.

@jackblk
jackblk / LogitechF310_Macbook.MD
Last active August 1, 2025 02:12
Getting Logitech F310 to work with Macbook USB-C port
@guiliredu
guiliredu / 0_NestJS-Cheatsheet.md
Last active June 16, 2025 13:34
Nest.js Cheatsheet

Nest.js Cheatsheet

Nest CLI

  • npm i -g @nestjs/cli

Packages

  • yarn add class-validator class-transformer
  • yarn add @nestjs/mapped-types
@hscstudio
hscstudio / adonis-rbac.md
Last active March 2, 2025 01:49
Implementasi Role Base Access Control (RBAC) di AdonisJS

Implementasi Role Base Access Control (RBAC) di AdonisJS

Buat field role (String) pada tabel user

Untuk menentukan role dari user, misalnya apakah di administrator, staff, member, dll

Buat middelware: app/Middleware/Rbac.js

class Rbac {
@gjerokrsteski
gjerokrsteski / remove env file from git forever
Last active July 1, 2025 17:25
remove env file from git history forever
echo '.env' >> .gitignore
git rm -r --cached .env
git add .gitignore
git commit -m 'untracking .env'
git push origin master
@themightychris
themightychris / Dockerfile
Created September 24, 2019 22:55
nginx + PHP composite Docker container
#
# Multi-Stage Docker build:
# Laravel 5.8 + PHP73 + Postgres || MySQL
#
# @link https://laravel.com/docs/5.8
# @link https://hub.docker.com/_/php
# @link https://hub.docker.com/_/mysql
# @link https://hub.docker.com/_/postgres
#

Screen Quick Reference

Wait a minute, why would anyone use 'screen', and what is it anyway?

Well, because it's both AWESOME and FUN!!

It lets you keep your own session running on all the servers you already use, and chances are, it's probably already installed and waiting for you! (since 1987!)

Basic

| Description | Command |

@bradtraversy
bradtraversy / webdev_online_resources.md
Last active August 7, 2025 20:09
Online Resources For Web Developers (No Downloading)
@ceshine
ceshine / bactrader_sample.py
Last active May 31, 2025 09:09
A Simple Strategy Trading Two Stocks (back trader)
"""A Simple Strategy Trading Two Stocks
Original code: https://blog.csdn.net/qq_26948675/article/details/80016633
Modified based on: https://www.backtrader.com/blog/posts/2018-04-22-improving-code/improving-code.html
Replaced the local CSV files with online data from IEX.
Unfortunately, this strategy is not profitable for the two stocks picked.
"""
@gingerbeardman
gingerbeardman / 0x0.sh
Last active October 28, 2022 00:37
Simple cli tool to use https://0x0.st for ephemeral file uploads. Install: curl https://gist.githubusercontent.com/gingerbeardman/5398a5feee9fa1e157b827d245678ae3/raw/9ea5c714b41bdef77a8984bc91ff5d248c48d048/0x0.sh | sudo tee /usr/local/bin/0x0.sh && sudo chmod +x /usr/local/bin/0x0.sh
#!/bin/sh
URL="https://0x0.st"
if [ $# -eq 0 ]; then
echo "Usage: 0x0.st FILE\n"
exit 1
fi
FILE=$1