Skip to content

Instantly share code, notes, and snippets.

<?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"
@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
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,
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.
@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 &
@doniks
doniks / oxide.qml
Created June 9, 2018 08:46 — forked from penk/oxide.qml
Example of Using Oxide with User Script
import QtQuick 2.0
import com.canonical.Oxide 0.1
WebView {
width: 800
height: 600
url: 'http://google.com'
context: WebContext {
userAgent: "Mozilla/5.0 (Ubuntu; Tablet) WebKit/537.21"
#!/bin/bash
arecord -f cd -t wav -r 16000 -d 5 | flac -f - -o sample.flac
wget -q -U "Mozilla/5.0" --post-file sample.flac --header="Content-Type: audio/x-flac; rate=16000" -O - \
"http://www.google.com/speech-api/v1/recognize?lang=en-us&client=chromium"
@doniks
doniks / sony_amami.xml
Last active November 4, 2018 11:29
halium amami
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="doniks"
fetch="https://github.com/doniks"
revision="halium-7.1" />
<remote name="sony"
fetch="https://github.com/sonyxperiadev"
revision="n-mr1" />
# CONFIG_ARM_PATCH_PHYS_VIRT is not set
CONFIG_EXPERIMENTAL=y
CONFIG_LOCALVERSION="-doniks-002"
CONFIG_FANOTIFY=y
CONFIG_SYSFS=y
CONFIG_PROC_FS=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_SIGNALFD=y
@doniks
doniks / ice
Created December 10, 2018 20:48
grep --color=always -C 20 ICE $( find security/ drivers/mmc drivers/scsi/ drivers/dma -name Kconfig ) | less -R
MMC_SDHCI_MSM_ICE
SCSI_UFS_QCOM_ICE