This is now an actual repo:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 使用全局变量,让上层可用 */ | |
#ifndef __LED_H__ | |
#define __LED_H__ | |
#define LED_ON 1 | |
#define LED_OFF 0 | |
static int mymajor = 0; /* 主编号 */ | |
static char* name = "myled"; /* 设备名字 */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "led.h" | |
#include <linux/init.h> | |
#include <linux/kernel.h> | |
#include <linux/module.h> | |
#include <linux/moduleparam.h> /* Param header */ | |
#include <linux/cdev.h> | |
#include <linux/slab.h> | |
#include <linux/fs.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj-m=led.o | |
KERDIR=/opt/EmbedSky/linux-2.6.30.4 | |
CURDIR=$(shell pwd) | |
# 交叉编译 | |
CROSS_ARCH=ARCH=arm CROSS_COMPILE=arm-linux- | |
default: | |
# -C 转移目录 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
van9ogh@VAN9OGH $ wpa_passphrase test "mypasswd" | |
network={ | |
ssid="test" | |
#psk="mypasswd" | |
psk=0e804f52de7e7565be873500fa038cef6a9e571f56d6757f419191f3b4fe65c6 | |
} |
Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends layout | |
block content | |
h1= title | |
p Welcome to #{title} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Post = | |
getId: -> | |
$.ajax { | |
type: 'POST' | |
url: '/getId' | |
context: $('body') | |
success: (data) -> | |
successHandle(data) | |
return | |
error: (xhr, type) -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILES=`find -iname *.txt -print` | |
for FILE in $FILES | |
do | |
# replace the + to # chars | |
sed -i -r 's/^([+]{4})\s/#### /' $FILE | |
sed -i -r 's/^([+]{3})\s/### /' $FILE | |
sed -i -r 's/^([+]{2})\s/## /' $FILE | |
sed -i -r 's/^([+]{1})\s/# /' $FILE | |
sed -i -r 's/(\[php\])/<?php/' $FILE |
https://github.com/mustache/emacs
In your shell:
cd ~/.emacs.d/vendor
curl -O https://github.com/mustache/emacs/raw/master/mustache-mode.el
In your Emacs config:
(add-to-list 'load-path "~/.emacs.d/vendor/mustache-mode.el")