Skip to content

Instantly share code, notes, and snippets.

@ljrk0
ljrk0 / test.pas
Created December 16, 2014 14:24
testgist
type TRegister
@ljrk0
ljrk0 / SELinuxDomain
Created December 27, 2014 22:29
dmesg | grep SELinux on CM12, mint
<7>[ 6.349580] SELinux: 2048 avtab hash slots, 7135 rules.
<7>[ 6.351777] SELinux: 2048 avtab hash slots, 7135 rules.
<7>[ 6.351808] SELinux: 1 users, 2 roles, 577 types, 0 bools, 1 sens, 1024 cats
<7>[ 6.351838] SELinux: 86 classes, 7135 rules
<7>[ 6.352937] SELinux: Completing initialization.
<7>[ 6.352937] SELinux: Setting up existing superblocks.
<7>[ 6.352968] SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
<7>[ 6.352968] SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
<7>[ 6.353059] SELinux: initialized (dev bdev, type bdev), not configured for labeling
<7>[ 6.353090] SELinux: initialized (dev proc, type proc), uses genfs_contexts
@ljrk0
ljrk0 / build log 1
Last active August 29, 2015 14:12
build log
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0.2
CM_VERSION=12-20150105-UNOFFICIAL-mint
TARGET_PRODUCT=cm_mint
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
@ljrk0
ljrk0 / compton
Last active August 29, 2015 14:14
configs
opacity-rule = [ "70:name *='konsole' && !focused", "90:name*='konsole' && focused", "70:name *='leonard' && !focused", "90:name*='leonard' && focused"]
# focus-exclude = ["name != 'leonard'" ];
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-opacity = 0.7;
From 99040b9acbe058c30cd53558e30ec9e6b8d8ba99 Mon Sep 17 00:00:00 2001
From: LeonardKoenig <leonard.r.koenig@googlemail.com>
Date: Sun, 10 May 2015 17:45:03 +0200
Subject: [PATCH] fix build error
---
src/symbols/name.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/symbols/name.hpp b/src/symbols/name.hpp
This file has been truncated, but you can view the full file.
Got connection from unknown(local)
000:<: am lsb-first want 11:0 authorising with 'MIT-MAGIC-COOKIE-1' of length 16
000:>: Success, version is 11:0 vendor='The X.Org Foundation' release=11701000 resource-id=0x02400000 resource-mask=0x001fffff motion-buffer-size=256 max-request-len=65535 image-byte-order=LSBFirst(0x00) bitmap-bit-order=LeastSignificant(0x00) scanline-unit=32 scanline-pad=32 min-keycode=0x08 max-keycode=0x00 pixmap-formats={depth=1 bits/pixel=1 scanline-pad=32},{depth=4 bits/pixel=8 scanline-pad=32},{depth=8 bits/pixel=8 scanline-pad=32},{depth=15 bits/pixel=16 scanline-pad=32},{depth=16 bits/pixel=16 scanline-pad=32},{depth=24 bits/pixel=32 scanline-pad=32},{depth=32 bits/pixel=32 scanline-pad=32}; roots={root=0x00000250 default-colormap=0x00000020 white-pixel=0x00ffffff black-pixel=0x00000000 input-mask=ButtonPress,EnterWindow,LeaveWindow,PointerMotion,Exposure,StructureNotify,SubstructureNotify,SubstructureRedirect,PropertyChange width[pixel]=1366 height[pixel]=768 width[mm]=340 height[mm]=1
<6>[ 0.000000] Booting Linux on physical CPU 0
<6>[ 0.000000] Initializing cgroup subsys cpu
<5>[ 0.000000] Linux version 3.4.0-NEO-gfd952a4 (whiteneo@i5-4670k) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #1 SMP PREEMPT Wed Jun 3 23:19:53 CEST 2015
<4>[ 0.000000] CPU: ARMv7 Processor [511f04d4] revision 4 (ARMv7), cr=10c5387d
<4>[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
<4>[ 0.000000] Machine: BLUE CDB
<6>[ 0.000000] Initialized persistent memory from bffe0000-bfffffff
<6>[ 0.000000] ram_console memory reserved: 0x20000@0xbffe0000
<6>[ 0.000000] rdtags memory reserved: 0x80000@0xbff60000
<6>[ 0.000000] ramdump crash log memory reserved: 0x4000@0xbff5c000
Section "Device"
# Identifier "nvidia"
# Driver "nvidia"
# ^ this should be somewhere in the xorg.conf already, the value for
# identifier might vary though.
# There should be 2 device sections but only one with nvidia as "Driver" value,
# this is the one where you should put the following lines.
Option "ConnectedMonitor" "DFP-0"
Option "CustomEDID" "CRT-0:/sys/class/drm/card0-LVDS-1/edid"
-- sum_{k=1}^{n} k^2 :
qSum n = foldr (+) 0 (map (^2) [1..n])
qSumC :: Fractional a => a -> a
qSumC n = n * (2*(n^2) + 3*n + 1) / 6
-- bug in haskell?:
--
-- try in interactive mode:
-- let qs n = n* (2*(n^2) + 3*n + 1) / 6