Skip to content

Instantly share code, notes, and snippets.

@danhollick
danhollick / tailwind-css-v4.mdc
Last active March 7, 2025 02:30
Cursor rules file for Tailwind CSS v4.0
# Tailwind CSS v4.0
## Core Changes
- **CSS-first configuration**: Configuration is now done in CSS instead of JavaScript
- Use `@theme` directive in CSS instead of `tailwind.config.js`
- Example:
```css
@import "tailwindcss";
@ignaciotcrespo
ignaciotcrespo / git_clone_branch_only.sh
Last active March 7, 2025 02:30
git clone a specific branch, ONLY the latest commit without history, and wipe out folder before
# wipe out folder. Added manually the .git folders due to cant find a good command to delete everything in macos & linux
rm -rf .git
rm -rf .git*
rm -rf ./*
# clone branch, fast way to get a specific branch without the complete history
git clone -b ${BRANCH_TO_BUILD} --depth 1 --single-branch ${REPO_URL} .
import androidx.compose.animation.core.AnimationSpec
import androidx.compose.animation.core.animate
import androidx.compose.animation.core.tween
import androidx.compose.foundation.gestures.ScrollableState
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.saveable.Saver
@neno-tech
neno-tech / code.gs
Last active March 7, 2025 02:27
ตอนที่ 2 ระบบค้นหาข้อมูลใน Google Sheet
var SCRIPT_PROP = PropertiesService.getScriptProperties();
var sheetID= 'xxx'
function setup() {
var doc = SpreadsheetApp.getActiveSpreadsheet();
SCRIPT_PROP.setProperty(sheetID, doc.getId());
}
function uploadFile(data, file,id,stdCode,firstname,lastname,address,tel,email) {
try {
var folder=DriveApp.getFolderById('xxx');
@AskinNet
AskinNet / kitty.md
Created May 10, 2024 07:29 — forked from pnsinha/kitty.md
Kitty CheatSheet

Default shortcuts

Scrolling

Action Shortcut
Scroll line up ctrl+shift+up (also ⌥+⌘+⇞ and ⌘+↑ on macOS)
Scroll line down ctrl+shift+down (also ⌥+⌘+⇟ and ⌘+↓ on macOS)
Scroll page up ctrl+shift+page_up (also ⌘+⇞ on macOS)
Scroll page down ctrl+shift+page_down (also ⌘+⇟ on macOS)
@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);
@banvantioo2
banvantioo2 / FF Beta Testing APK.md
Created March 6, 2025 15:52
FF Beta Testing APK 18.6 [Free Fire] Free Download for Android 2025

What is FF Beta Testing APK?

FF Beta Testing APK is a beta version of the popular battle royale game Free Fire, developed by Garena. This APK allows players to access experimental features, test new updates, and explore upcoming content before it is officially released to the public. It serves as a testing ground for developers to gather feedback, identify bugs, and refine gameplay mechanics, ensuring the final version of the game is polished and optimized for all players.

image

Unlike the standard version of Free Fire, the beta version includes unreleased features such as new weapons, maps, characters, and gameplay adjustments. Players who participate in beta testing play a crucial role in shaping the future of the game by providing valuable insights and suggestions.

@lukasnellen
lukasnellen / 00-docker-shorewall.md
Last active March 7, 2025 02:21
setup shorewall for docker networking beyond the default bridge network, e.g., for docker-compose

Docker(-compose) with shorewall

The shorewall documentation explains in http://shorewall.org/Docker.html how to configure shorewall for use with docker. The problem with the configuration is that it only allows connections from the host to the main bridge docker0. Connections to other networks on dynamically created bridges, with names starting by default with br-, is blocked. Instead of the recommended contents of /etc/shorewall/interfaces, use wild-card interface names as follows:

#ZONE	INTERFACE	OPTIONS
#dock	docker0		bridge     # disabled default recommendation
dock 	docker0		physical=docker+,routeback=1
dock 	br		physical=br-+,routeback=1
@ljm42
ljm42 / bleeding_edge_toolkit.php
Last active March 7, 2025 02:19
The Bleeding Edge Toolkit for Unraid. Allows you update your system with the latest unreleased webui code.
#!/usr/bin/php
<?PHP
error_reporting(E_STRICT | E_ALL);
ini_set('display_errors', '1');
/*
bleeding_edge_toolkit Copyright 2018-2023, ljm42
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 2,
as published by the Free Software Foundation.
@neno-tech
neno-tech / code.gs
Created November 5, 2021 06:59
เว็บแอป Login ลงชื่อเข้าใช้ด้วย Username และ Password ใช้ฐานข้อมูลผู้ใช้จาก Google Sheet เมื่อล็อกอินสำเร็จ..ให้ลิงค์ไปหน้าเว็บที่ต้องการ
function doGet(e) {
return HtmlService.createTemplateFromFile("index").evaluate()
.addMetaTag('viewport', 'width=device-width, initial-scale=1')
.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL);
}
function checkLogin(username, password) {
var url = 'xxx';
var ss= SpreadsheetApp.openByUrl(url);
var webAppSheet = ss.getSheetByName("xxx");