Skip to content

Instantly share code, notes, and snippets.

View depau's full-sized avatar

Davide Depau depau

View GitHub Profile
@depau
depau / lezpop.user.js
Created June 11, 2018 21:36
LezPop AdBlock Block
// ==UserScript==
// @id LezPopMerda
// @name LezPop AdBlock Block
// @namespace https://lezpopkek.com
// @version 0.1
// @author Stocazzo <[email protected]>
// @description LezPop AdBlock Block
// @domain lezpop.it
// @match http://*.lezpop.it/*
// @match https://*.lezpop.it/*
@depau
depau / PKGBUILD
Last active March 19, 2018 01:28
PKGBUILD for libfprint with Validity 0090 patches, @3v1n0's repo
# Maintainer: Davide Depau <[email protected]>
# Contributor: Ivan Shapovalov <[email protected]>
# Contributor: Sven Greiner <[email protected]>
# Contributor: vldmr <[email protected]>
# Contributor: Thomas Krug <[email protected]>
# Contributor: Matthew Bauer <[email protected]>
pkgname=libfprint-vfs0090-git
epoch=1
pkgver=0.7.0.r87.g877aba1
@depau
depau / bundle-efilinux.sh
Last active February 16, 2018 22:25
EFI/Linux kernel bundler for Arch
#!/bin/bash
# Update last line with paths to Secure Boot keys
rootdev="$(mount | grep " on / " | awk '{ print $1 }')"
rootfstype="$(mount | grep " on / " | awk '{ print $5 }')"
echo -e "$(</usr/lib/os-release)\nVERSION_ID=rolling" > /tmp/os-release
cat /boot/intel-ucode.img /boot/initramfs-linux.img > /tmp/initrd.img
echo "options root=$rootdev rootfstype=$rootfstype rd.luks.options=discard rw quiet splash" > /tmp/cmdline.txt
# Maintainer: Davide Depau <[email protected]>
# Contributor: Ivan Shapovalov <[email protected]>
# Contributor: Sven Greiner <[email protected]>
# Contributor: vldmr <[email protected]>
# Contributor: Thomas Krug <[email protected]>
# Contributor: Matthew Bauer <[email protected]>
pkgname=libfprint-validity90
pkgver=r111.baab930
pkgrel=1
@depau
depau / first_run.sh
Created November 5, 2017 23:08
Davide's Ubuntu setup scripts
#!/bin/bash
echo "Adding Android entry to GRUB"
sudo tee -a /etc/grub.d/41_custom << EOF
menuentry "Android 7.1.2" {
insmod part_gpt
insmod fat
search --set=root --file /android-2017-10-24/kernel
#set root='hd0,gpt1'
@depau
depau / apds9930_test.py
Last active January 26, 2016 21:30
Python APDS-9930 test program
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from apds9930 import APDS9930
from apds9930.values import ALL, OFF
from time import sleep
busno = int(raw_input("Please select an I²C bus number: "))
a = APDS9930(busno)
@depau
depau / BluEOS.ino
Created August 29, 2015 18:08
Not working BluEOS
#define DEBUG
#define BLUETOOTH
#define BT_HC06
#include <CmdMessenger.h>
#include <stdlib.h>
#ifdef BLUETOOTH
#include <SoftReset.h>
#endif
@depau
depau / kivygtk.kv
Created March 6, 2015 21:07
Hybrid Kivy and GTK application
#:kivy 1.8.0
<Root>:
orientation: "vertical"
Button:
text: "Start GTK thread" if not app.gtk_started else "Stop GTK thread"
on_release: app.start_gtk_thread()
@depau
depau / multirom.xml
Created February 21, 2015 23:09
Manifest to build MultiROM and TWRP for ExpressATT
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remove-project name="CyanogenMod/android_bootable_recovery"/>
<remove-project name="CyanogenMod/android_device_samsung_expressatt"/>
<project path="bootable/recovery" name="Tasssadar/Team-Win-Recovery-Project" revision="master"/>
<project path="system/extras/multirom" name="Tasssadar/multirom" revision="master"/>
<project path="system/extras/multirom/adbd" name="Tasssadar/multirom_adbd" revision="master"/>
<project path="system/extras/multirom/kexec-tools" name="Tasssadar/kexec-tools" revision="master"/>
<project path="system/extras/libbootimg" name="Tasssadar/libbootimg" revision="master"/>