Skip to content

Instantly share code, notes, and snippets.

View Eskuero's full-sized avatar

Óliver García Albertos Eskuero

  • Tenerife, Spain
View GitHub Profile
@Eskuero
Eskuero / july.sh
Created July 6, 2019 15:01
LineageOS July 2019 patches
#/bin/bash
BASE=$(pwd)
cd $BASE/.repo/manifests;
git fetch "https://github.com/LineageOS/android" refs/changes/67/250967/2 && git cherry-pick FETCH_HEAD;
cd $BASE;
repo sync --force-sync
cd $BASE/build/make;
git fetch "https://github.com/LineageOS/android_build" refs/changes/68/250968/1 && git cherry-pick FETCH_HEAD;
@Eskuero
Eskuero / android-rsync-guide.md
Last active June 7, 2019 22:07
rsync from desktop to andorid (termux)

Inside termux on Android:


  1. Install the required packages
    $ apt install openssh rsync
    
  2. Add a password for the termux user

$ passwd

@Eskuero
Eskuero / may.sh
Created May 15, 2019 11:06
LineageOS 14.1 May security patch
#!/bin/bash
BASE=$(pwd)
cd $BASE/.repo/manifests;
git fetch https://github.com/LineageOS/android refs/changes/45/248345/1 && git cherry-pick FETCH_HEAD;
cd $BASE;
repo sync --force-sync;
cd $BASE/external/wpa_supplicant_8;
git fetch https://github.com/LineageOS/android_external_wpa_supplicant_8 refs/changes/64/247664/1 && git cherry-pick FETCH_HEAD;
@Eskuero
Eskuero / april.sh
Created April 7, 2019 11:10
LineageOS 14.1 April security patch
#!/bin/sh
WORKDIR=$(pwd)
cd $WORKDIR/external/libmpeg2;
git fetch https://github.com/LineageOS/android_external_libmpeg2 refs/changes/87/245487/1 && git cherry-pick FETCH_HEAD;
cd $WORKDIR/external/tremolo;
git fetch https://github.com/LineageOS/android_external_tremolo refs/changes/93/245493/1 && git cherry-pick FETCH_HEAD;
cd $WORKDIR/system/bt;
@Eskuero
Eskuero / dms-tweet-delete.js
Created January 30, 2019 13:39
Javascript to automatically delete all the loaded tweets from a private conversation
msgs = document.getElementsByClassName("DMDeleteMessageAction js-tooltip");
button = document.getElementsByClassName("DMDeleteMessage-confirm EdgeButton EdgeButton--danger js-initial-focus")[0];
for (i = 0; i < msgs.length; i++) {
msgs[i].click();
button.click();
}
#!/bin/sh
BASE=$(pwd);
cd $BASE/system/bt;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/54/233854/4 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/55/233855/2 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/02/233902/1 && git cherry-pick FETCH_HEAD;
cd $BASE/external/sonivox;
@Eskuero
Eskuero / october-security-patch.sh
Created October 13, 2018 11:30
Apply October security patch over LineageOS 14.1 before it gets merged
#!/bin/bash
BASE=$(pwd)
cd $BASE/.repo/manifests;
git fetch https://github.com/LineageOS/android refs/changes/80/230980/2 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android refs/changes/81/230981/4 && git cherry-pick FETCH_HEAD;
cd $BASE;
repo sync --force-sync;
cd $BASE/build;
@Eskuero
Eskuero / hackerfont.user.js
Last active August 17, 2018 12:34
GreaseMonkey script to allow easy typing of hacker font in niu.moe Download the extension and open the raw link of the following file to install: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
// ==UserScript==
// @name Hacker buttons
// @version 1
// @include *niu.moe*
// @grant none
// ==/UserScript==
setTimeout(function() {
hackerbutton = document.createElement("img");
hackerbutton.src = "https://cdn.niu.moe/custom_emojis/images/000/004/734/original/934bc263da8d1735.png";
@Eskuero
Eskuero / august-security-patch.sh
Created August 9, 2018 17:20
Apply August security patch over LineageOS 14.1 before it gets merged
#!/bin/bash
BASE=$(pwd)
cd $BASE/packages/apps/Messaging;
git fetch https://github.com/LineageOS/android_packages_apps_Messaging refs/changes/36/222636/2 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_packages_apps_Messaging refs/changes/36/222636/2 && git cherry-pick FETCH_HEAD;
cd $BASE/system/bt;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/28/222628/2 && git cherry-pick FETCH_HEAD;
@Eskuero
Eskuero / reddirection.js
Created April 26, 2018 18:36
Greasemonkey plugin to automatically redirect new reddit interface to the old one
// ==UserScript==
// @name New Reddit --> Old Reddit
// @include *www.reddit.com*
// @version 1
// @grant none
// ==/UserScript==
var url = window.location.toString();
window.location = url.replace('www.reddit.com', 'old.reddit.com');