Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shadyvb
shadyvb / vscode-phpcs-ext-basepath-fix.patch
Last active July 23, 2021 14:59
Fix VSCode PHPCS issue with basepath arg in ruleset files
175,176c175,177
< const fileRealPath = extfs.realpathSync(filePath);
< if (!data.files[fileRealPath]) {
---
> const { files, totals } = data;
>
> if ( !totals.errors && !totals.warnings) {
179c180,184
< ({ messages } = data.files[fileRealPath]);
---
@nacin
nacin / trac-attach.sh
Last active March 21, 2016 09:37
A script that leverages Trac XML-RPC (I know, I know) to upload patches. Usage: `trac-attach.sh 12345`
#!/bin/sh
# A script that leverages Trac XML-RPC (I know, I know) to upload patches.
#
# This script is written specifically for the Mac, in that it reads from
# your keychain to derive your SVN password. You can change the SVN_PASS
# line below if you wanted to pull from ~/.svn/ or what not.
#
# Basic usage: `trac-attach.sh 12345` uploads a patch to ticket #12345,
# using the name 12345.diff. If there exists a 12345.diff, the patch is
@thefuxia
thefuxia / t5-fresh-editor-stylesheets.php
Created July 21, 2012 06:46
T5 Fresh Editor Stylesheets
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: T5 Fresh Editor Stylesheets
* Description: Enforces fresh editor stylesheets per version parameter.
* Version: 2012.08.09
* Author: Thomas Scholz
* Plugin URI: http://toscho.de/?p=1965
* Author URI: http://toscho.de
* License: MIT
* License URI: http://www.opensource.org/licenses/mit-license.php