Skip to content

Instantly share code, notes, and snippets.

@pellaeon
pellaeon / kk.c
Created September 25, 2012 13:23
Example 2-23
/*
* =====================================================================================
*
* Filename: kk.c
*
* Description: KK
*
* Version: 1.0
* Created: 2012年09月25日 18時52分43秒
* Revision: none
無法完成安裝:「internal error process exited while connecting to monitor: char device redirected to /dev/pts/4
kvm: -drive file=/var/lib/libvirt/images/pellaeons_freebsd.img,if=none,id=drive-ide0-0-0,format=raw: could not open disk image /var/lib/libvirt/images/pellaeons_freebsd.img: Permission denied
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 1909, in do_install
guest.start_install(False, meter=meter)
File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1236, in start_install
/*
* =====================================================================================
*
* Filename: concatenate_lists.c
*
* Description: Concatenates 2 linked lists of characters
*
* Version: 1.0
* Created: 2013年01月07日 11時38分00秒
* Revision: none
obj-m +=feng.o
KERNELDIR ?= ~/android/kernel/k2u-jb-3.4.10-cl157896-1-built
PWD := $(shell pwd)
CROSS_COMPILE=/home/pellaeon/toolchains/arm-eabi-4.6/bin/arm-eabi-
ARCH=arm
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) modules
namespace OC\Core\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class Auth extends Command {
protected function configure() {
--------- beginning of /dev/log/system
I/Vold ( 157): Vold 2.1 (the revenge) firing up
I/Vold ( 157): Set handling read only 0
D/Vold ( 157): Storage structure is 0
E/Vold ( 157): Failed to set storage strcture
--------- beginning of /dev/log/main
I/DEBUG ( 169): debuggerd: Oct 18 2013 21:45:36
I/SurfaceFlinger( 159): SurfaceFlinger is starting
I/SurfaceFlinger( 159): use dithering
I/SurfaceFlinger( 159): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.AV=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
var key, val, _ref;
_ref = _dereq_('./src/aurora');
for (key in _ref) {
val = _ref[key];
exports[key] = val;
}
_dereq_('./src/devices/webaudio');
(function e(t, n, r) {
function s(o, u) {
if (!n[o]) {
if (!t[o]) {
var a = typeof require == "function" && require;
if (!u && a) return a(o, !0);
if (i) return i(o, !0);
throw new Error("Cannot find module '" + o + "'")
}
var f = n[o] = {
<html ng-app="mail" ng-csp="" manifest="appcache.manifest"><head>
<meta charset="utf-8">
<title>Whiteout Mail</title>
<!-- Theses CSP rules are used as a fallback in runtimes such as Cordova -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self' chrome-extension: file: gap:; object-src 'none'; script-src 'self' 'unsafe-eval' chrome-extension: file: gap:; connect-src *; style-src 'self' 'unsafe-inline' chrome-extension: file: gap:; img-src 'self' chrome-extension: file: gap: data:">
<!-- iOS homescreen link -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- iOS iPad icon (retina) -->
@pellaeon
pellaeon / post-receive
Created February 20, 2015 06:00
Django uwsgi post-receive git deploy hook (FreeBSD)
#!/bin/bash
export GIT_WORK_TREE=/srv/xxxx.tw
git checkout -f master
cd $GIT_WORK_TREE
cp /repos/settings.json ${GIT_WORK_TREE}/luroufan/settings/
if [ ! -d ${GIT_WORK_TREE}/venv ]; then
virtualenv venv
fi
. venv/bin/activate