Skip to content

Instantly share code, notes, and snippets.

@abhilash1in
abhilash1in / user-data.sh
Created April 24, 2018 17:06
Install nvm and NodeJS using AWS EC2 user data script
#!/bin/bash
apt-get -y update
cat > /tmp/subscript.sh << EOF
# START UBUNTU USERSPACE
echo "Setting up NodeJS Environment"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.9/install.sh | bash
echo 'export NVM_DIR="/home/ubuntu/.nvm"' >> /home/ubuntu/.bashrc
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> /home/ubuntu/.bashrc
# Dot source the files to ensure that variables are available within the current shell
. /home/ubuntu/.nvm/nvm.sh
@ipenywis
ipenywis / cursor-memory-bank-rules.md
Last active March 22, 2025 20:46
Cursor Memory Bank

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD
@bkw777
bkw777 / gist:8d988031fd20756dc46aa6f26ac0a76f
Last active March 22, 2025 20:45
Sony Xperia 1 VI rooted firmware update
Xperia 1 VI - XQ-EC72 HK
firmware update notes
https://xdaforums.com/t/tool-xperifirm-xperia-firmware-downloader-v5-7-0.2834142/
https://xdaforums.com/t/tool-newflasher-xperia-command-line-flasher.3619426/
https://xdaforums.com/t/tool-unsin-sin-v3-v4-v5-unpacker-v2-0.3128106/
-------------------------------------------
xperia boot modes:
@FernandoLopezAlvarez98
FernandoLopezAlvarez98 / GIT.md
Created March 22, 2025 20:44 — forked from dasdo/GIT.md
Lista de Comandos en GIT

Configuración Básica

Configurar Nombre que salen en los commits

	git config --global user.name "dasdo"

Configurar Email

	git config --global user.email [email protected]
@jacksenechal
jacksenechal / ocr-script.sh
Last active March 22, 2025 20:42
Gnome simple-scan post processing script to run OCR with ocrmypdf
#!/bin/bash
# ocr-script.sh
#
# Useage: set this file as the post-processing script in the simple-scan preferences. No extra arguments needed.
#
# Requirements:
# - simple-scan
# - ocrmypdf
#
# For reference, at the time of writing the arguments from simple-scan are:

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W
@Klerith
Klerith / instalaciones.md
Last active March 22, 2025 20:42
Instalaciones recomendadas - Curso de Angular de cero a experto
@MBing
MBing / install_wlan_dongle.sh
Last active March 22, 2025 20:46
install TP-Link-WN725N Nano USB Wifi on Raspberry Pi with Kernel 5.10+
# DO NOT PUT THE WIFI DONGLE IN THE DEVICE BEFORE MENTIONED EXPLICITLY BELOW
# Brief note, after this the UI will not show the usb dongle,
# the wifi does work and I get an IP address, so all works,
# but I don't go into detail of making it show on the Raspbian UI.
# (for this purpose I don't care about the UI)
# For the use of this I connected my device to an ethernet connection and through the Router could see the IP which I can SSH into.
## STEP 1: Prepare machine and install packages needed
@ADeltaX
ADeltaX / main.cpp
Created June 18, 2021 11:46
DWM Thumbnail/VirtualDesktop USING Windows.UI.Composition
#include <Unknwn.h>
#include <Windows.h>
#include <wrl\implements.h>
#include <comutil.h>
#include <dcomp.h>
#include <dwmapi.h>
#include <dxgi1_3.h>
#include <d3d11_2.h>
#include <d2d1_2.h>
#include <d2d1_2helper.h>
@da-moon
da-moon / build-zed.ps1
Last active March 22, 2025 20:33
Powershell script to build and setup latest version of zed on windows
# Zed Build and Update Script for Windows
# This script builds or updates Zed from source and sets up a command-line interface.
# Enable strict mode
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
# Configuration
$ZedRepo = "https://github.com/zed-industries/zed.git"
$BuildDir = "$env:USERPROFILE\zed-build"