Skip to content

Instantly share code, notes, and snippets.

@doniks
doniks / unityscreenshot
Created June 9, 2018 08:45 — forked from penk/unityscreenshot
Take screenshot from Ubuntu Touch
#!/bin/sh
set -e
D=$(date +"%Y%m%d%H%M%S")
size=$(adb shell "fbset|sed -n -e's/^mode.*\"\([0-9]\+x[0-9]\+\)[-\"].*$/\1/p'")
adb shell mirscreencast -m /var/run/mir_socket -n 1 -f /tmp/${D}.rgba
adb pull /tmp/${D}.rgba
/opt/ImageMagick/bin/convert -depth 8 -size $size ${D}.rgba ~/Desktop/${D}.png
/bin/rm ${D}.rgba
#qlmanage -p ~/Desktop/${D}.png >& /dev/null &
From 25437b2a54dd619a96e268ecaf303b089aa785e4 Mon Sep 17 00:00:00 2001
From: Linus Torvalds <torvalds@linux-foundation.org>
Date: Mon, 4 Jun 2012 11:00:45 -0700
Subject: [PATCH] vfs: Fix /proc/<tid>/fdinfo/<fd> file handling
commit 0640113be25d283e0ff77a9f041e1242182387f0 upstream.
Cyrill Gorcunov reports that I broke the fdinfo files with commit
30a08bf2d31d ("proc: move fd symlink i_mode calculations into
tid_fd_revalidate()"), and he's quite right.
diff --git a/fs/proc/namespaces.c b/fs/proc/namespaces.c
index 08dfd6ad8f3..155bdf703bc 100644
--- a/fs/proc/namespaces.c
+++ b/fs/proc/namespaces.c
@@ -24,9 +24,6 @@ static const struct proc_ns_operations *ns_entries[] = {
#ifdef CONFIG_IPC_NS
&ipcns_operations,
#endif
-#ifdef CONFIG_PID_NS
- &pidns_operations,
@doniks
doniks / lineageos_flo_defconfig
Last active July 16, 2017 19:51
lineageos_flo_defconfig for halium
# CONFIG_ARM_PATCH_PHYS_VIRT is not set
CONFIG_EXPERIMENTAL=y
CONFIG_LOCALVERSION="-lineageos-005"
CONFIG_KERNEL_XZ=y
# CONFIG_SWAP is not set
CONFIG_AUDIT=n
CONFIG_UEVENT_HELPER_PATH=""
CONFIG_RCU_FAST_NO_HZ=y
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote
name="lineage"
fetch="http://github.com/LineageOS"
revision="refs/heads/cm-14.1" />
<project
path="device/asus/deb"