Skip to content

Instantly share code, notes, and snippets.

@thewisenerd
thewisenerd / keybase.md
Created December 11, 2016 04:05
keybase.md

Keybase proof

I hereby claim:

  • I am thewisenerd on github.
  • I am thewisenerd (https://keybase.io/thewisenerd) on keybase.
  • I have a public key whose fingerprint is 1262 B49A C8CF EC62 79D1 A246 9F6F F5FE BE35 A3FD

To claim this, I am signing this object:

(function() {
var buttonPrefix = "+";
var buttonTag = "button";
var categoryTag = "category";
var commandTag = "cmd";
var confirmTag = "confirm";
var displayTag = "display";
var errorTag = "error";
var formatTag = "format";
var linkedTag = "linked";
<!-- saved from url=(0061)https://dl.dropboxusercontent.com/s/pf9lihjyz6qnpj7/vote.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css"></style></head>
<body>
<h3>Since elections are around the corner we have decided to do a quick survey of the factors that can deviate the majority of the vote flow. One of those factors surprisingly is related to our country's most dedicated and hardworking IT workforce. As we all know that equality has been a raging topic lately and people demand to be treated equally, most of the people feel that holiday norms are still that needs to be fixed and feel that all saturday's should be declared holidays. What is your opinion on this?</h3>
<div class="option-wrapper" style="">
<button id="yes" style="margin: 5px; position: absolute; top: 50%; left: 50%;">Yes</button>
<button id="no" style="margin: 5px 5px 5px 50px; position: absolute; top: 50%; left: 50%;">No</button>
</div>
#!/usr/bin/env bash
# gencache
pwd=$( pwd )
tc="aarch64-linux-android-4.9"
bin="aarch64-linux-android-"
mkdir -p ccache/bin
for file in ${pwd}/${tc}/bin/${bin}*; do
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- oss -->
<project name="LineageOS/android_device_xiaomi_ferrari" path="device/xiaomi/ferrari" remote="github" />
<project name="LineageOS/android_kernel_xiaomi_ferrari" path="kernel/xiaomi/ferrari" remote="github" />
<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="LineageOS/android_external_stlport" path="external/stlport" remote="github" />
<project name="LineageOS/android_device_cyanogen_msm8916-common" path="device/cyanogen/msm8916-common" remote="github" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
#!/usr/bin/env bash
function check_user {
if who | grep -v tmux | grep -wq $1; then
exit
fi
}
users=( user1 user2 user3 )
for user in ${users[@]} ; do
window.xcopya = jQuery('#xwikicontent table tr');
jQuery.each(window.xcopya, function(i, row) {
chipsets = ['msm8916_64'];
cols = jQuery(row).find('td');
date = cols[0]
tag = cols[1]
chipset = cols[2]
manifest = cols[3]
/*
* kang from git://anonscm.debian.org/dpkg/dpkg.git
* branch: master
* head: b9798daaa596ad5d539bcdd5ca89de1cb0b81697
*/
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
From 988f89e5c78c79c0c0cea74cc866482fd293064a Mon Sep 17 00:00:00 2001
From: thewisenerd <thewisenerd@protonmail.com>
Date: Fri, 17 Mar 2017 07:14:15 +0530
Subject: [PATCH] vfs: filetask: disable dbus on terminator
this kills the spawned task immediately causing the extract script in
the /tmp dir to be removed. the _new_ task from dbus cant find extract
script and file extraction fails.
terminator: gnome-terminator/terminator/gtk3 @ 1758
@thewisenerd
thewisenerd / extract.py
Created September 29, 2018 23:32
extract kernel builtin_fw
#!/usr/bin/env python3
import argparse
import mmap
import os
parser = argparse.ArgumentParser(description='extract builtin_fw')
parser.add_argument('image', metavar='IMAGE', type=str,
help='kernel image file')
parser.add_argument('kallsyms', metavar='KALLSYMS', type=str,