This file contains 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
package ru.bizlink.utility; | |
object implicits { | |
/** | |
* <pre>Example: | |
* "foo" or "bar" == "foo" | |
* (null: String) or "bar" == "bar" | |
* </pre> | |
* Note: Scala 2.8 allows for: <code>Option(null) orElse Option("bar")</code> | |
*/ |
This file contains 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
""" | |
Uncomment 'CFLAGS+=-DDEBUG=1' line in sys/modules/zfs/Makefile. | |
Add the following lines to your kernel config: | |
options WITNESS | |
options WITNESS_SKIPSPIN | |
options INVARIANTS | |
options INVARIANT_SUPPORT | |
options DEBUG_VFS_LOCKS |
This file contains 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
tar -xzf j-chkmail-stable.tar.gz | |
cd jchkmail-2.1.0/ | |
./configure --prefix=/usr/local/jchkmail | |
gmake | |
# Add known SMTP servers into local policy: | |
# joe /var/jchkmail/cdb/j-policy.txt | |
NetClass:photosoyuz.com LOCAL | |
NetClass:81.177.22.18 LOCAL |
This file contains 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
# Building AppArmor kernel from source. | |
cd ~/work/ | |
git clone git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor.git | |
cd linux-apparmor/ | |
# See if we have an existing kernel configuration (CONFIG_IKCONFIG_PROC): | |
cp /proc/config.gz ./ && gzip -d config.gz | |
make menuconfig | |
# Check that ... |
This file contains 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
# Last Modified: Tue Apr 13 15:45:46 2010 | |
#include <tunables/global> | |
/usr/bin/acroread { | |
#include <abstractions/base> | |
/bin/dash ix, | |
/etc/dpkg/dpkg.cfg r, | |
/etc/dpkg/dpkg.cfg.d/ r, | |
/proc/filesystems r, |
This file contains 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
package grond.server; | |
import java.io.IOException; | |
import java.net.URLDecoder; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import com.google.appengine.repackaged.org.json.JSONObject; |
This file contains 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
package com.seventhdawn.gwt.rcx.server; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.net.URLDecoder; | |
import java.net.URLEncoder; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; |
This file contains 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/sh | |
exec scala -nocompdaemon -savecompiled $0 $@ | |
!# | |
// See also: | |
// http://www.docjar.com/html/api/sun/awt/X11/XlibUtil.java.html | |
// Overall the toolkit doesn't provide enough methods to do what I intended, | |
// alternatives are to use JNA or wmctrl. | |
val nativeC = getClass.getClassLoader.loadClass ("sun.awt.X11.Native") |
This file contains 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
Suppose we have a following stack trace: | |
Stack: [...,...], sp=..., free space=... | |
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) | |
C [libcpp_mem_i_40.so+0xAAAA] _ZN3Mem10setCounterExii+0xBBB | |
--- Using the first offset (0xAAAA) ------- | |
Open the gdb: |