Skip to content

Instantly share code, notes, and snippets.

From 2e138f850b233ab2d19f0269000a7abb29f4a828 Mon Sep 17 00:00:00 2001
From: Michael Liao <michael.hliao@gmail.com>
Date: Fri, 27 Mar 2020 15:21:50 -0400
Subject: [PATCH 1/1] Support template partial specialization.
---
.../clang/Basic/DiagnosticSemaKinds.td | 7 -
clang/lib/CodeGen/CodeGenModule.cpp | 2 +-
clang/lib/Sema/SemaDeclCXX.cpp | 193 ++++++------------
clang/test/CodeGenCUDA/surface.cu | 7 +-
sudo apt-get install git build-essential dkms git
git clone -b extended https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6
#reboot
@darkbuck
darkbuck / enable-remote.sh
Created December 9, 2018 15:54 — forked from rkmax/enable-remote.sh
Setup a virtual screen for connect from VNC viewer (example VNC VIwer Android)
#!/bin/bash
WIDTH=1280
HEIGHT=800
x11_cmd=x11vnc
if [[ ! -z $(pgrep ${x11_cmd}) ]]; then
pkill ${x11_cmd}
fi
@darkbuck
darkbuck / mp-select-mini-notes.md
Created November 27, 2017 05:33 — forked from johnbintz/mp-select-mini-notes.md
Monoprice Select Mini 3D Printer (and general 3D printing stuff) Notes

(all subject to change!)

Filaments tried

ProtoParadigm

  • PLA white, black, sapphire: Sapphire was tricky to get into Bowden tube at first, but once in, all three printed fine.
  • PLA summer colors: easy to use, cheap for a lot of different colors

Hatchbox

#!/usr/bin/env python
#
# Copyright 2014-2015 Cameron Hart <cam@bitshifter.net.nz>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
@darkbuck
darkbuck / build.log
Created January 11, 2017 07:32
cmake and build log Halide RELEASE build against LLVM DEBUG build
This file has been truncated, but you can view the full file.
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 1/10/2017 9:50:48 PM.
Project "C:\halide\build.halide.dbg\ALL_BUILD.vcxproj" on node 1 (default targets).
Project "C:\halide\build.halide.dbg\ALL_BUILD.vcxproj" (1) is building "C:\halide\build.halide.dbg\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
Creating directory "Win32\Debug\ZERO_CHECK\".
Creating directory "C:\halide\build.halide.dbg\Debug\".
Creating directory "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\".
@darkbuck
darkbuck / gist:c9fb98341fb041a0c2ae9fdeee1767a1
Last active January 25, 2023 11:49 — forked from schlamar/gist:7024668
Handle Windows privileges from Python. Based on http://stackoverflow.com/a/2129589/851737
from __future__ import print_function
import ctypes
from ctypes import wintypes
GetCurrentProcess = ctypes.windll.kernel32.GetCurrentProcess
GetCurrentProcess.restype = wintypes.HANDLE
OpenProcessToken = ctypes.windll.advapi32.OpenProcessToken
OpenProcessToken.argtypes = (wintypes.HANDLE, wintypes.DWORD, ctypes.POINTER(wintypes.HANDLE))
OpenProcessToken.restype = wintypes.BOOL
@darkbuck
darkbuck / gnome-terminal-colors-for-putty.reg
Created September 20, 2016 16:43 — forked from bheeshmar/gnome-terminal-colors-for-putty.reg
I finally got fed up enough with PuTTY's default ANSI colors that I customized them to match the gnome-terminal settings on Ubuntu 10.04
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]
"Colour6"="0,0,0"
"Colour7"="85,87,83"
"Colour8"="204,0,0"
"Colour9"="239,41,41"
"Colour10"="78,154,6"
"Colour11"="138,226,52"
"Colour12"="196,160,0"