Skip to content

Instantly share code, notes, and snippets.

View xen0n's full-sized avatar

WÁNG Xuěruì xen0n

View GitHub Profile
@xen0n
xen0n / admin-forms.patch
Created August 28, 2012 15:19
rudimentary tag support for django-cms
diff -Nur a//admin/forms.py b//admin/forms.py
--- a//admin/forms.py 2012-07-17 09:56:36.060026507 +0800
+++ b//admin/forms.py 2012-08-28 23:14:08.606910058 +0800
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-
from cms.apphook_pool import apphook_pool
from cms.forms.widgets import UserSelectAdminWidget
+from cms.forms.textmodelfield import TextModelMultipleChoiceField
from cms.models import (Page, PagePermission, PageUser, ACCESS_PAGE,
- PageUserGroup)
@xen0n
xen0n / strings.xml
Created August 28, 2012 15:41
github-android zh_CN translation update
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2012 GitHub Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@xen0n
xen0n / NanNvShen_Self_Voting.user.js
Created October 17, 2013 09:00
experimental Renren userscript to enable self-voting on the hui.renren.com/daren13 campaign for fun
// ==UserScript==
// @name NanNvShen Self Voting
// @namespace name.xen0n
// @description Enables self-voting on hui.renren.com/daren13 campaign.
// @include http://hui.renren.com/daren13/user/profile*
// @version 1
// @grant none
// @run-at document-start
// ==/UserScript==
@xen0n
xen0n / bootlogo-minami-kotori.patch
Last active August 29, 2015 14:05
Love Live for Linux
--- a/drivers/video/logo/logo_linux_clut224.ppm 2014-06-09 02:19:54.000000000 +0800
+++ b/drivers/video/logo/logo_linux_clut224.ppm 2014-08-21 20:07:31.729230596 +0800
@@ -1,5 +1,5 @@
P3
-# Standard 224-color Linux logo
+# 224-color Minami Kotori bootup logo for Linux
80 80
255
0 0 0 0 0 0 0 0 0 0 0 0
@@ -11,8 +11,6 @@
@xen0n
xen0n / error.log
Created May 21, 2016 19:19
rust testsuite failures @ 91e9073
failures:
---- [run-pass] run-pass/issue-28950.rs stdout ----
error: test run failed!
status: signal: 11
command: /home/xenon/code/rust/build/x86_64-unknown-linux-gnu/test/run-pass/issue-28950.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
@xen0n
xen0n / 0001-add-uksm-patch-ported-for-v4.5.patch
Created June 6, 2016 08:29
[EXPERIMENTAL] UKSM ported to Linux 4.5
From 3e9afc3a63c3126ee55df341547319ee4a8ac498 Mon Sep 17 00:00:00 2001
From: Wang Xuerui <idontknw.wang@gmail.com>
Date: Mon, 6 Jun 2016 16:20:23 +0800
Subject: [PATCH] add uksm patch ported for v4.5
---
Documentation/vm/00-INDEX | 2 +
Documentation/vm/uksm.txt | 59 +
fs/exec.c | 4 +-
fs/proc/meminfo.c | 6 +
@xen0n
xen0n / make-dist.log
Created December 19, 2016 17:50
Log of `make dist` after build triple filtering
Finished debug [unoptimized] target(s) in 0.0 secs
Synchronizing submodule url for 'src/compiler-rt'
Synchronizing submodule url for 'src/jemalloc'
Synchronizing submodule url for 'src/liblibc'
Synchronizing submodule url for 'src/llvm'
Synchronizing submodule url for 'src/rt/hoedown'
Synchronizing submodule url for 'src/rust-installer'
HEAD is now at a8fc4c1 Merge pull request #28 from xen0n/preprocessor-firefighting
HEAD is now at e058ca6 Change how the default zone is found
HEAD is now at 0ac39c5 Auto merge of #462 - semarie:openbsd-i686-correct, r=alexcrichton
#
# Automatically generated file; DO NOT EDIT.
# Linux/mips 4.7.0-ck1 Kernel Configuration
#
#
# Gentoo Linux
#
CONFIG_GENTOO_LINUX=y
CONFIG_GENTOO_LINUX_UDEV=y
@xen0n
xen0n / happy.go
Last active June 3, 2022 06:15
Welcome back to the office!
package main
import (
"fmt"
"strings"
)
func main() {
x, y, z := "7️⃣🐮", "🎁👜🔰🎥🧋🌔🌽🧐🧄🍓🔆📌💜🦔🍻🌲", "🍨🚙🚱🥹📏🐋🧱💈🧯🐕💱🍜"
@xen0n
xen0n / gopherchina-2023-loong64.md
Last active June 9, 2023 12:30
GopherChina 2023: loong64 presentation

GOARCH=loong64: past, present and future

Who am I? What's LoongArch?

Me:

  • Linux/LoongArch port reviewer