Skip to content

Instantly share code, notes, and snippets.

@iUltimateLP
iUltimateLP / HeadBobComponent.cpp
Last active April 17, 2025 11:47
Adds a flexible Head Bobbing component to the Unreal Engine. Supports three different camera shake states (idle, walk, run).
// Copyright 2019-2021 Jonathan Verbeek. All Rights Reserved.
#include "Player/HeadBobComponent.h"
UHeadBobComponent::UHeadBobComponent()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// off to improve performance if you don't need them.
PrimaryComponentTick.bCanEverTick = true;
1980
1998
2000
2003
2004
2005
2006
2007
2008
2009
@officestarmb
officestarmb / Cursor_Memory_Bank_TDD_Task_System.md
Last active April 17, 2025 11:44
Cursor’s Memory Bank with TDD & Task System (General-Purpose)

🧠 Cursor’s Memory Bank with TDD & Task System (General-Purpose)

I am Cursor — an expert engineer who resets after each session. My only memory is the Memory Bank. I depend entirely on precise files and test-driven workflows to stay aligned.


🗂 Memory Bank Structure (Universal for All Projects)

flowchart TD
@jahtzee
jahtzee / prompts.txt
Last active April 17, 2025 11:44
ChatGPT Jailbreaking prompts, exploits and other fun stuff
These are some exploits, jailbreaks, tricks, whatever you want to call them I've collected and discovered over time.
==== Games and fun stuff ====
== Set up a virtual machine inside GPTs imagination ==
"I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. My first command is pwd."
== Play a tabletop RPG with GPT as the dungeon master ==
"I want you to act as the dungeon master (DM) of a role playing game. Answer and act only in a way that a dungeon master would.
You are setting up a role playing game with only one other player. Everything you say as the dungeon master begins with (DM): followed by whatever you want to say. You will regularly ask me, the player, to
@trusktr
trusktr / DefaultKeyBinding.dict
Last active April 17, 2025 11:42
My DefaultKeyBinding.dict for Mac OS X
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more
closely match default behavior on Windows systems. This makes the Command key
behave like Windows Control key. To use Control instead of Command, either swap
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
Key Modifiers
@NT-marlowe
NT-marlowe / stm.md
Last active April 17, 2025 11:40 — forked from kyokuheki/stm.md
STM/CTMに参加するときのあると良いもの

Shownet での持ち物とか

Note

この記事はShowNet 2024に参加した経験に基づいて書かれています.2025年以降も通用するとは限りません.

持ち物にはテプラや養生テープなどで名前をつけることをおすすめします.よく紛失します.

【必須なもの】

  • ノートPC
  • IPv6 対応
@en0ndev
en0ndev / get_windowsphotoviewer.md
Last active April 17, 2025 11:35
ENABLE/RESTORE WINDOWS PHOTO VIEWER IN WINDOWS 10/11
#!/usr/bin/env bash
#
# Usage:
# transcode_for_decoding.sh <input> <output> [max_fps] [max_dim] [gop_sec] [scenecut] [ref_frames]
#
# <input> path to source video
# <output> path for transcoded output
# [max_fps] cap on frame rate (default: 4)
# [max_dim] max pixels on any axis (default: 448)
# [gop_sec] target GOP length in seconds (default: 8)
@rameerez
rameerez / postgres-production-setup.sh
Last active April 17, 2025 11:26
PostgreSQL Production Server Setup - Set up a new Ubuntu Server 24.04 LTS machine to run a production Postgres server
#!/bin/bash
# This script takes a clean Ubuntu Server 24.04 LTS image and installs and configures
# everything needed to deploy a production-ready PostgreSQL server.
set -euo pipefail
# --- AESTHETICS ---
GREEN='\033[0;32m'
@janasco
janasco / AnyDesk-Reset.cmd
Created August 3, 2023 09:46
AnyDesk Reset
@echo off & setlocal enableextensions
title Reset AnyDesk
reg query HKEY_USERS\S-1-5-19 >NUL || (echo Please Run as administrator.& pause >NUL&exit)
chcp 437
call :stop_any
del /f "%ALLUSERSPROFILE%\AnyDesk\service.conf"
del /f "%APPDATA%\AnyDesk\service.conf"
copy /y "%APPDATA%\AnyDesk\user.conf" "%temp%\"
rd /s /q "%temp%\thumbnails" 2>NUL
xcopy /c /e /h /r /y /i /k "%APPDATA%\AnyDesk\thumbnails" "%temp%\thumbnails"