Skip to content

Instantly share code, notes, and snippets.

View fmoliveira's full-sized avatar

Filipe Oliveira fmoliveira

  • Level Access
  • Toronto
  • 23:38 (UTC -04:00)
View GitHub Profile
@fmoliveira
fmoliveira / MY-UBLOCK-FILTERS.md
Created April 13, 2024 14:20 — forked from supershadoe/MY-UBLOCK-FILTERS.md
Some uBlock₀ filters

Many of these filters are usually cosmetic instead of for blocking/skipping ads or something (Although some are used for that purpose like yt-filter)

To import a filter into Some uB₀, type the link https://gist.github.com/supershadoe/aed9db4c220b9150d2361a369f7be2f2/raw/{the filter to import, e.g., spotify; without the braces obviously}-ublock-filter.txt into uB₀ settings -> Filter lists -> Custom -> Import

Links to copy for filters (this may not be up to date)

Website Link
Spotify Spotify
@fmoliveira
fmoliveira / Kali Linux GUI on Termux Android.md
Created July 31, 2023 01:22 — forked from HimDek/Kali Linux GUI on Termux Android.md
This Guide will help you install Kali Linux in Android, that too with a GUI Desktop Environment within Android. It uses Termux to run Kali Linux in Android with XFCE4 Desktop Environment and a Tight VNC Server, which we connect to using a VNC Viewer app in Android.

How to install Kali Linux GUI Desktop in Android using Termux:

This Guide will help you install Kali Linux in Android, that too with a GUI Desktop Environment within Android. It uses Termux to run Kali Linux in Android with XFCE4 Desktop Environment and a Tight VNC Server, which we connect to using a VNC Viewer app in Android.

Just Follow these steps to install Kali Linux with XFCE4 Desktop GUI in Android using Termux:

  • Download and install Termux in Android. (Play Store release is no more updated, so is not recommended.)
  • Open Termux and run the following commands:
    apt update && apt install python python2 openssh -y
    

Build android app on termux

1. install termux

install termux from F-Droid.

2. setup termux

apt update
@fmoliveira
fmoliveira / functions.yaml
Created June 18, 2023 23:48 — forked from razor-x/functions.yaml
Sentry.io CloudFront Lambda@Edge tunnel
# TODO: Setup https://github.com/silvermine/serverless-plugin-cloudfront-lambda-edge
sentryOriginReq:
handler: handlers/handler.default
lambdaAtEdge:
distribution: AppDistribution
eventType: origin-request
includeBody: true
pathPattern: /_tunnel # TODO: Choose tunnel path.
@fmoliveira
fmoliveira / Complete.java
Created June 16, 2023 20:33 — forked from xudifsd/Complete.java
output of smali AST tree
package com.example;
public class Complete {
public int i;
private String s;
public Complete(int i, String s) {
this.i = i;
this.s = s;
}
@fmoliveira
fmoliveira / .yabairc
Created January 16, 2023 23:36 — forked from ChristopherBiscardi/.yabairc
What VSCode theme is that? youtube video
# the scripting-addition must be loaded manually if
# you are running yabai on macOS Big Sur. Uncomment
# the following line to have the injection performed
# when the config is executed during startup.
#
# for this to work you must configure sudo such that
# it will be able to run the command without password
sudo yabai --load-sa
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
@fmoliveira
fmoliveira / renew-gpgkey.md
Created June 22, 2022 12:21 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@fmoliveira
fmoliveira / rxjs-no-ignored-subscription.ts
Created April 12, 2022 14:17
Codemod to wrap ignored rxjs subscriptions
import {
API,
ASTPath,
BlockStatement,
ClassBody,
ClassDeclaration,
ClassMethod,
ClassProperty,
Collection,
ExpressionStatement,
@fmoliveira
fmoliveira / clear-follows.mjs
Created April 9, 2022 22:51
Unfollow all on spotify
import fetch from "node-fetch";
const headers = {
Authorization: "Bearer xyz",
};
const toJson = (res) => res.json();
const following = await fetch(
"https://api.spotify.com/v1/me/following?type=artist",
{ headers }