Skip to content

Instantly share code, notes, and snippets.

@SamB
SamB / sphinx-remove-highlight.user.js
Created March 8, 2022 22:15
Sphinx: Remove highlight (userscript)
// ==UserScript==
// @name Sphinx: Remove highlight
// @namespace Violentmonkey Scripts
// @match *://*/*.html?highlight=*
// @grant none
// @inject-into auto
// @version 1.0
// @author Samuel Bronson
// @description 3/8/2022, 4:49:16 PM
// ==/UserScript==
# 1 "<built-in>"
# 1 "/home/naesten/llvm-project/clang/test/CodeGen/RISCV/loop-vectorize.c"
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -triple riscv64 -target-feature +v -O1 -emit-llvm -o - %s \
// RUN: | FileCheck %s -check-prefix=CHECK-HAS-V
// RUN: %clang_cc1 -triple riscv64 -target-feature -v -O1 -emit-llvm -o - %s \
// RUN: | FileCheck %s -check-prefix=CHECK-NO-V
typedef __SIZE_TYPE__ size_t;
@SamB
SamB / make-riscv-chroot.sh
Created January 27, 2022 23:25
Make RISC-V chroot
sudo apt-get install sbuild qemu-user-static binfmt-support debian-ports-archive-keyring
sudo sbuild-createchroot --arch=riscv64 unstable /srv/chroot/unstable-riscv64/ --alias=sid --alias=UNRELEASED \
--keyring=/usr/share/keyrings/debian-ports-archive-keyring.gpg --include=debian-ports-archive-keyring \
http://deb.debian.org/debian-ports
# Now edit /etc/schroot/chroot.d/unstable-riscv64-sbuild-<gibberish>:
# change "profile=sbuild" to "profile=default".
# Maybe rename it to strip the gibberish, too.
#!/bin/bash
git init
SCRIPT=//wsl\$/Debian/usr/share/doc/git/contrib/fast-import/import-tars.perl
export GIT_AUTHOR_NAME="Andy Clark"
export GIT_AUTHOR_EMAIL="andyc@apache.org"
perl $SCRIPT nekoxni-*.tar.gz
Displays, sets, or removes cmd.exe environment variables.
SET [variable=[string]]
variable Specifies the environment-variable name.
string Specifies a series of characters to assign to the variable.
Type SET without parameters to display the current environment variables.
If Command Extensions are enabled SET changes as follows:
<#++
Copyright (c) 2011 Microsoft Corporation
Module Name:
WindowsUpdateProvider.psd1
Abstract:
=== modified file 'tests.py'
--- tests.py 2012-09-18 16:59:47 +0000
+++ tests.py 2012-09-19 15:03:42 +0000
@@ -446,3 +446,9 @@
raise KnownFailure\
("bisect does not drill down into merge commits: "
"https://bugs.launchpad.net/bzr-bisect/+bug/539937")
+
+ def testRunRange(self):
+ out, err = self.run_bzr(['bisect', 'run', '-r', '2..5',
@SamB
SamB / qt-webkit-ppc32.diff
Created August 7, 2012 22:07
Patch to Qt 4.8.2's WebKit to allow it to build on Mac OS X/PPC32
--- qt-everywhere-opensource-src-4.8.2.orig/src/3rdparty/webkit/Source/WebCore/WebCore.pro 2012-08-07 17:03:00.000000000 -0400
+++ qt-everywhere-opensource-src-4.8.2/src/3rdparty/webkit/Source/WebCore/WebCore.pro 2012-08-07 16:26:37.000000000 -0400
@@ -2975,7 +2975,7 @@
platform/mac/WebWindowAnimation.mm
DEFINES+=NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES
- contains(CONFIG, "x86") {
+ contains(CONFIG, "x86")|contains(CONFIG, "ppc") {
DEFINES+=NS_BUILD_32_LIKE_64
}