Skip to content

Instantly share code, notes, and snippets.

View gist:b099c869fcb4b44ec5371445a4f25b97
td::__1::__tree<
std::__1::__value_type<
std::__1::basic_string<char,
std::__1::char_traits<char>,
std::__1::allocator<char> >,
std::__1::set<std::__1::pair<llvm::CodeGenInstAlias, int>,
(anonymous namespace)::AliasPriorityComparator,
std::__1::allocator<
std::__1::pair<llvm::CodeGenInstAlias, int> > > >,
std::__1::__map_value_compare<
View dragon.tex
\documentclass{standalone}
\usepackage{tikz}
\usepackage{relsize}
\usepackage{wrapfig}
\usepackage{lmodern}
\usepackage{tgothic}
\usepackage[T1]{fontenc}
\usetikzlibrary{lindenmayersystems,
shapes.geometric,shapes,
arrows,snakes,matrix,backgrounds,intersections,
View mer-minimal.ks
#not Edit! Generated by:
# kickstarter.py
#
lang en_US.UTF-8
keyboard us
timezone --utc UTC
part / --size 500 --ondisk sda --fstype=ext4
rootpw rootme
View -
(012353) [13:22:47] % sudo modprobe loop
(012353) [13:22:47] (native) % losetup -f /home/user/rootfs/nokia-rx51.img
losetup: /home/user/rootfs/nokia-rx51.img: Warning: file is smaller than 512 bytes; the loop device may be useless or invisible for system tools.
(012353) [13:22:47] (native) % losetup --json --list
(012353) [13:22:47] ERROR: sequence item 3: expected str instance, NoneType found
(012353) [13:22:47] Run 'pmbootstrap log' for details.
(012353) [13:22:47] See also: <https://postmarketos.org/troubleshooting>
(012353) [13:22:47] Traceback (most recent call last):
File "./pmbootstrap.py", line 53, in main
getattr(pmb.helpers.frontend, args.action)(args)
View -
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.18.31-perf-gc44a700f40cd-dirty (locusf@locusf-desktop) (gcc version 4.9 20150123 (prerelease) (GCC) ) #6 SMP PREEMPT Thu Jun 29 18:35:26 EEST 2017
[ 0.000000] CPU: AArch64 Processor [511f2112] revision 2
[ 0.000000] alternatives: detected feature GIC system register CPU interface
[ 0.000000] Machine: SoMC Kagura-ROW
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: reserved region for node 'removed_regions@85800000': base 0x0000000085800000, size 48 MiB
[ 0.000000] Reserved memory: reserved region for node 'peripheral_region@8ea00000': base 0x000000008ea00000, size 45 MiB
View aosp_tone_kagura_defconfig
'androidboot.bootdevice=7464900.sdhci androidboot.selinux=permissive console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 msm_rtb.filter=0x3F ehci-hcd.park=3 dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y coherent_pool=8M sched_enable_power_aware=1 user_debug=31 androidboot.hardware=kagura bootmode=debug'
# CONFIG_AUDIT is not set
# CONFIG_AUDITSYSCALL is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_IRQ_TIME_ACCOUNTING=y
CONFIG_RCU_EXPERT=y
CONFIG_RCU_FAST_NO_HZ=y
CONFIG_LOG_CPU_MAX_BUF_SHIFT=15
CONFIG_CGROUPS=y
View gist:e8c48680595da81f514550a2f92ea742
lxc 20170517202708.239 INFO lxc_cgfsng - cgroups/cgfsng.c:do_secondstage_mounts_if_needed:1566 - Mounting /sys/fs/cgroup/cpu//lxc/default onto /usr/lib/lxc/rootfs/sys/fs/cgroup/cpu//lxc/default
lxc 20170517202708.239 INFO lxc_cgfsng - cgroups/cgfsng.c:do_secondstage_mounts_if_needed:1574 - Completed second stage cgroup automounts for /usr/lib/lxc/rootfs/sys/fs/cgroup/cpu//lxc/default
lxc 20170517202708.239 INFO lxc_cgfsng - cgroups/cgfsng.c:do_secondstage_mounts_if_needed:1560 - Remounted /usr/lib/lxc/rootfs/sys/fs/cgroup/devices read-only
lxc 20170517202708.239 INFO lxc_cgfsng - cgroups/cgfsng.c:do_secondstage_mounts_if_needed:1566 - Mounting /sys/fs/cgroup/devices//lxc/default onto /usr/lib/lxc/rootfs/sys/fs/cgroup/devices//lxc/default
lxc 20170517202708.239 INFO lxc_cgfsng - cgroups/cgfsng.c:do_secondstage_mounts_if_needed:1574 - Completed second stage cgroup automounts for /usr/lib/lxc/rootfs/sys/fs/cgroup/devices//lxc/default
View gist:bdb260da471a7f772a4d3aa6d941c8b1
textrender.cpp: In member function 'void TextRender::setCellDelegate(QQmlComponent*)':
textrender.cpp:513:54: error: 'qAsConst' was not declared in this scope
for (QVector<QQuickItem*> cells : qAsConst(m_rows)) {
^
textrender.cpp: In member function 'void TextRender::setCellContentsDelegate(QQmlComponent*)':
textrender.cpp:532:61: error: 'qAsConst' was not declared in this scope
for (QVector<QQuickItem*> cells : qAsConst(m_rowContents)) {
@locusf
locusf / chaincode_example02.s
Created Jan 12, 2017
Chaincode llvm IR code
View chaincode_example02.s
; ModuleID = 'main'
source_filename = "main"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%funcVal = type { void ()* }
%structType = type { %commonType, %structFieldSlice }
%commonType = type { i8, i8, i8, i64, i32, %funcVal*, %funcVal*, i8*, { i8*, i64 }*, %uncommonType*, %commonType* }
%uncommonType = type { { i8*, i64 }*, { i8*, i64 }*, %methodSlice }
%methodSlice = type { %method*, i64, i64 }
View main.ast
This file has been truncated, but you can view the full file.
TranslationUnitDecl 0x259fd20 <<invalid sloc>> <invalid sloc>
|-TypedefDecl 0x25a02a8 <<invalid sloc>> <invalid sloc> implicit __int128_t '__int128'
| `-BuiltinType 0x259ff90 '__int128'
|-TypedefDecl 0x25a0308 <<invalid sloc>> <invalid sloc> implicit __uint128_t 'unsigned __int128'
| `-BuiltinType 0x259ffb0 'unsigned __int128'
|-TypedefDecl 0x25a0638 <<invalid sloc>> <invalid sloc> implicit __NSConstantString 'struct __NSConstantString_tag'
| `-RecordType 0x25a03f0 'struct __NSConstantString_tag'
| `-CXXRecord 0x25a0358 '__NSConstantString_tag'