This file contains 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
// 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(); |
This file contains 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
(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}` } }); |
This file contains 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
<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 |
This file contains 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
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 |
This file contains 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
version: '3.6' | |
services: | |
gotty: | |
image: pataquets/gotty | |
command: -w bash | |
ports: | |
- 8080 |
This file contains 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 golang:alpine | |
# Install dependencies | |
RUN apk update && apk add git make | |
# Install tools | |
RUN go get github.com/yudai/gotty | |
ENTRYPOINT ["gotty"] |
This file contains 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
version: '3' | |
networks: | |
monitor-net: | |
driver: bridge | |
volumes: | |
prometheus_data: {} | |
grafana_data: {} |
This file contains 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
//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()) |
NewerOlder