Skip to content

Instantly share code, notes, and snippets.

View depau's full-sized avatar

Davide Depau depau

View GitHub Profile
@depau
depau / android-qemu.sh
Created August 23, 2019 02:30
Run Android-x68 on QEMU with emulated USB stick
#!/bin/bash
# By Chih-Wei Huang <[email protected]>
# License: GNU Generic Public License v2
continue_or_stop()
{
echo "Please Enter to continue or Ctrl-C to stop."
read
}
@depau
depau / add.md
Last active March 7, 2019 17:57
Filterlist
@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