Skip to content

Instantly share code, notes, and snippets.

😂
hello

fansekey xiangshouding

Block or report user

Report or block xiangshouding

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@xiangshouding
xiangshouding / gist:67a267273e2cd8e9b27f8ae34441b131
Created Apr 26, 2019
bcwc_pcie 遇到这个错误可以忽略
View gist:67a267273e2cd8e9b27f8ae34441b131
make -C /lib/modules/5.0.0-13-generic/build M=/home/<name>/dev/github/bcwc_pcie modules_install
make[1]: 进入目录“/usr/src/linux-headers-5.0.0-13-generic”
INSTALL /home/<name>/dev/github/bcwc_pcie/facetimehd.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:72
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:79
sign-file: certs/signing_key.pem: No such file or directory
DEPMOD 5.0.0-13-generic
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: 离开目录“/usr/src/linux-headers-5.0.0-13-generic”
@xiangshouding
xiangshouding / .spacemacs
Created Apr 17, 2019
my spacemacs settings
View .spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@xiangshouding
xiangshouding / zh.tex
Last active Apr 6, 2019
XeLaTeX + fontspec
View zh.tex
\documentclass[a4paper]{article}
% force auto wrap
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
\usepackage{fontspec}
\setmainfont{STKaiti}
\title{宋词序录}
View init.vim
if exists('veonim')
" built-in plugin manager
Plug 'sheerun/vim-polyglot'
Plug 'tpope/vim-surround'
" extensions for web dev
let g:vscode_extensions = [
\'vscode.typescript-language-features',
\'vscode.css-language-features',
View unistd.h
#ifndef _UNISTD_H
#define _UNISTD_H 1
/* This is intended as a drop-in replacement for unistd.h on Windows.
* Please add functionality as neeeded.
* https://stackoverflow.com/a/826027/1202830
*/
#include <stdlib.h>
#include <io.h>
@xiangshouding
xiangshouding / EmacsKeyBinding.dict
Created Sep 2, 2017 — forked from cheapRoc/EmacsKeyBinding.dict
Global Emacs Key Bindings for OS X
View EmacsKeyBinding.dict
{
/* Keybindings for emacs emulation. Compiled by Jacob Rus.
*
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
*
* BEWARE:
* This file uses the Option key as a meta key. This has the side-effect
* of overriding Mac OS keybindings for the option key, which generally
View app.js
/**
* @author xiangshouding
*/
class Box {
constructor(x, y, icon) {
this.x = x;
this.y = y;
this.icon = icon;
}
View dispacher.js
function noop() {
}
class Dispatcher {
constructor() {
this.ctx = {
tasks: [],
done: noop,
context: {}
};
View init.el
;; .emacs
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
;; 开启 melpa
(require 'package)
(setq package-archives '(("gnu" . "http://mirrors.163.com/elpa/gnu/")
View Nginx decompress gzipped request
## FOR UBUNTU
Dependencies install
1. apt-get install nginx-extras
2. apt-get install lua-zlib
lua file decompress request body
--------------------------------
see https://gist.github.com/iammehrabalam/30f5402bbcdad139c9eafd3a6f47ce6c
You can’t perform that action at this time.