Skip to content

Instantly share code, notes, and snippets.

@nendix
nendix / shit.sh
Created May 10, 2025 16:49
cheatsheets with fzf picker and bat preview
#!/bin/bash
CHTSH_URL="https://cheat.sh"
TOPICS=$(curl -s "${CHTSH_URL}/:list")
TOPIC=$(echo "$TOPICS" | fzf --height 40% --reverse --prompt="Select a topic: ")
if [[ -z "$TOPIC" ]]; then
echo "No topic selected. Exiting." >&2
exit 1
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(