Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

Discover gists

@mdasifmunshe
mdasifmunshe /Install Tailwind CSS v4 with Vite and Yarn
Last activeOctober 8, 2025 02:40
Setting up Tailwind CSS in a Vite app with Yarn
/*
The following gist is tested with react+typescript+swc.
Other Framework may differ from each other at "vite.config.ts" file.
*/
/* Terminal */
yarn create vite my-app
cd my-app
@jirihnidek
jirihnidek /flock_example.py
CreatedJune 21, 2021 13:56
File locking using fcntl.flock using Python
"""
Example of using fcntl.flock for locking file. Some code inspired by filelock module.
"""
importos
importfcntl
importtime
defacquire(lock_file):
@B1G
B1G /README.md
Last activeOctober 8, 2025 02:38
Ubuntu Speech-to-Text with nerd-dictation and Vosk

A simple setup for offline speech-to-text using nerd-dictation and Vosk on Ubuntu.

Features

  • 🎤 Offline speech recognition (no internet required)
  • 🖥️ Two modes: Terminal output and GUI typing
  • ⌨️ Keyboard shortcut support
  • 📋 Direct typing into applications
  • 🔧 Works with any Ubuntu desktop environment
@ruvnet
ruvnet /Flow.md
Last activeOctober 8, 2025 02:37
Claude Flow Playbook for Advanced Coordination, Context Engineering, and Artifact-Centric Swarms

Claude Flow treats memory as the backbone and MCP tools as the hands. You get concurrent agents that coordinate cleanly, keep context tight, and ship durable artifacts without dragging long text through prompts. It feels like an ops layer for intelligence.

The stack is simple. Claude Code as the client. Claude Flow as the MCP server. SQLite memory at .swarm/memory.db for state, events, patterns, workflow checkpoints, and consensus. Artifacts hold the big payloads. Manifests in memory link everything with ids, tags, and checksums.

Coordination is explicit. Agents write hints to a shared blackboard, gate risky steps behind consensus, and record every transition as an event. Hooks inject minimal context before tools run and persist verified outcomes after. Small bundles in, durable facts out.

Planning keeps runs stable. Use GOAP to sequence actions with clear preconditions. Use OODA to shorten loops.

Observe metrics, orient with patterns, decide through votes, act with orchestration. Topology adapts from hi

@rajkosto
rajkosto /nokia-router-cfg-tool.py
Last activeOctober 8, 2025 02:36— forked fromthedroidgeek/nokia-router-cfg-tool.py
Nokia/Alcatel-Lucent router backup configuration tool
#!/usr/bin/env python3
#
# Nokia/Alcatel-Lucent router backup configuration tool
# G2425 support added by rajkosto on 20/11/2022
# XS-2426G-B support added by rajkosto on 28/02/2023
#
# Features:
# - Unpack/repack .cfg files generated from the backup and restore functionnality
@kendallroth
kendallroth /forward_wsl2_ports.ps1
Last activeOctober 8, 2025 02:34
Forward WSL2 ports to host
# Forward WSL2 ports to host machine/platform (handles Windows Firewall)
#
# NOTE: 'iex' is a shortform for 'Invoke-Expression'
# Ports that should be forwarded to WSL2 and allowed through firewall (comma-separated)
$ports=@(8081);
# WSL IP address changes whenever WSL restarts
$wsl_ip=$(wsl hostname-I).Trim();
@reddragon
reddragon /libevent-demo.cpp
Last activeOctober 8, 2025 02:26
A demo for libevent usage
#include<iostream>
#include<cstdio>
#include<vector>
#include<event2/event.h>
#include<glog/logging.h>
#include<cassert>
#include<string>
#include<cstring>
#include<sys/socket.h>
#include<netinet/in.h>

The semantic tokens from lsp uses the@lsp.typemod.method.declaration highlight group for__init__ constructor ofclasses. Treesitter, in the other hand, applies the@constructor highlight group.

basedpyright-lsp

The@constructor highlight group is more meaningful, right?

@markasoftware
markasoftware /enterprise_token.rb
Last activeOctober 8, 2025 02:17
OpenProject Enterprise mode for free
############ If you are using DOCKER all-in-one image, create Dockerfile like: ################
############ FROM openproject/openproject:16 ################
############ COPY ./enterprise_token.rb app/models/enterprise_token.rb ################
############ If you are runing a manual installation: ################
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ If using some other set up (eg docker-compose), read the comments on ################
############ https://gist.github.com/markasoftware/f5b2e55a2c2e3abb1f9eefcdf0bfff45 ################
NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp