Skip to content

Instantly share code, notes, and snippets.

====Build-in Commands====
====Support 4 cmds once, seperate by ; ====
help : print this
p : print memory
m : modify memory
echo : echo for command
exit : close CLI
devname : print device name
sysver : system version
reboot : reboot system
@dratini0
dratini0 / quickRangeDav.diff
Last active August 29, 2015 14:18
Backport of sabre-io/dav#623 for owncloud 8.0.2
--- /var/www/owncloud/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php 2015-04-02 16:50:45.805577094 +0200
+++ Server.php_ 2015-04-02 17:37:08.709819071 +0200
@@ -616,25 +616,23 @@
}
- // New read/write stream
- $newStream = fopen('php://temp','r+');
-
- // stream_copy_to_stream() has a bug/feature: the `whence` argument
@dratini0
dratini0 / gist:4e4a5282f25eb2d6ea9c
Last active August 29, 2015 14:15
Config for the proposed X-Accel-Redirect behavior
server {
# standard statements
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/;
index index.php index.html index.htm;
try_files $uri $uri/ =404;
# these blocks roughly correspond to the XSendFilePath directive in apache
# essentially whitelisting parts of the filesystem for x-accel-redirect access
@dratini0
dratini0 / mcedit.log
Created January 25, 2013 21:03
MCEDIT: Can not fill/replace with 256+ future block
[INFO][acceleratesupport.py:16]:No OpenGL_accelerate module loaded: No module named OpenGL_accelerate
[INFO][formathandler.py:54]:Unable to load registered array format handler numeric:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/OpenGL/arrays/numeric.py", line 15, in <module>
raise ImportError( """No Numeric module present: %s"""%(err))
File "/usr/lib/python2.7/dist-packages/OpenGL/plugins.py", line 28, in importByName
module = __import__( ".".join(moduleName), {}, {}, moduleName)
File "/usr/lib/python2.7/dist-packages/OpenGL/plugins.py", line 14, in load (self is a FormatHandler)
return importByName( self.import_path )
File "/usr/lib/python2.7/dist-packages/OpenGL/arrays/formathandler.py", line 44, in loadPlugin
@dratini0
dratini0 / mcedit.log
Created December 9, 2012 21:58
MCEDIT: PE worlds not showing up
[INFO][acceleratesupport.py:16]:No OpenGL_accelerate module loaded: No module named OpenGL_accelerate
[INFO][formathandler.py:54]:Unable to load registered array format handler numeric:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/OpenGL/arrays/numeric.py", line 15, in <module>
raise ImportError( """No Numeric module present: %s"""%(err))
File "/usr/lib/python2.7/dist-packages/OpenGL/plugins.py", line 28, in importByName
module = __import__( ".".join(moduleName), {}, {}, moduleName)
File "/usr/lib/python2.7/dist-packages/OpenGL/plugins.py", line 14, in load (self is a FormatHandler)
return importByName( self.import_path )
File "/usr/lib/python2.7/dist-packages/OpenGL/arrays/formathandler.py", line 44, in loadPlugin
@dratini0
dratini0 / LICENSE.txt
Created April 15, 2012 12:06 — forked from 140bytes/LICENSE.txt
Quine -- 140byt.es entry
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Bálint Kovács http://dratini0.co.cc/
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION