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

Instantly share code, notes, and snippets.

@kpmiller
kpmiller / TOS-condorfinder-sc.py
Created January 16, 2017 05:02
scanner for iron condor trades matching some criteria
#!/usr/bin/python
import sys,os,glob,re,csv
try:
loglevel = int(os.environ["LOGLEVEL"])
except:
loglevel = 1
def Log(s, level=1):
@loorlab
loorlab / hide_elementor_admin_menus_WP.php
Created December 14, 2022 20:57
Hide Elementor Admin Menus - WordPress
<?php
function plt_hide_elementor_menus() {
//Hide "Elementor".
remove_menu_page('elementor');
//Hide "Elementor → Settings".
remove_submenu_page('elementor', 'elementor');
//Hide "Elementor → Role Manager".
remove_submenu_page('elementor', 'elementor-role-manager');
//Hide "Elementor → Tools".
remove_submenu_page('elementor', 'elementor-tools');
@mary-ext
mary-ext / bluesky-osa.md
Last active July 23, 2025 22:46
Bluesky's UK age assurance sucks, here's how to work around it.

Bluesky's UK age assurance sucks, here's how to work around it.

Bluesky recently announced that they're complying with the UK's Online Safety Act, which requires users to provide personal identity verification confirming their age (through Epic Games' Kids Web Services) before accessing certain parts of the platform.

This sucks for privacy reasons, but thankfully there are ways to work around it.

Workaround methods

Method 1. uBlock Origin

@vadirajks
vadirajks / Alpha vs Beta Apps and Nightly vs Production Builds
Created October 12, 2019 07:01
Alpha vs Beta Apps and Nightly vs Production Builds
https://instabug.com/blog/alpha-vs-beta-apps/
https://stackoverflow.com/questions/46786486/alpha-beta-snapshot-release-nightly-milestone-release-candidaterc-whe
RC = Release candidate; probably feature complete and should be pretty stable - problems should be relatively rare and minor, but worth reporting to try to get them fixed for release.
GA = General availability (a release); should be very stable and feature complete
++++++++++++++++++++++++++++++++++
Alpha:
The alpha phase of the release life cycle is the first phase to begin software testing (alpha is the first letter of the Greek alphabet, used as the number 1). In this phase, developers generally test the software using white-box techniques. Additional validation is then performed using black-box or gray-box techniques, by another testing team. Moving to black-box testing inside the organization is known as alpha release
1.Run git clone <my-cool-project>
2.Run composer install
3.Run cp .env.example .env
4.Run php artisan key:generate
5.Run php artisan migrate
6.Run php artisan serve
7.Go to link localhost:8000
@moorej2400
moorej2400 / PRD-PROMPT.md
Last active July 23, 2025 22:37
Project Discovery Prompt

AI Project Requirements & Discovery Prompt

A comprehensive requirements gathering system that instructs AI to generate thorough project documentation before implementation begins

CRITICAL INSTRUCTION: Use Multiple Sub-Agents

MANDATORY: You MUST use multiple sub-agents throughout this requirements discovery process. Deploy sub-agents for:

Core Agents (Always Used):

  • Technical Architecture Agent: Technology stack evaluation, architecture patterns, framework selection, database design
@jauderho
jauderho / gist:6b7d42030e264a135450ecc0ba521bd8
Last active July 23, 2025 22:33
HOWTO: Upgrade Raspberry Pi OS from Bullseye to Bookworm
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ###
#
# Officially, this is not recommended. YMMV
# https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/
#
# This mostly works if you are on 64bit. You are on your own if you are on 32bit or mixed 64/32bit
#
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels
#

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@mateoconfeugo
mateoconfeugo / potential_employers.clj
Last active July 23, 2025 22:29
Resume Spammer for Job Seekers
{:positions [ {:position "Software Engineer"
:organization "bogus company"
:title "software engineer"
:email "jobs@bogus.com"
:interest-statement "I am very impressed by your product offering the complex feature set if offers."
:remote ""
:employee-type ""
:notes ["mention some of the projects I've been working in on"]
:skills-need ["clojure" "full stack" "devops" "aws"]
:urls [{:url "http://mateoconfeugo.github.io/vpn-tunnel"}