Skip to content

Instantly share code, notes, and snippets.

@luk1337
luk1337 / -
Created August 20, 2016 13:45
From fc184a55257afee5a6fbbc9e1ab28195c3d3ab8b Mon Sep 17 00:00:00 2001
From: LuK1337 <priv.luk@gmail.com>
Date: Sat, 20 Aug 2016 15:44:51 +0200
Subject: [PATCH] Fix missing pushbullet / email forms
---
resources/assets/js/Pages/Settings/Subscription.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/resources/assets/js/Pages/Settings/Subscription.js b/resources/assets/js/Pages/Settings/Subscription.js
@luk1337
luk1337 / -
Created August 20, 2016 13:07
From 320a3f96b1323bf8f64ed8565afcda80f8de8c8d Mon Sep 17 00:00:00 2001
From: LuK1337 <priv.luk@gmail.com>
Date: Sat, 20 Aug 2016 15:07:39 +0200
Subject: [PATCH] Get rid of disqus
---
resources/assets/js/Pages/Profile.js | 54 ------------------------------------
1 file changed, 54 deletions(-)
diff --git a/resources/assets/js/Pages/Profile.js b/resources/assets/js/Pages/Profile.js
@luk1337
luk1337 / -
Created August 20, 2016 12:59
From e9adcf54b8243b248b72c400f6b996355a6efdad Mon Sep 17 00:00:00 2001
From: LuK1337 <priv.luk@gmail.com>
Date: Sat, 20 Aug 2016 14:57:32 +0200
Subject: [PATCH] Fix up steam login
---
app/Socialite/SteamProvider.php | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/app/Socialite/SteamProvider.php b/app/Socialite/SteamProvider.php
@luk1337
luk1337 / -
Created August 18, 2016 18:15
From db48bd44ae01c6a3ff45d09cdd9c1e256643faf0 Mon Sep 17 00:00:00 2001
From: Stephen Smalley <sds@tycho.nsa.gov>
Date: Thu, 30 Jan 2014 11:26:59 -0500
Subject: [PATCH 01/24] SELinux: Fix kernel BUG on empty security contexts.
Setting an empty security context (length=0) on a file will
lead to incorrectly dereferencing the type and other fields
of the security context structure, yielding a kernel BUG.
As a zero-length security context is never valid, just reject
all such security contexts whether coming from userspace
@luk1337
luk1337 / -
Created August 17, 2016 15:00
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.49-cyanogenmod-ga9efcd5 (luk1337@build2.dev.xda-developers.com) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #12 SMP PREEMPT Wed Aug 17 16:31:41 CEST 2016
[ 0.000000] CPU: AArch64 Processor [410fd031] revision 1
[ 0.000000] Machine: Qualcomm Technologies, Inc. MSM 8939 CDP PRJ:0
[ 0.000000] cma: Found external_image__region@0, memory base 0x0000000086000000, size 8 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found modem_adsp_region@0, memory base 0x0000000086800000, size 86 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found pheripheral_region@0, memory base 0x000000008be00000, size 6 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found venus_region@0, memory base 0x0000000000000000, size 5 MiB, limit 0x0000000090000000
[ 0.000000] cma: Found secure_region@0, memory base 0x0000000000000000, size 109 MiB, limit 0xffffffffffffffff
@luk1337
luk1337 / x.py
Last active August 14, 2016 16:40
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from hashlib import sha1
lines = [ line for line in open('proprietary-files.txt', 'r') ]
vendorPath = '../../../vendor/asus/msm8916-common/proprietary'
needSHA1 = False
for index, line in enumerate(lines):
# Remove '\n' character
@luk1337
luk1337 / -
Created August 11, 2016 20:12
[ 0.199785] smd_channel_probe_worker: allocation table not initialized
[ 0.200929] smd_channel_probe_worker: allocation table not initialized
[ 0.207259] cpr_efuse_init: apc_corner: efuse_addr = 0x0000000000058000 (len=0x1000)
[ 0.207368] cpr_read_fuse_revision: apc_corner: fuse revision = 3
[ 0.207400] cpr_parse_speed_bin_fuse: apc_corner: [row: 1]: 0xff06829034d6f93, speed_bits = 2
[ 0.207427] cpr_parse_pvs_version_fuse: apc_corner: [row: 1000]: 0x1a, pvs_version = 2
[ 0.207596] cpr_adjust_init_voltages: apc_corner: adjusted initial voltage[2]: 1050000 -> 1070000 uV
[ 0.207631] cpr_pvs_init: apc_corner: pvs voltage: [1050000 1070000 1231250] uV
[ 0.207653] cpr_pvs_init: apc_corner: ceiling voltage: [1050000 1150000 1350000] uV
[ 0.207674] cpr_pvs_init: apc_corner: floor voltage: [1050000 1050000 1137500] uV
@luk1337
luk1337 / app.js
Last active August 9, 2016 18:56
var vapor = require('vapor');
if (!process.argv[3]) {
console.log('Usage: node app.js [steam-id] [number-of-messages]');
process.exit();
}
// Create our config object
var config = {
username: '',
<?xml version="1.0" encoding="ISO-8859-1"?>
<mixer>
<!-- These are the initial mixer settings -->
<ctl name="Voice Rx Device Mute" id="0" value="0" />
<ctl name="Voice Rx Device Mute" id="1" value="-1" />
<ctl name="Voice Rx Device Mute" id="2" value="20" />
<ctl name="Voice Tx Mute" id="0" value="0" />
<ctl name="Voice Tx Mute" id="1" value="-1" />
<ctl name="Voice Tx Mute" id="2" value="500" />
<ctl name="Voice Rx Gain" id="0" value="0" />
44 iavg_ma=368
<6>[50074.706139] soc_final=43 soc_ocv=44 soc_cutoff=2 ocv_uv=3823635 batt_temp=289
<6>[50074.707304] PM: suspend exit 2016-08-01 23:05:46.557272548 UTC
<6>[50074.708869] last_soc=43 calculated_soc=43 soc=43 time_since_last_change=211
<6>[50074.711774] report_vm_bms_soc:[bms]Reported result_soc=43
<6>[50074.781837] mmc0: Deferred resume completed
<6>[50074.814564] [ASDF] enter do_write_event_worker
<6>[50075.191218] PM: suspend entry 2016-08-01 23:05:47.041187180 UTC
<6>[50075.191552] [ASDF] enter do_write_event_worker
<6>[50075.191281] PM: Syncing filesystems ... done.