Skip to content

Instantly share code, notes, and snippets.

//ooo
foreach ($_REQUEST as $k => $v) {
if (!is_scalar($k)) $k = json_encode($k);
if (!is_scalar($v)) $v = json_encode($v);
file_put_contents("php://stderr", "[{$k}] {$v}" . PHP_EOL);
}
abort(401, 'Unauthorized');
@geerpm
geerpm / tampermonkey-trello-copy2clipboard.js
Created September 20, 2022 07:45
If you click trello card's title icon, then copied cardNo, title and url to the clipboard
// ==UserScript==
// @name trello/title,url,cardNo copy to clipboard
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author geerpm
// @match https://trello.com/c/*
// @grant none
// ==/UserScript==
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(