这是indexloc提供的服务,不要输入任何密码
Skip to content

Instantly share code, notes, and snippets.

@arshamalh
arshamalh / session_based_ticker.go
Last active July 26, 2025 05:23
Session Based Ticker
package main
import (
"fmt"
"time"
)
type SessionBasedTicker struct {
start time.Time
end time.Time
@FreddieOliveira
FreddieOliveira / files.patch
Last active July 26, 2025 05:23
Xiaomi Note 11 (spes) kernel patches
diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c
index d37b83f4..f27945a0 100644
--- a/drivers/gpu/drm/drm_panel.c
+++ b/drivers/gpu/drm/drm_panel.c
@@ -30,6 +30,20 @@
static DEFINE_MUTEX(panel_lock);
static LIST_HEAD(panel_list);
+int drm_register_client(struct notifier_block *nb)
+{
@JoakimThorsen
JoakimThorsen / TMC links.md
Last active July 26, 2025 05:21
An attempt at collecting TMC-related resources, websites, mods, servers, and other links.
@ksprashu
ksprashu / IMPLEMENT.md
Created July 19, 2025 17:48
Implement mode for Gemini CLI / Agentic AI Coding Assistants

Gemini CLI: Implement Mode

You are Gemini CLI, operating in Implement Mode. Your function is to serve as an autonomous builder, executing a pre-approved engineering plan with precision, safety, and transparency.

Your mission is to take a user-validated plan—whether for a new feature, a bug fix, or a refactoring task—and translate it into working, high-quality, and fully verified code. You are the "Act & Refine" engine of the PRAR workflow.

Core Principles of Implement Mode

  • Primacy of the Plan: You must adhere strictly to the steps outlined in the approved plan. You are not to deviate, add features, or make architectural changes that were not agreed upon.
  • Test-Driven Execution: Your first action for any new feature or change must be to write a failing test that defines "success." You will then write the code to make that test pass.
@andrewgcodes
andrewgcodes / pr-review.yml
Last active July 26, 2025 05:06
Github Actions workflow using the Devin API for automatic PR reviews
name: Automated PR Review
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: read
issues: read
@asheroto
asheroto / EnableRDP.ps1
Last active July 26, 2025 05:06
Enable RDP on a computer with PowerShell.
# Warning
Clear-Host
Write-Output "Run this script on the computer you want to access via RDP"
Write-Output ""
# Ask
Write-Output "Remote address can be an IP address or network with CIDR"
Write-Output "Example: 192.168.0.5 or 192.168.0.0/24"
Write-Output ""
$RemoteAddress = Read-Host "Remote Address"
@mapmakerdavid
mapmakerdavid / usable-gis-data-philippines.csv
Last active July 26, 2025 05:06
Usable GIS data about the Philippines
THEME FORMAT SOURCE LINK
roads, waterways, building footprints, points of interest shp, pbf OpenStreetMap (OSM) http://download.geofabrik.de/asia/philippines.html
administrative boundaries (country, region, province, municipality, city) shp PSA, NAMRIA, DROMIC, UNOCHA, and patners https://data.humdata.org/dataset/philippines-administrative-levels-0-to-3
administrative boundaries (barangay) shp PSA, NAMRIA, DROMIC, UNOCHA, and patners https://data.humdata.org/dataset/philippines-admin4-boundaries-barangay
framework data (boundaries, roads, elevation, population, etc.) various DIVA-GIS http://www.diva-gis.org/gdata
topographic maps (1:50,000 and 1:250,000) non-georeferenced raster NAMRIA http://www.namria.gov.ph/download.php
various geohazards shp NOAH http://noah.up.edu.ph/downloads/
various geohazards shp DREAM https://lipad.dream.upd.edu.ph/
various geohazards shp MGB http://www.namria.gov.ph/download.php
various geohazards shp PHIVOLCS http://www.phivolcs.dost.gov.ph/
@NickMcSweeney
NickMcSweeney / postgresql_plus_arch-linux.md
Last active July 26, 2025 05:05
Getting postgresql running on Arch Linux

Setup Postgresql

run postgresql with systemctl

Install postgres

latest

sudo pacman -S postgresql

specific version

find version & build from source

@johacks
johacks / VS Code Ruff - uv setup
Last active July 26, 2025 05:02
Python ruff-uv setup in VS Code
This short Gist contains a recommended configuration for using uv and ruff in a python project.
The `.vscode/settings.json` configures editor to format on save on Python files and show a ruler for configured line-length.
For it to work, the ruff VS Code extension should be installed.
The `pyproject.toml` shows a template for a Python project publishable to PyPi.
@bradtraversy
bradtraversy / mern-server-setup.md
Last active July 26, 2025 05:00
Setup Ubuntu & Deploy MERN app

Linux Server Setup & MERN App Deployment

These are the steps to setup an Ubuntu server from scratch and deploy a MERN app with the PM2 process manager and Nginx. We are using Linode, but you could just as well use a different cloud provider or your own machine or VM.

Create an account at Linode

Click on Create Linode

Choose your server options (OS, region, etc)

SSH Keys