Skip to content

Instantly share code, notes, and snippets.

View alistairbill's full-sized avatar

Alistair Bill alistairbill

View GitHub Profile
@alistairbill
alistairbill / kernel.diff
Created May 10, 2019 19:45
Linux kernel patch to boot mainline on Sony Xperia Z3 Compact
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 4fe209cf6a3e..edb105f8d4be 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -766,6 +766,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \
qcom-msm8974-fairphone-fp2.dtb \
qcom-msm8974-lge-nexus5-hammerhead.dtb \
qcom-msm8974-samsung-klte.dtb \
+ qcom-msm8974-sony-xperia-aries.dtb \
qcom-msm8974-sony-xperia-castor.dtb \
@alistairbill
alistairbill / build-dotnet-cli.sh
Last active August 6, 2016 11:44
Install dotnet core cli on Fedora 24
#!/bin/bash
echo "Building and installing dotnet cli..."
# Install the dependencies (I think this is all...)
dnf install -y clang cmake llvm gettext libunwind libunwind-devel \
lldb-devel libuuid-devel libcurl-devel libicu-devel \
lttng-ust lttng-ust-devel curl icu
# Make build directory
mkdir /home/$USER/dotnet
cd /home/$USER/dotnet
@alistairbill
alistairbill / oceanic.json
Created May 8, 2016 20:41
MonoDevelop Oceanic Next
{
"name":"Oceanic Next",
"version":"1.0",
"description":"Colorful color scheme",
"originator":"Dmitri Voronianski",
"palette": [
{ "name": "base00", "value":"#1B2B34" },
{ "name": "base01", "value":"#343D46" },
{ "name": "base02", "value":"#4F5B66" },
{ "name": "base03", "value":"#65737E" },
@alistairbill
alistairbill / vim-oceanic-next-transparent.patch
Created May 1, 2016 19:31
Make oceanic-next vim theme transparent
From d9a4347654e2a5b6b3323011049d094e3358e39c Mon Sep 17 00:00:00 2001
From: Alistair Bill <alistair.bill@gmail.com>
Date: Sun, 1 May 2016 20:28:14 +0100
Subject: [PATCH] Make theme transparent
---
colors/OceanicNext.vim | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/colors/OceanicNext.vim b/colors/OceanicNext.vim
@alistairbill
alistairbill / bulk-delete-tweets.py
Created September 24, 2015 17:23
Simple Python script. Bulk delete tweets with their Twitter Status ID
#!/usr/bin/env python
import tweepy #https://github.com/tweepy/tweepy
# options
test_mode = False
#Twitter API credentials
consumer_key = ""
consumer_secret = ""