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
<?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
app
and 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("/") |
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 bs4 import BeautifulSoup | |
import requests | |
url = ["https://www.imdb.com/search/title/?groups=top_250&sort=user_rating,desc&view=simple",'https://www.imdb.com/search/title/?groups=top_250&view=simple&sort=user_rating,desc&start=51&ref_=adv_nxt','https://www.imdb.com/search/title/?groups=top_250&view=simple&sort=user_rating,desc&start=101&ref_=adv_nxt','https://www.imdb.com/search/title/?groups=top_250&view=simple&sort=user_rating,desc&start=151&ref_=adv_nxt','https://www.imdb.com/search/title/?groups=top_250&view=simple&sort=user_rating,desc&start=201&ref_=adv_nxt'] | |
for urls in url: | |
source = requests.get(urls).text | |
soup = BeautifulSoup(source, 'lxml') | |
for get_list in soup.find_all('div', class_='lister-item mode-simple'): | |
col_title = get_list.find('div', class_='col-title') | |
title = col_title.find("a") |
NewerOlder