Ad posts are baked in the normal post requests so to remove post ads one needs to break the parsing.
To break the ad posts simply rename all occurances of "AdPost" to something else (keep the quoutation marks though),
this will remove all ad posts in the main feed, but does not remove posts in the custom feeds :(
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import chromium from '@sparticuz/chrome-aws-lambda'; | |
| export const GenerateBuffer = async (content) => { | |
| try { | |
| const puppeteer = chromium.puppeteer; | |
| const browser = await puppeteer.launch({ | |
| args: chromium.args, | |
| executablePath: await chromium.executablePath, | |
| }); | |
| console.log('We have a browser', browser); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "crypto/rsa" | |
| "crypto/sha256" | |
| "crypto/x509" | |
| "encoding/base64" | |
| "encoding/pem" | |
| "fmt" | |
| "io/ioutil" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php declare(strict_types=1); | |
| require __DIR__ . '/../vendor/autoload.php'; | |
| use GuzzleHttp\Client; | |
| use GuzzleHttp\Exception\GuzzleException; | |
| use GuzzleHttp\RequestOptions; | |
| // ==================== // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const cryptoJS = require("crypto-js") | |
| function genAuth() { | |
| let e = (new Date).toUTCString() | |
| , t = cryptoJS.enc.Utf8.parse((!0 ? "PaRr8".split("").reverse().join("") : "") + | |
| function (e) { | |
| return e ? "s7Xp?".split("").reverse().join("") : "" | |
| }(!0) + | |
| function (e) { | |
| return e ? "%#5hf".split("").reverse().join("") : "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias pacup="sudo pacman -Syu" | |
| alias yayup="yay -Syu" | |
| alias cleanup="yay -Scc" | |
| alias server="ssh ubuntu@$IP -i ~/.ssh/mumbaiaws.pem" | |
| alias printpath="echo $PWD" | |
| # spelling correction | |
| alias exi="exit" | |
| alias exti="exit" | |
| alias eitx="exit" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv from 'csv-parser' | |
| import { createReadStream } from 'fs' | |
| import axios from 'axios' | |
| // constants | |
| const BOT_TOKEN = "BOT TOKEN HERE" | |
| const CHANNEL_ID = -763513 // replace it with your group id | |
| // function to read data from csv file and return it as an array | |
| async function getData() { |
- Get apktool
- Get uber-apk-signer
- Create a signing certificate, this can be done inside android studio or using keytool
- Get your apk of choice from the internet or likewise
- Decompile the app using the following command, substitute the apktool version for what you downloaded.
java -jar apktool_2.6.1.jar d app.apk -r- Open your text editor of choice in the new directory
appand edit away, I recommend using jadx-gui for finding stuff to edit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Plugin manager | |
| ZPLUGINDIR=$HOME/.zsh/plugins | |
| # if you want to use unplugged, you can copy/paste plugin-clone here, or just pull the repo | |
| if [[ ! -d $ZPLUGINDIR/zsh_unplugged ]]; then | |
| echo "Cloning mattmc3/zsh_unplugged" | |
| git clone https://github.com/mattmc3/zsh_unplugged $ZPLUGINDIR/zsh_unplugged --quiet | |
| fi | |
| source $ZPLUGINDIR/zsh_unplugged/zsh_unplugged.plugin.zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from flask import Flask, jsonify | |
| import requests | |
| import piratebay | |
| app = Flask(__name__) | |
| app.url_map.strict_slashes = False | |
| @app.route("/") |