Skip to content

Instantly share code, notes, and snippets.

@orenyomtov
orenyomtov / tinder_enable_photo_verification.js
Created April 28, 2020 17:59
Enable Tinder Photo Verification
// Hook hasOwnProperty to enable the Photo Verification feature
Object.prototype.hasOwnProperty = function(prop) {
if (prop == "selfieVerification") this.selfieVerification = 1;
return Reflect.has(this, prop);
};
// Open the profile page
document.querySelector('a[href="/app/profile"]').click();
(async function () {
async function fetchAccessToken() {
let r = await fetch('https://open.spotify.com/get_access_token?reason=transport&productType=web_player');
let j = await r.json();
return j.accessToken;
}
async function fetchUserId() {
let r = await fetch('https://api.spotify.com/v1/me', { headers: { authorization: `Bearer ${accessToken}` } });
@orenyomtov
orenyomtov / random-qm.html
Created February 27, 2020 17:32
Random Quality Movie
<script>
let movies = ['https://www.imdb.com/title/tt6543652/', 'https://www.imdb.com/title/tt0062622/', 'https://www.imdb.com/title/tt5629340/', 'https://www.imdb.com/title/tt1655424/', 'https://www.imdb.com/title/tt1375666/', 'https://www.imdb.com/title/tt1285016/', 'https://www.imdb.com/title/tt0964517/', 'https://www.imdb.com/title/tt1504320/', 'https://www.imdb.com/title/tt0947798/', 'https://www.imdb.com/title/tt1340107/', 'https://www.imdb.com/title/tt1568346/', 'https://www.imdb.com/title/tt1675434/', 'https://www.imdb.com/title/tt0476643/', 'https://www.imdb.com/title/tt0363226/', 'https://www.imdb.com/title/tt0093779/', 'https://www.imdb.com/title/tt0087544/', 'https://www.imdb.com/title/tt0119698/', 'https://www.imdb.com/title/tt0245429/', 'https://www.imdb.com/title/tt1445520/', 'https://www.imdb.com/title/tt0096283/', 'https://www.imdb.com/title/tt1772925/', 'https://www.imdb.com/title/tt0111161/', 'https://www.imdb.com/title/tt1045670/', 'https://www.imdb.com/title/tt0468569/', 'https://www.imdb
@orenyomtov
orenyomtov / update-gcc-clang-8-ubuntu-16.04-xenial.sh
Created March 31, 2019 12:42
Update clang to 8.0 and gcc to 8.0 on Ubuntu xenial 16.04
if [ ! -f /usr/bin/gcc-8 ]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-8 g++-8
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 1000
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 1000
fi
if [ ! -f /usr/bin/gcc-8 ]; then
version: '3.6'
services:
gotty:
image: pataquets/gotty
command: -w bash
ports:
- 8080
FROM golang:alpine
# Install dependencies
RUN apk update && apk add git make
# Install tools
RUN go get github.com/yudai/gotty
ENTRYPOINT ["gotty"]
version: '3'
networks:
monitor-net:
driver: bridge
volumes:
prometheus_data: {}
grafana_data: {}
[![Try in PWD](https://raw.githubusercontent.com/play-with-docker/stacks/master/assets/images/button.png)](https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/vegasbrianc/prometheus/version-2/pwd-stack.yml)
@orenyomtov
orenyomtov / medium_follow_unfollow.js
Created October 2, 2018 19:28
For educational purposes only
//Follow all the users in the current Medium page
function filterNodeListByAttribute(nodeList, attributeName) {
let foundAttributeValues = []
return Array.prototype.slice.call(nodeList).filter(function(node) {
let attributeValue = node.getAttribute(attributeName)
return foundAttributeValues.indexOf(attributeValue) == -1 && foundAttributeValues.push(attributeValue)
})
}
filterNodeListByAttribute(document.querySelectorAll('*[data-action="toggle-subscribe-user"]:not(.is-active)'), 'data-action-value').forEach(subscribeButton => subscribeButton.click())